Commit Graph

4548 Commits

Author SHA1 Message Date
Peter Boyer 2aad0fde60 Banish undefined to nil 2015-12-16 16:08:00 -05:00
Peter Boyer f9ef62e7b8 RuleContext, Token, Utils 2015-12-16 16:07:08 -05:00
Peter Boyer 350a39cef3 Various type fixes 2015-12-16 13:42:03 -05:00
Peter Boyer ca20ec3cae AltDict, DoubleDict 2015-12-16 13:41:43 -05:00
Peter Boyer 704a507fac More, more, more types 2015-12-15 22:20:47 -05:00
Peter Boyer fd61f71cb9 More, more types 2015-12-15 21:29:58 -05:00
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