LiSymbol sym = symbolsMap.get(name);
if(sym == null) {
if(name.length() > 3 && name.endsWith("opt")) {
sym = symbolsMap.get(name.substring(0, name.length()-3));
if(sym != null) {
LiSymbol symopt = create(new AstIdentifier(id.getName(), id.getInput(), id.getOffset(), id.getEndOffset()), sym.getType(), false);
rules.add(new LiRule(symopt, new LiSymbolRef[0], null, null, null, id));
rules.add(new LiRule(symopt, new LiSymbolRef[]{new LiSymbolRef(sym,null,null,null)}, null, null, null, id));
return symopt;
}
}