Commit Graph

4953 Commits

Author SHA1 Message Date
Eric Vergnaud 15430d4bf9 remove unwanted semicolon in generated Python code 2016-06-23 15:06:49 +02:00
Eric Vergnaud c260ce75d1 make it possible to add breakpoint 2016-06-23 15:06:14 +02:00
Peter Boyer 97bf8d63f8 TODO 2016-06-17 19:21:11 -04:00
Peter Boyer 6c717889b2 Make protected members package public 2016-06-17 19:19:04 -04:00
Peter Boyer c877bee8f1 PORT_DEBUG fix 2016-06-17 19:18:46 -04:00
Peter Boyer 7b1059ab6e Cleanup 2016-06-17 19:18:04 -04:00
Peter Boyer e4498eca87 delete js test code, unused license/readme 2016-06-17 19:17:39 -04:00
Will Faught c9ac8a6c61 Generate Go tests 2016-06-16 23:29:10 -07:00
Will Faught c72ef6383e Clean up Go test templates 2016-06-16 23:27:47 -07:00
Will Faught 80f99b50da Fix Property calls in generated Go tests 2016-06-16 23:20:52 -07:00
Will Faught 4e560db250 Fix SetErrorHandler and NewBailErrorStrategy calls in generated Go tests 2016-06-16 23:20:52 -07:00
Will Faught 40b7e1bf12 Fix parser tokens in generated Go tests 2016-06-16 23:20:45 -07:00
Peter Boyer 29eaba44b0 Merge pull request #34 from willfaught/style-charstream-commontoken-dfa
Clean up Go runtime char stream, common token, and dfa code
2016-06-16 14:45:01 -04:00
Peter Boyer c58b3a9189 Merge pull request #33 from willfaught/atn-runtime-cleanup
ATN runtime format, style, and comment cleanup
2016-06-16 14:44:32 -04:00
Will Faught 3e621970f5 Clean up Go runtime char stream, common token, and dfa code 2016-06-16 11:15:49 -07:00
Will Faught 538455eae6 ATN runtime format, style, and comment cleanup 2016-06-14 15:09:42 -07:00
Peter Boyer c8a9d75cfe Merge pull request #21 from wjkohnen/gofmt
tool/Go: gofmt generated code.
2016-06-14 16:26:36 -04:00
Peter Boyer e50bf8b4cf Update README.md 2016-06-14 14:10:40 -04:00
Peter Boyer e86bc4efca Update README.md 2016-06-14 14:09:08 -04:00
Peter Boyer e50b0ca8cd Merge pull request #28 from willfaught/fmt-structure
Fix the layout of some generated Go code
2016-06-14 13:17:23 -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 ce5fb52989 Merge pull request #27 from wjkohnen/buildsys
runtime-testsuite/Go: fix recursion
2016-06-06 16:07:51 -04:00
Wolfgang Johannes Kohnen f8f872bfc9 runtime-testsuite/Go: fix recursion 2016-06-06 08:12:50 +02:00
Peter Boyer ce4daca3a1 Update README.md 2016-06-05 19:19:02 -04:00
Peter Boyer 53ffa6086c Update README.md 2016-06-05 19:15:26 -04:00
Peter Boyer 3c45483d33 Update README.md 2016-06-05 19:14:53 -04:00
Peter Boyer cd30fe4613 Merge pull request #25 from wjkohnen/buildsys
Cache Go test environment and make it self-contained.
2016-06-05 17:54:21 -04: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
Wolfgang Johannes Kohnen bf7cc8ce80 runtime-testsuite/Go: Cache Go test environment and make it self-contained.
* "go install" the Go runtime inside a temporary GOPATH directory.
 * Remove unnecessary GOPATH variable elements.
 * Change some instances of stringly typing to strongly typing.
 * Remove a few pointless indirections.
 * Cleanup erase helper methods, make eraseFiles (eraseDirectory)
   static and recursive (used by @AfterClass as well).
 * Other minor cleanups.
 * => this works on travis now and is about twice as fast! :)
2016-06-05 21:52:53 +02: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
Peter Boyer 55e9ca3479 Merge pull request #20 from wjkohnen/tool-package2
tool/Go: enable -package option
2016-06-05 14:48:27 -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
Peter Boyer 44ee0a52ee Merge pull request #19 from willfaught/header
Minor header comment rewording and formatting
2016-06-01 11:48:06 -04: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
Peter Boyer a0fd4a7675 Merge pull request #17 from wjkohnen/issue16
Sort values of BitSet.
2016-05-31 17:13:32 -04:00
Wolfgang Johannes Kohnen 950acca7c0 Sort values of BitSet.
* Fixes pboyer/antlr4#16
2016-05-31 17:13:01 +02:00
Peter Boyer 6abe69f6e2 Merge pull request #15 from wjkohnen/timeout2
runtime-testsuite/Go: timeout tests, honour GOROOT
2016-05-31 09:25:29 -04:00
Wolfgang Johannes Kohnen 4fd4e51810 runtime-testsuite/go: Make path construction slightly more robust.
* also piggy back a typo fix.
2016-05-28 11:15:14 +02:00
Wolfgang Johannes Kohnen f2dc9f476b runtime-testsuite/Go: timeout tests, honour GOROOT 2016-05-27 22:56:56 +02:00