When there is a comment after the last block }
like
......
}//end class
I got an Exception when parsing this class:
Exception occurred during event dispatching:
barat.parser.TokenMgrError: Lexical error at line 586,
column 22. Encountered: <EOF> after : ""
at barat.parser.BaratParserTokenManager.getNextToken
(BaratParserTokenManager.java)
at barat.parser.BaratParser.jj_ntk(BaratParser.java)
at barat.parser.BaratParser.CompilationUnit
(BaratParser.java)
at barat.parser.NameAnalysis$20.apply
(/home/boris/eclipse/workspace/Barat/barat/parser/Name
Analysis.java)
at barat.parser.NameAnalysis$20.apply
(/home/boris/eclipse/workspace/Barat/barat/parser/Name
Analysis.java)
at barat.parser.NameAnalysis._lookupUserType
(/home/boris/eclipse/workspace/Barat/barat/parser/Name
Analysis.java)
at barat.parser.NameAnalysis.lookupUserType
(/home/boris/eclipse/workspace/Barat/barat/parser/Name
Analysis.java)
at barat.parser.NameAnalysis.loadPackageFiles
(/home/boris/eclipse/workspace/Barat/barat/parser/Name
Analysis.java)
at barat.parser.PackageImpl.getClasses
(/home/boris/eclipse/workspace/Barat/barat/parser/Pack
ageImpl.java)
at barat.parser.PackageImpl.getClasses
(/home/boris/eclipse/workspace/Barat/barat/parser/Pack
ageImpl.java)
...