Skip to content

Commit

Permalink
Allow optional map token in SMARTS parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jun 3, 2016
1 parent 9eef3b3 commit 4d2e5d3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -462,7 +462,8 @@ secondToken = getToken(2); }
}
// Optional atom map idx
( ":"
( <DIGIT> {mapidx.append(token.image);} )+
[ "?" ]
( <DIGIT> { mapidx.append(token.image); } )+
{((ASTLowAndExpression)jjtree.peekNode()).setMapIdx(Integer.parseInt(mapidx.toString()));}
)?
<R_BRACKET> { token_source.SwitchTo(SMARTSParserConstants.DEFAULT); rightBracket = token; }
Expand Down

0 comments on commit 4d2e5d3

Please sign in to comment.