Peter Boyer
15aa407757
Banish instanceof to hell
2015-12-15 21:01:08 -05:00
Peter Boyer
dc5cf284ed
while -> for
2015-12-15 18:25:43 -05:00
Peter Boyer
1ac3d2701a
Mass fixes for toString
2015-12-15 18:15:13 -05:00
Peter Boyer
ac5e4d9b44
Mass fix for for loops
2015-12-15 18:13:43 -05:00
Peter Boyer
02d9013ea1
Comment out all require statements and prototype tomfoolery
2015-12-15 18:05:15 -05:00
Peter Boyer
a8da94cb2e
More const refactorings
2015-12-15 16:58:12 -05:00
Peter Boyer
729f30768a
Mass refectoring of const variables
2015-12-15 16:38:01 -05:00
Peter Boyer
fc75fbfab0
new -> New
2015-12-15 15:59:04 -05:00
Peter Boyer
f12eaef24f
!== -> !=
2015-12-15 15:55:04 -05:00
Peter Boyer
8a00cbd485
null -> nil
2015-12-15 15:53:04 -05:00
Peter Boyer
d3d82b920a
More work up to LL1Analyzer
2015-12-15 15:50:44 -05:00
Peter Boyer
7d07d7514e
First pass on token stream types
2015-12-15 15:08:06 -05:00
Peter Boyer
e7e1138e5b
Started to work on Lexer.go
2015-12-15 14:29:49 -05:00
Peter Boyer
f044fc5048
Parser template starting to look pretty good
2015-12-15 14:29:33 -05:00
Peter Boyer
7419ca6840
More tweaks
2015-12-14 17:39:42 -05:00
Peter Boyer
625ff2ee55
A few fixes
2015-12-14 17:30:46 -05:00
Peter Boyer
e19f0e8564
More adjustments to code generation tool
2015-12-14 17:20:58 -05:00
Peter Boyer
eac3d7d665
More work on parser template file
2015-12-14 16:35:29 -05:00
Peter Boyer
e0db3f55bc
Mass removal of semicolons, more type conversion work
2015-12-14 16:34:59 -05:00
Peter Boyer
e99caf1861
Prototype arithmetic grammar
2015-12-14 14:49:30 -05:00
Peter Boyer
5d046e256b
First steps on converting tool template to Go
2015-12-14 14:47:53 -05:00
Peter Boyer
9f9cd374b4
Add GoTarget
2015-12-14 12:01:21 -05:00
Peter Boyer
acbce59a89
Rename file
2015-12-14 11:27:52 -05:00
Peter Boyer
2c36445ac3
Stub out stg file
2015-12-14 11:27:11 -05:00
Peter Boyer
447452755e
First commit of go runtime
2015-12-14 11:02:33 -05:00
Terence Parr
01e6923dbd
Merge pull request #1059 from parrt/KvanTTT-master
...
Kvan ttt master
2015-12-08 11:39:09 -08:00
Terence Parr
1438ab817f
why oh why does intellij skip changes when i push?
2015-12-08 11:38:35 -08:00
Terence Parr
99563b116e
merging KvanTTT changes.
2015-12-08 11:38:08 -08:00
Terence Parr
a072f59a87
Merge branch 'master' of github.com:antlr/antlr4
2015-12-08 11:34:45 -08:00
Terence Parr
e7ba4967bc
tweak doc
2015-11-26 11:04:58 -08:00
Terence Parr
6068a4a2c7
Merge pull request #1054 from abego/patch-4
...
Possible NullPointerException in ActionTranslater#translateActionChunk
2015-11-25 09:05:46 -08:00
Terence Parr
36d8d41def
Merge pull request #1046 from abego/extraNullCheckInTestRig
...
Extra 'null' check in TestRig#process
2015-11-25 09:04:43 -08:00
Terence Parr
6da877e895
Merge pull request #1053 from abego/patch-3
...
Doc: more details on remotes `origin` and `upstream` in local Git repo
2015-11-25 09:04:09 -08:00
Terence Parr
bd947c90a6
Merge pull request #1055 from abego/patch-5
...
sign "contributors.txt" file
2015-11-25 09:03:47 -08:00
Udo Borkowski
b9b1afe902
sign "contributors.txt" file
2015-11-25 10:08:35 +01:00
Udo Borkowski
10edd9a243
Possible NullPointerException in ActionTranslater#translateActionChunk
...
The parameter `RuleFunction rf` in `ActionTranslater#translateActionChunk` may be `null`.
The method's implementation takes care of this by checking `rf` before making its `ruleCtx` the translator's nodeContext:
```
if ( rf!=null ) translator.nodeContext = rf.ruleCtx;
```
However in the statement following this code the check for `rf!=null` is missing. This will lead to a `NullPointerException` when `altLabel` is defined and `rf` is `null`:
```
if ( altLabel!=null ) translator.nodeContext = rf.altLabelCtxs.get(altLabel);
```
To avoid the problem only access `rf.altLabelCtxs` when `rf` is not null:
```
if ( rf!=null ) {
translator.nodeContext = rf.ruleCtx;
if ( altLabel!=null ) translator.nodeContext = rf.altLabelCtxs.get(altLabel);
}
```
2015-11-25 00:37:48 +01:00
Udo Borkowski
0857dc40f3
Doc: more details on remotes `origin` and `upstream` in local Git repo
2015-11-25 00:32:56 +01:00
Terence Parr
8d6203450d
Merge pull request #1052 from parrt/master
...
this->self.
2015-11-24 11:14:37 -08:00
Terence Parr
15f69d6697
this->self.
2015-11-24 10:58:19 -08:00
Terence Parr
8a4aa39de2
fix links
2015-11-23 16:19:45 -08:00
Terence Parr
3726992071
Merge pull request #1051 from parrt/move-doc-to-repo
...
Move doc to repo from wiki.
2015-11-23 16:10:30 -08:00
Terence Parr
292dce4f6d
add more doc
2015-11-23 16:06:04 -08:00
Terence Parr
5aa8b29453
add more doc
2015-11-23 15:57:58 -08:00
Terence Parr
e1073410f8
more doc
2015-11-22 09:25:41 -08:00
Terence Parr
1c3b4515ea
add more doc
2015-11-19 15:59:04 -08:00
Terence Parr
73f042139c
add more doc
2015-11-19 12:47:28 -08:00
Terence Parr
586bcd2368
Merge branch 'master' of github.com:parrt/antlr4 into move-doc-to-repo
2015-11-19 12:39:11 -08:00
Terence Parr
05b50325a8
Merge pull request #991 from michaelpj/sync-before-predict
...
Reinstitute `sync` calls before `adaptivePredict`
2015-11-19 12:37:09 -08:00
Terence Parr
3fa8cfe29e
add more doc
2015-11-19 12:34:04 -08:00
Udo Borkowski
a71ffbe8bc
Extra 'null' check in TestRig#process
...
After loading and casting the parserClass in TestRig#process using
`cl.loadClass(parserName).asSubclass(Parser.class)` there is a check if
the class returned by `#asSubclass` is not null:
```
parserClass = cl.loadClass(parserName).asSubclass(Parser.class);
if ( parserClass==null ) {
System.err.println("Can't load "+parserName);
}
```
The method `#asSubclass` will never return `null`, but throw an
`ClassCastException` when the cast is not valid, therefore the check
can be removed.
See also: [TestRig#process Documentation](http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html#asSubclass(java.lang.Class\) )
2015-11-19 18:27:32 +01:00