I am trying to read a text but running into issue. Please note I just got started with JavaCC.
"token1 /path1/*/path /token2"
TOKEN:{
token1: ("token1") :someState
}
someStateTOKEN :
{
token: ("/token")?
}
The error:
Encountered " <token2> " "" at line **, column 8.
Was expecting one of: <RESULT> ... <SPACE> …
Heres the Expression :
tok=<token1>(<SPACE_CHAR>)?val=<RESULT>(<token2>)?(<SPACE>)?