I have some questions in regards to the development of ANTLR4.
First of all the JAR is not located where the docu (https://github.com/antlr/antlr4) mentions it. - This might be an issue if you got the ANTLR4 Reference and well... no ANTLR4
http://www.antlr4.org/download/antlr-4.0-rc-1-complete.jar
Now building ANTLR4 with Maven currently fails, and I attached a longer Error log... Mainly I'm interested in fixing the broken C# CodeGen for Unicode String escapes (directly in ANTLR4 so that people can take advantage of it). I wonder whether I need to patch ANTLRworks though.
Best,
Marius
error(144): T.g4:3:10: multi-character literals are not allowed in lexer sets: 'aa'
dir C:\Users\MCIEPL~1\AppData\Local\Temp\TestSets-1358236633129
dir C:\Users\MCIEPL~1\AppData\Local\Temp\TestSets-1358236633799
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.967 sec
Running org.antlr.v4.test.TestSymbolIssues
error(94): A.g4:5:1: redefinition of 'members' action
error(94): A.g4:7:1: redefinition of 'header' action
warning(83): A.g4:2:10: illegal option 'opt'
warning(83): A.g4:2:21: illegal option 'k'
error(94): A.g4:5:1: redefinition of 'members' action
warning(125): A.g4:9:27: implicit definition of token 'X' in parser
warning(125): A.g4:10:20: implicit definition of token 'Y' in parser
warning(125): A.g4:11:4: implicit definition of token 'FJKD' in parser
error(80): A.g4:9:37: rule 'b' has no defined parameters
error(79): A.g4:10:31: missing arguments(s) on rule reference: a
error(69): B.g4:4:4: label 's' conflicts with rule with same name
error(69): B.g4:4:9: label 'b' conflicts with rule with same name
error(70): B.g4:4:15: label 'X' conflicts with token with same name
error(75): B.g4:6:9: label 'x' type mismatch with previous definition: TOKEN_LIST_LABEL!=TOKEN_LABEL
error(126): B.g4:4:20: cannot create implicit token for string literal in non-combined grammar: '.'
error(72): D.g4:4:21: label 'j' conflicts with parameter with same name
error(76): D.g4:6:22: return value 'i' conflicts with parameter with same name
warning(108): E.g4:3:4: token name 'A' is already defined
error(145): L.g4:3:5: lexer mode 'X' must contain at least one non-fragment rule
error(146): L.g4:3:0: non-fragment lexer rule 'WS' can match the empty string
error(146): L.g4:5:2: non-fragment lexer rule 'B' can match the empty string
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
Running org.antlr.v4.test.TestTokenStreamRewriter
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.625 sec
Running org.antlr.v4.test.TestTokenTypeAssignment
warning(125): <string>:2:4: implicit definition of token 'A' in parser
warning(125): <string>:2:8: implicit definition of token 'B' in parser
warning(125): <string>:3:4: implicit definition of token 'C' in parser
warning(125): <string>:5:4: implicit definition of token 'A' in parser
warning(125): <string>:5:8: implicit definition of token 'B' in parser
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Running org.antlr.v4.test.TestToolSyntaxErrors
error(99): A.g4::: grammar 'A' has no rules
error(50): <string>:1:0: syntax error: 'A' came as a complete surprise to me
error(50): <string>:1:8: syntax error: ';' came as a complete surprise to me while looking for an identifier
error(50): <string>:2:0: syntax error: missing SEMI at 'a'
error(50): A.g4:2:8: syntax error: ';' came as a complete surprise to me
error(50): A;.g4:1:10: syntax error: ';' came as a complete surprise to me
error(50): A.g4:2:8: syntax error: mismatched input ':' expecting ACTION while matching rule preamble
error(50): A.g4:2:3: syntax error: '(' came as a complete surprise to me while matching rule preamble
error(50): A.g4:2:11: syntax error: mismatched input ')' expecting SEMI while matching a rule
error(50): A.g4:2:15: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): A.g4:2:4: syntax error: ':' came as a complete surprise to me while matching alternative
error(50): A.g4:3:0: syntax error: unterminated rule (missing ';') detected at 'b :' while looking for rule element
error(50): A.g4:3:0: syntax error: unterminated rule (missing ';') detected at 'B :' while looking for lexer rule element
error(50): A.g4:3:9: syntax error: unterminated rule (missing ';') detected at 'returns int y' while looking for rule element
error(50): A.g4:2:4: syntax error: unterminated rule (missing ';') detected at 'b catch' while looking for rule element
error(50): A.g4:2:4: syntax error: unterminated rule (missing ';') detected at 'A catch' while looking for rule element
error(50): A.g4:2:4: syntax error: 'options {' came as a complete surprise to me while looking for an identifier
error(50): A.g4:2:2: syntax error: '}' came as a complete surprise to me while matching rule preamble
error(50): A.g4:4:0: syntax error: 'b' came as a complete surprise to me
error(50): A.g4:4:6: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running org.antlr.v4.test.TestTopologicalSort
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.antlr.v4.test.TestUnbufferedCharStream
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.antlr.v4.test.TestUnbufferedTokenStream
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.178 sec
Results :
Failed tests: compileJdk(org.antlr.v4.test.TestPerformance): The JDK_SOURCE_ROOT environment variable must be set for performance testing.
Tests run: 654, Failures: 1, Errors: 0, Skipped: 2
------------------------------------------------------------------------
Reactor Summary:
ANTLR 4 ........................................... SUCCESS [42.877s]
ANTLR 4 Runtime ................................... SUCCESS [29.039s]
ANTLR 4 Tool ...................................... FAILURE [2:43.072s]
ANTLR 4 Maven plugin .............................. SKIPPED
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3:56.203s
Finished at: Tue Jan 15 08:57:17 CET 2013
Final Memory: 13M/80M
------------------------------------------------------------------------
okay now the files are up (the wiki-server gave a 404). I guess this information makes me do the C# (3,4) code-gen later, when the ANTLRworks2 beta is more capable. I hope it's going to be OpenSource btw.. Java CodeGen is not useful for me/us.
I hope the ANTLRworks 1.x Maven build (using Windows or Linux) will succeed and make me patch the Unicode bugs asap.
Best,
Marius