[antlr-interest] Lexer grammar in AntlrWorks 1.4.3

Daniela da Cruz danieladacruz at gmail.com
Thu Mar 1 07:08:59 PST 2012


Hi.

I have been creating a very simple lexer in AntlrWorks but when trying to
run it I got the following errors:

[15:01:29] javac: file not found:
C:\Users\Utilizador\Desktop\output\null.java
[15:01:29] Usage: javac <options> <source files>
[15:01:29] use -help for a list of possible options
[15:01:31] C:\Users\Utilizador\Desktop\output\__Test__.java:12:
<identifier> expected
[15:01:31]  g = new (tokens, 49100, null);
[15:01:31]         ^
[15:01:31] 1 error

It seems that is looking for the parser file that usually exists on a
combined grammar.
Was anyone able to run a lexer grammar in AntlrWorks?

My lexer was something like:

---------------------------------------------------
lexer grammar testRE;

ID: '0'..'9'+ ;
---------------------------------------------------

Thanks in advance,
regards
daniela


More information about the antlr-interest mailing list