parrt
e0521400cb
rm need for isRuleContext in templates; refer to underlying grammar object.
2016-11-05 06:28:58 -07:00
parrt
85f2a87840
rm recognizerName field where possible
2016-11-04 16:07:45 -07:00
parrt
95dbf7b44b
look for go in path during tests
2016-11-04 16:06:41 -07:00
Peter Boyer
2444386091
Remove JavaScript PORT_DEBUG, re-enable runtime tests for other language targets ( #69 )
...
* Re-enable runtime tests for other language targets
* Fix typo in js code
* Remove PORT_DEBUG statements
* Fix missing
* Fix testAltNum
2016-10-13 17:06:22 -04:00
Peter Boyer
42347c078b
Fix merge failure
2016-10-12 09:53:43 -04:00
Peter Boyer
60662c4b70
Fix remaining tests ( #64 )
...
* Fix pred context typo
* Adjust array lengths
* PositionAdjustLexer test fix first steps
* allow virtual method calls from Lexer
* Hopefully fix issues with dup namedActions
* Make parser members
* Fix testParserProperty
* Fix LeftRecursion test failures
2016-10-12 09:49:42 -04:00
Peter Boyer
9b76bc6a71
Update Go.stg
2016-10-05 12:04:01 -04:00
Terence Parr
e9aa00e05b
Merge pull request #1172 from renatahodovan/default-pass
...
Add missing default pass statements to Python targets.
2016-09-25 11:24:48 -07:00
Will Faught
7f42bc602b
Add interface build checks for tree types and generated base listeners
2016-07-18 12:19:31 -07:00
Will Faught
a05dea54ec
Fix test case build errors
2016-07-06 09:02:42 -07:00
Eric Vergnaud
15430d4bf9
remove unwanted semicolon in generated Python code
2016-06-23 15:06:49 +02:00
Peter Boyer
c8a9d75cfe
Merge pull request #21 from wjkohnen/gofmt
...
tool/Go: gofmt generated code.
2016-06-14 16:26:36 -04:00
Will Faught
81b464a375
fixup! Fix the layout of some generated Go code
2016-06-10 22:39:36 -07:00
Will Faught
c3d6c20ee4
Fix the layout of some generated Go code
...
And some related fixes.
- Combined multiple blank lines between package decls into one
- Moved some doc comments to just above what they document
- Changed some doc comments to start with the documented thing's name
- Removed some redundant anchor and wrap ST options
- Changed an empty struct type containing just a newline to struct{}
- Added some missing doc comments to exported interface methods
- Removed unneeded parentheses around a single import
- Prevents generating empty const blocks
- Generates single-line package const decls if only one decl
- Indented switch case bodies
- Content checks for some template vars, e.g. if v defined then v else nothing
- Removed template redundancies, e.g. from <attrs:{a | <a>}> to <attrs>.
- Removed blank lines that group embedded types and fields separately
- Changed some trivial one-line func/method decls to mult-line
- Changed empty package slice decls to use nil, e.g. var foo []uint16
- Changed const int enums that used the ST <i> var to use iota instead
- Replaced separator in GoTarget.encodeIntAsCharEscape with a template separator
2016-06-10 14:18:02 -07:00
Wolfgang Johannes Kohnen
bc5d6e9c4d
tool/Go: gofmt generated code.
...
* gofmt can be disabled with property -Dantlr.go.disable-gofmt=true or
setting env ANTLR_GO_DISABLE_GOFMT=true
2016-06-08 17:36:04 +00:00
Peter Boyer
6d881c395d
Merge pull request #23 from willfaught/fmt
...
Fix whitespace in generated Go code
2016-06-05 17:49:34 -04:00
Peter Boyer
1bf006bd91
Merge pull request #22 from wjkohnen/predef-idents
...
tool/Go: Add predefined identifiers to list of keywords.
2016-06-05 14:51:43 -04:00
Will Faught
94ded73cba
Change multi-line template signatures into one line
2016-06-04 21:54:59 -07:00
Will Faught
a94377d2a5
Add space after commas separating two vars
2016-06-04 21:52:36 -07:00
Will Faught
06e4bb1cd1
Add spaces around template var binder "|"
2016-06-04 21:50:12 -07:00
Will Faught
6a89c4529e
Remove line-ending semicolons
2016-06-04 21:47:48 -07:00
Will Faught
fc275721b8
Add spaces around == and !=
2016-06-04 21:47:14 -07:00
Will Faught
d4d46b2930
Combine multiple spaces around ::= into one
2016-06-04 21:44:07 -07:00
Will Faught
4cdc421ce7
Replace 4 spaces with a tab
2016-06-04 21:40:56 -07:00
Wolfgang Johannes Kohnen
696820e2ea
tool/Go: Add predefined identifiers to list of keywords.
2016-06-04 13:13:02 +00:00
Wolfgang Johannes Kohnen
4f8951e5ef
tool/Go: enable -package option
...
see antlr/antlr4/issues/1204, pboyer/antlr4/issues/13
2016-06-03 12:20:39 +00:00
Will Faught
52028c52ce
Prevent generated file header from being package doc
2016-05-31 19:09:50 -07:00
Will Faught
6515a84d63
Change generated file header to full sentence
2016-05-31 19:09:40 -07:00
Will Faught
9562d87d49
Change willfaught/antlr4 to pboyer/antlr4
2016-05-26 23:43:43 -07:00
Will Faught
8d863ea19c
Change antlr/antlr4 to willfaught/antlr4
2016-05-26 23:38:51 -07:00
Will Faught
b503116e12
Move runtime/Go/src/antlr to runtime/Go/antlr
2016-05-26 11:51:28 -07:00
Peter Boyer
31d21ff4db
Update templates
2016-05-25 17:20:38 -04:00
Renata Hodovan
7562bb3b45
Add missing default pass statements to Python targets.
...
The default pass statements were missing from the LL1AltBlock's
template in case of Python targets, which generated conditional statements
without body in some cases and ended in syntax error. The patch fixes this.
2016-04-13 21:21:07 +02:00
parrt
b92f22769e
[maven-release-plugin] prepare for next development iteration
2016-03-30 16:25:49 -07:00
parrt
567fcc6311
[maven-release-plugin] prepare release antlr4-master-4.5.3
2016-03-30 16:25:45 -07:00
parrt
cd0913712a
set code string versions to 4.5.3
2016-03-30 16:21:50 -07:00
parrt
b78e0e9c1e
add test and a guard in action translator. minor. Relates to https://github.com/antlr/antlr4/issues/1143
2016-03-30 11:17:57 -07:00
parrt
9e98714a1d
Add ability to set parse tree internal node super class with option contextSuperClass. Provide impl in Java target that has altNum backing field. Add test across targets to set/get alt num. Fixes #1152 .
2016-03-30 11:00:47 -07:00
parrt
7d16438a19
only gen "set stop token" if finally/after actions exist.
2016-03-30 09:48:33 -07:00
Terence Parr
b05d86c150
Merge pull request #1131 from gagern/setStopToken
...
Set stop token in postamble
2016-03-30 16:43:07 +00:00
Terence Parr
69ff2669ee
Merge pull request #1117 from ericvergnaud/python-del-keyword
...
added missing del keyword to Python targets
2016-03-30 02:29:51 +00:00
parrt
196c4d5913
argh! cutt out too much last push
2016-03-29 16:46:48 -07:00
parrt
3a48085f90
a piece of another branch snuck in! del.
2016-03-29 16:45:17 -07:00
parrt
eeea98c00b
tweak to michaelpj's PR; alter name. Indicate this fixes #1048 .
2016-03-29 15:28:36 -07:00
parrt
f2cbc6eb7c
Merge branch 'left-recursive-prefix-alternatives' of git://github.com/michaelpj/antlr4 into michaelpj-left-recursive-prefix-alternatives
2016-03-29 15:23:59 -07:00
parrt
1beb8feb4f
add "return" to python3 keywords
2016-03-29 14:44:17 -07:00
parrt
41a196082d
Merge branch 'master' of github.com:antlr/antlr4
2016-03-29 14:40:17 -07:00
Terence Parr
9655a92d50
Merge pull request #1149 from Wingpad/master
...
Fixing Issue #1148
2016-03-29 21:39:43 +00:00
parrt
cd9ed40ab0
Merge branch 'master' of github.com:antlr/antlr4
2016-03-28 15:32:42 -07:00
Martin von Gagern
2c71663a97
Fix Javadoc errors
...
This fixes all errors (but not the numerous warnings) reported by
Oracle JDK 1.8.0_72 in a simple run of “mvn javadoc:javadoc”.
2016-03-28 23:46:18 +02:00