Commit Graph

2007 Commits

Author SHA1 Message Date
Sam Harwell e5bdcccfc7 Updated Mojo name (antlr4) and default phase (generate-sources) 2013-01-21 13:13:00 -06:00
Terence Parr 21a97e4ead tweak 2013-01-21 11:10:49 -08:00
Terence Parr 9c44939f6a tweak for 4.0 release 2013-01-20 16:51:11 -08:00
Sam Harwell f37d99bc92 Updated error messages and documentation 2013-01-16 13:45:08 -06:00
Sam Harwell a972a4dc24 Add error 148: left recursive rule 'a' contains a left recursive alternative which can be followed by the empty string 2013-01-16 13:23:20 -06:00
Sam Harwell 9ccdca49bb Add error 147: left recursive rule 'a' must contain an alternative which is not left recursive; fixes antlr/antlr4#140 2013-01-16 12:38:55 -06:00
Sam Harwell 8e32d7b695 Clean up imports 2013-01-16 12:37:39 -06:00
Sam Harwell 425df2c595 Ensure the token stream is always properly set for Grammar, GrammarRootAST, and LeftRecursiveRuleAnalyzer 2013-01-16 12:37:10 -06:00
Sam Harwell db51cb38ed Update CHANGES.txt 2013-01-15 09:19:10 -06:00
Sam Harwell 5d489ccbbe Update documentation 2013-01-15 09:18:07 -06:00
Sam Harwell 0a6d1bff7e Fix invalid escape sequences generated for literals containing backslashes 2013-01-15 09:17:56 -06:00
Sam Harwell d3a76ebcb1 Update CHANGES.txt 2013-01-15 08:58:00 -06:00
Sam Harwell 98c29943e5 Make TokenVocabParser fields `protected final` 2013-01-15 08:54:39 -06:00
Sam Harwell 758e2422f5 Updated error message, updated TestAttributeChecks 2013-01-15 08:54:07 -06:00
Sam Harwell df7fb3de2f Call grammarError instead of toolError to provide proper error location 2013-01-15 08:53:39 -06:00
Sam Harwell 48c1a8d433 Forgot to update GrammarTreeVisitor to support modes with no rules 2013-01-14 18:43:23 -06:00
Sam Harwell f43064a31e Update CHANGES.txt 2013-01-14 18:06:21 -06:00
Sam Harwell 3521a00dbb Add error 146: non-fragment lexer rule can match the empty string 2013-01-14 18:03:21 -06:00
Sam Harwell 9edec91022 Add error 145: lexer mode must contain at least one non-fragment rule 2013-01-14 18:03:13 -06:00
Sam Harwell c1f831aed1 Parser allows empty options{} block, empty element options, modes with no rules, and empty lexer alternatives 2013-01-14 18:03:09 -06:00
Sam Harwell 9f82e11431 Remove unused field 2013-01-14 18:03:08 -06:00
Sam Harwell c51bdc2fc9 Add missing listener interface methods to GrammarTreeVisitor 2013-01-14 18:03:07 -06:00
Sam Harwell d79bc252bc TestRig uses instance fields instead of static fields, allows reuse from other applications 2013-01-12 14:11:22 -06:00
Sam Harwell 7ae67de110 Reduce size of _serializedATN by adding 2 to each element: new representation avoids embedded values 0 and 0xFFFF which are common and have multi-byte representations in Java's modified UTF-8 2013-01-11 13:34:08 -06:00
Sam Harwell ce279de429 Updated CHANGES.txt 2013-01-11 12:55:26 -06:00
Sam Harwell b5650404e0 Error message cleanup 2013-01-11 12:47:47 -06:00
Sam Harwell ed9f52702e Use separate error messages for multi-character literals (always illegal) and rule references (not yet supported) in lexer sets 2013-01-11 12:46:42 -06:00
Sam Harwell 538f66a194 Documentation and cleanup in AttributeDict 2013-01-11 11:49:51 -06:00
Sam Harwell 40a40e0fee Add detailed errors for the various types of conflicts between names of rules, tokens, parameters, return values, locals, and labels 2013-01-11 11:45:24 -06:00
Sam Harwell 47dcd4881c Report conflicting argument error at specific location in input 2013-01-11 10:17:07 -06:00
Sam Harwell 0496cff256 Add field Attribute.token to hold a pseudo-token with specific location information for the attribute; track this position in ScopeParser 2013-01-11 09:49:38 -06:00
Sam Harwell 260115fa23 The ARG_ACTION token for a rule's locals is always an ActionAST 2013-01-11 09:46:33 -06:00
Sam Harwell 3bfd7c3770 Add map from Java's logical fonts to postscript font names 2013-01-10 15:02:17 -06:00
Sam Harwell f19059d6b5 Calculate font metrics from the system 2013-01-10 15:02:11 -06:00
Sam Harwell 723637fc59 Update CHANGES.txt 2013-01-10 15:00:16 -06:00
Sam Harwell 6b3d102ba1 Also check rule list labels 2013-01-10 14:57:51 -06:00
Sam Harwell 899d15aa5a Handle null scope 2013-01-10 14:49:04 -06:00
Sam Harwell 19f861ee81 Added error message 135: cannot assign a value to list label: $label 2013-01-10 14:48:59 -06:00
Sam Harwell 8d13e3c47e Ant build.xml: Tweak build message 2013-01-06 16:16:25 -06:00
Sam Harwell 567baefa62 Ant build.xml: improved up-to-date checks, remove need to pass "-make" to the ANTLR 3 tool 2013-01-06 15:28:16 -06:00
Sam Harwell 01bc4f1ab7 Ant build.xml: use macro to simplify multiple calls to the tool 2013-01-06 15:28:15 -06:00
Sam Harwell 4d3da87119 Ant build.xml: Move mkdir task to antlr3 target, where the grammars are actually compiled 2013-01-06 15:28:13 -06:00
Sam Harwell dfb2143077 Ant build.xml: rename antlr3.gen.dir property to build.antlr3.dir 2013-01-06 15:28:12 -06:00
Sam Harwell f2ae1ef204 Ant build.xml: allow user settings in user.build.properties 2013-01-06 15:28:07 -06:00
Sam Harwell 0cced01ab3 Ant build.xml: look for ANTLR 3 library in lib folder, download from antlr.org if missing. Remove unnecessary build.properties. 2013-01-06 15:27:45 -06:00
Sam Harwell f1b6e93a04 Revert "Ant build.xml: Faster build if we don't fork the ANTLR task"
This reverts commit 6e9129848e.
2013-01-05 14:35:37 -06:00
Sam Harwell d1ba09f1f7 Clarify number of allowed transitions leaving a state 2013-01-05 14:34:16 -06:00
Sam Harwell f59a08c172 Maven build: reference jUnit 4.10, ANTLR 3.5 final, ST 4.0.7 final 2013-01-05 06:08:12 -06:00
Sam Harwell 93f7a448e7 Add graphs describing ATNState relations 2013-01-05 05:47:15 -06:00
Sam Harwell 57295785d5 Ant build.xml: Improve build performance avoiding an unnecessary directory copy 2013-01-05 05:40:19 -06:00