Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment line error #26

Open
Visne opened this issue Jul 30, 2019 · 0 comments
Open

Comment line error #26

Visne opened this issue Jul 30, 2019 · 0 comments

Comments

@Visne
Copy link

Visne commented Jul 30, 2019

Comment lines currently break the parser. This snippet for example

-----------------------------------------------------------------
-- Detail Output Record
-----------------------------------------------------------------

will give an error like this:

Exception in thread "main" line 8:65: unexpected char: '-'
	at com.beanit.jasn1.compiler.parser.ASNLexer.nextToken(ASNLexer.java:342)
	at antlr.TokenBuffer.fill(TokenBuffer.java:69)
	at antlr.TokenBuffer.LA(TokenBuffer.java:80)
	at antlr.LLkParser.LA(LLkParser.java:52)
	at com.beanit.jasn1.compiler.parser.ASNParser.module_body(ASNParser.java:279)
	at com.beanit.jasn1.compiler.parser.ASNParser.module_definition(ASNParser.java:187)
	at com.beanit.jasn1.compiler.parser.ASNParser.module_definitions(ASNParser.java:63)
	at com.beanit.jasn1.compiler.Compiler.getJavaModelFromAsn1File(Compiler.java:182)
	at com.beanit.jasn1.compiler.Compiler.main(Compiler.java:122)

at line 1 and 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant