0

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>)?
Bart Kiers
  • 166,582
  • 36
  • 299
  • 288

0 Answers0