Terence Parr
|
1d92b311ce
|
Merge branch 'master' into main
|
2012-08-13 12:38:00 -07:00 |
Sam Harwell
|
2975c90fac
|
Serialize/deserialize the value of BlockStartState.endState
|
2012-08-12 11:58:26 -05:00 |
Terence Parr
|
2d62b73a14
|
Merge branch 'master' into main
|
2012-08-06 17:11:38 -07:00 |
Sam Harwell
|
cb09dd6d09
|
Move RuleNode, TerminalNode, ErrorNode, TerminalNodeImpl, and ErrorNodeImpl to top-level types
|
2012-08-06 15:01:00 -05:00 |
Terence Parr
|
64c050f233
|
sets at top level work now: s : A | B ; in lexer and parser.
|
2012-08-05 10:17:00 -07:00 |
Terence Parr
|
799b7afc1c
|
playwith grammar
|
2012-08-05 09:51:52 -07:00 |
Terence Parr
|
717af9c371
|
remove useless code
|
2012-08-05 09:34:20 -07:00 |
Terence Parr
|
8637f31837
|
rm prints
|
2012-08-05 09:21:59 -07:00 |
Terence Parr
|
78d8002303
|
allow atn state optimization; sam fixed.
|
2012-08-04 21:34:42 -07:00 |
Terence Parr
|
492980de71
|
Merge branch 'master' into main
|
2012-08-04 21:31:37 -07:00 |
Sam Harwell
|
2947fe6a2a
|
Fix ATN optimizer leaving loop back state numbers in an inconsistent state
|
2012-08-04 22:22:51 -05:00 |
Terence Parr
|
1bec176eaa
|
Impl Sam's no viable alt avoidance idea that chooses min alt that dips into outer context. unit test
|
2012-08-04 14:18:57 -07:00 |
Terence Parr
|
4090621beb
|
same literal different modes gens no literal in .tokens, rm warning
|
2012-08-04 13:51:18 -07:00 |
Terence Parr
|
aed26c690e
|
Merge branch 'master' into main
|
2012-08-04 13:35:36 -07:00 |
Terence Parr
|
1e88980db5
|
Merge remote-tracking branch 'sharwell/aliased-tokens'
|
2012-08-04 13:33:58 -07:00 |
Terence Parr
|
c2b49bd94e
|
pull in Sam's ATN alt collapsing optimizations with optimizeStates off as it causes a class cast exception.
|
2012-08-04 13:32:07 -07:00 |
Terence Parr
|
c7d1ea7e23
|
Merge remote-tracking branch 'sharwell/atn-optimization'
|
2012-08-04 12:08:43 -07:00 |
Sam Harwell
|
d504d21010
|
Do not emit token types for lexer rules with a 'type(...)' or 'more' command
|
2012-08-04 14:05:17 -05:00 |
Terence Parr
|
20d96b0a86
|
Merge remote-tracking branch 'sharwell/automata-cleanup'
|
2012-08-04 12:04:09 -07:00 |
Terence Parr
|
88dedbd1e0
|
added mergeArray cache, which didnt help java much but made massive diff to Go grammar. a file, nat.go, went from 2min to 3s in speed. Fixed bug where SLL had preds but they ORd to NONE. made it resolve to min alt. DoubleKeyMap moved to runtime.
|
2012-08-03 20:27:23 -07:00 |
Terence Parr
|
e7b65057a6
|
added var for sll loop tail recursion default value; updated unit tests
|
2012-08-03 18:12:52 -07:00 |
Sam Harwell
|
674471c090
|
Add NotNull annotations, null check, tweak documentation
|
2012-08-03 08:46:07 -05:00 |
Sam Harwell
|
43da92e117
|
Remove old tree parser code
|
2012-08-03 08:45:36 -05:00 |
Sam Harwell
|
5019278204
|
Add ATN optimization to collapse multiple alternatives to a single SetTransition where possible. Currently disabled for parser grammars since the code generator doesn't support set transitions.
|
2012-08-03 08:33:11 -05:00 |
Sam Harwell
|
1f4df2ea5a
|
Add ATN optimization to remove null state entries and renumber the remaining states
|
2012-08-03 08:33:10 -05:00 |
Sam Harwell
|
f9bacf5060
|
Add ATN optimizer (currently doesn't provide optimizations)
|
2012-08-03 08:33:10 -05:00 |
Sam Harwell
|
eff9e0c47f
|
Move TailEpsilonRemover to top-level class
|
2012-08-03 08:33:09 -05:00 |
Terence Parr
|
0cfe3b4206
|
tweak to leave code for printing DFA DOT
|
2012-08-01 14:36:19 -07:00 |
Terence Parr
|
feb41eee15
|
fix a few unit tests.
|
2012-07-31 19:09:40 -07:00 |
Terence Parr
|
abb268416e
|
Merge branch 'master' into main
|
2012-07-31 18:34:33 -07:00 |
Sam Harwell
|
170a8347bb
|
Emit a RangeTransition instead of SetTransition if a set has only one interval
|
2012-07-31 09:07:04 -05:00 |
Terence Parr
|
c893f2af08
|
Pulled Sam's new IntegerList
|
2012-07-30 15:20:43 -07:00 |
Sam Harwell
|
7d4f71d829
|
Use IntegerList in the tool
|
2012-07-30 15:18:07 -05:00 |
Terence Parr
|
489f3d17cb
|
tweak
|
2012-07-29 17:04:05 -07:00 |
Terence Parr
|
8836e13954
|
use ReentrantReadWriteLock to sync. works much better but still occasional illegal monitor state :(
|
2012-07-29 17:01:41 -07:00 |
Terence Parr
|
4fe9efeb85
|
tweak tester
|
2012-07-29 14:28:59 -07:00 |
Terence Parr
|
c97f36bd89
|
reorg workers
|
2012-07-29 13:45:41 -07:00 |
Terence Parr
|
230b687b03
|
add barrier
|
2012-07-29 13:03:10 -07:00 |
Terence Parr
|
5712424156
|
create 2 worker threads for testjavalr
|
2012-07-29 12:28:29 -07:00 |
Terence Parr
|
7181483bbf
|
test javalr does -2x now
|
2012-07-29 10:57:51 -07:00 |
Terence Parr
|
510c1c0dd9
|
clean up
|
2012-07-29 10:50:14 -07:00 |
Terence Parr
|
79594a942e
|
synchronized lexer. just as fast now to build new parser/lexer each iter in TestJavaLR
|
2012-07-29 10:48:08 -07:00 |
Terence Parr
|
e3e739dfc7
|
The lexer and parser ATN simulators' adaptivePredict now synchronize on the specific DFA of the decision to be simulated. This should prevent a lot of contention that would occur if we synchronize the entire adaptivePredict method. When the individual DFA are created, we also synchronize on the shared DFA[] table quickly to create a DFA and insert it into the array. Code generation modified to have _decisionToDFA generated at the top of both the parser and the lexer. Simulators created now with the recognizer, ATN, DFA[]. Not sure the LexerInterp/ParserInterp work but pushing ahead anyway for the moment.
|
2012-07-29 09:49:35 -07:00 |
Terence Parr
|
109880b7ab
|
added ALIAS_REASSIGNMENT warning so redef of string literal among rules caught. First literal goes to .tokens.
|
2012-07-28 14:24:39 -07:00 |
Terence Parr
|
680df17280
|
rm transient context cache for closure computations; slight speed improvement maybe. less complex.
|
2012-07-28 10:51:07 -07:00 |
Terence Parr
|
26165c5d54
|
atnconfigsets can be readonly now. no copying to put into new DFA state, set readonly instead. made atnconfigset.equals() more accurate. add -notree option to test java lr
|
2012-07-27 10:34:59 -07:00 |
Terence Parr
|
3c7b4c2a33
|
big cleanup.
|
2012-07-26 17:28:10 -07:00 |
Terence Parr
|
48ddc0bcee
|
add gc()
|
2012-07-26 12:42:10 -07:00 |
Terence Parr
|
86a4f26596
|
still has dfa and local predict ctx cache, but doesn't help much, and takes time. Eval preds as we pass them in full ctx mode; no sempred ctx in configs then. removed LANDMINE!!!!!!!!! some lame code that uses fields like _startIndex; fix that. added bail option to testjavalr. 18s to parse java.* with javalr full ctx now.
|
2012-07-25 18:47:34 -07:00 |
Terence Parr
|
3774c5752b
|
add more tracking var
|
2012-07-25 10:30:19 -07:00 |