parrt
|
6c5f3655b9
|
dropped another eps edge; like 5% savings for JavaLR.g4
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9543]
|
2011-12-07 13:07:04 -08:00 |
parrt
|
946c59da14
|
added Sam's fix for def of ambiguous DFA state; added unit test but not working yet. rule ctx conflictsWith() consistent with v3 now; replaced some Set<Integer> with IntervalSet (for alt sets) and sped things up.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9541]
|
2011-12-06 17:10:53 -08:00 |
parrt
|
28696fe2ff
|
add toSet()
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9540]
|
2011-12-06 15:58:47 -08:00 |
sharwell
|
cb5d55512a
|
v4: remove stale code (and fix broken build)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9539]
|
2011-12-06 13:31:34 -08:00 |
sharwell
|
af8e1edb32
|
v4: Run unit tests in same process (30% performance improvement)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9538]
|
2011-12-06 13:30:05 -08:00 |
parrt
|
6e79c36861
|
add verbose dfa state option
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9537]
|
2011-12-06 12:09:19 -08:00 |
parrt
|
afb89c56b9
|
fix a few unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9536]
|
2011-12-06 11:47:40 -08:00 |
parrt
|
cc00494e9d
|
add null chk
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9535]
|
2011-12-06 11:41:08 -08:00 |
parrt
|
27aca5a66e
|
rm prints
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9533]
|
2011-12-06 11:24:33 -08:00 |
sharwell
|
edc4224b56
|
v4: updated atn graphs
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9531]
|
2011-12-06 10:46:33 -08:00 |
parrt
|
cab803d5f3
|
tweak comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9528]
|
2011-12-05 09:44:40 -08:00 |
parrt
|
265a189a86
|
crap. fixing regression. was adding way too many followlinks.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9527]
|
2011-12-04 19:01:55 -08:00 |
parrt
|
2ddb8100e9
|
shrunk serialized ATN a bit
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9526]
|
2011-12-04 18:39:20 -08:00 |
parrt
|
b09077209c
|
fixed hideous bug found by sam in getAmbigAlts
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9525]
|
2011-12-04 18:21:24 -08:00 |
parrt
|
110fafde5a
|
change name
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9524]
|
2011-12-04 16:02:40 -08:00 |
parrt
|
80fd90d363
|
rm'd epsilon transition in ATN after rule refs.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9518]
|
2011-12-03 14:52:24 -08:00 |
parrt
|
2b8a821c21
|
turn off dbg print
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9517]
|
2011-12-03 14:16:47 -08:00 |
parrt
|
f08e8fc098
|
predTransition was not passing along predicate properly. rm'd unneeded parameter. pass null if ctx independent pred. added 2 unit tests for non outer ctx check.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9516]
|
2011-12-03 14:12:06 -08:00 |
parrt
|
cabe808c7f
|
trivial change, gets small speed bump
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9514]
|
2011-12-02 12:22:35 -08:00 |
sharwell
|
beec4ab721
|
v4: Back out changelist 9511 (change DFAState.configs to ATNConfig[])
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9513]
|
2011-12-02 10:04:34 -08:00 |
parrt
|
ae74881de6
|
strip epsilons between alternative elements and also stripped the final epsilons before block ends. added an ATN visitor for general use. updated all of the unit tests so they pass new smaller ATNs. had to do some work in the serialization and deserialization to handle state numbers without state information. did not want to reorder state numbers during optimization.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9512]
|
2011-12-01 17:46:12 -08:00 |
sharwell
|
682e60b065
|
v4: DFAState.configs now ATNConfig[] instead of OrderedHashSet<ATNConfig>
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9511]
|
2011-12-01 17:04:25 -08:00 |
parrt
|
4d942c37c8
|
use RuleContext not ParserRuleContext during prediction
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9510]
|
2011-12-01 14:24:57 -08:00 |
parrt
|
4400ba169f
|
refactored RuleContext to move all noncritical fields down into ParserRuleContext. Widespread but minor changes. Using the more specific ParserRuleContext where appropriate.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9509]
|
2011-12-01 14:01:00 -08:00 |
sharwell
|
38c69af805
|
v4: Back out changelist 9507 (PredictionContext optimization)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9508]
|
2011-12-01 13:14:37 -08:00 |
sharwell
|
11b6fa13f9
|
v4: PredictionContext optimization
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9507]
|
2011-12-01 13:13:24 -08:00 |
parrt
|
a8219d943e
|
got java LR parser working :) allows e A B C e type LR alts now
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9506]
|
2011-11-30 18:57:45 -08:00 |
parrt
|
b6b4583b92
|
let it build DFA again.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9505]
|
2011-11-30 18:31:20 -08:00 |
parrt
|
ad9259fc4f
|
bad attribute in error msg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9504]
|
2011-11-30 18:00:43 -08:00 |
parrt
|
8d7a97fb68
|
fixing some pred bugs. fixed unit testSimple in pred eval. optimized sem ctx.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9503]
|
2011-11-30 17:44:49 -08:00 |
Udo Borkowski
|
1bc3997930
|
add "useCurvedEdges" feature
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9502]
|
2011-11-30 17:10:46 -08:00 |
Udo Borkowski
|
ef57f44240
|
add "useCurvedEdges" feature
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9501]
|
2011-11-30 16:12:35 -08:00 |
sharwell
|
417af93ca1
|
v4: code cleanup in BaseTest
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9500]
|
2011-11-30 09:56:32 -08:00 |
sharwell
|
918544f2b2
|
v4: Code cleanup in BaseTest
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9499]
|
2011-11-30 09:51:48 -08:00 |
sharwell
|
1ba52d6f54
|
v4: Add configurable performance unit test
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9498]
|
2011-11-30 09:37:12 -08:00 |
sharwell
|
49ea01136c
|
v4: Compile the generated listeners in BaseTest. Allow tests to specify extra options to the tool.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9497]
|
2011-11-30 09:34:32 -08:00 |
sharwell
|
8c3e8272d8
|
v4: System.out.format instead of System.out.println
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9496]
|
2011-11-30 08:50:25 -08:00 |
sharwell
|
583668746f
|
v4: Optimize ATNState.onlyHasEpsilonTransitions (5-15% improvement during warmup)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9495]
|
2011-11-30 08:42:54 -08:00 |
sharwell
|
8096b3b4c4
|
v4: Check for early return conditions during DFA updates
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9494]
|
2011-11-30 07:05:38 -08:00 |
sharwell
|
83a5f592d0
|
v4: Convert do{...}while(true) to while(true){...}
Use CharStream.EOF instead of Token.EOF when referencing results of CharStream.LA
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9493]
|
2011-11-30 07:03:40 -08:00 |
sharwell
|
befd9ba483
|
v4: Combine calls to Set.contains and Set.add
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9492]
|
2011-11-30 06:32:33 -08:00 |
sharwell
|
2bbb1ca132
|
v4: Fix Parser.reset (side effect fixes Parser.setInputStream)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9491]
|
2011-11-29 20:25:51 -08:00 |
sharwell
|
1be2e2c556
|
v4: Initial tracing support in the lexer
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9490]
|
2011-11-29 20:13:06 -08:00 |
sharwell
|
fb3de170d1
|
v4: Add BaseRecognizer.isExpectedToken - *massive* performance improvement in DefaultErrorStrategy.sync()
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9489]
|
2011-11-29 19:43:33 -08:00 |
sharwell
|
07bbf42f8b
|
v4: Add <?> to generic instance
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9488]
|
2011-11-29 19:31:25 -08:00 |
sharwell
|
99cf07cc3c
|
v4: check for null
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9487]
|
2011-11-29 19:01:35 -08:00 |
sharwell
|
a71a9f04ea
|
v4: check for null before evaluating sempreds in the lexer (issue a warning if no recognizer is available for evaluation)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9486]
|
2011-11-29 18:59:32 -08:00 |
sharwell
|
c25f3ff3d8
|
Add type parameter to BailErrorStrategy since the class may safely be used with any type of recognizer
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9485]
|
2011-11-29 17:50:03 -08:00 |
parrt
|
2243cc2e81
|
wasn't seeing thru some preds.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9484]
|
2011-11-29 17:31:18 -08:00 |
parrt
|
0bf1aca47f
|
cleaned up a bit so that TestToolSyntaxErrors works. added some cast checks and some bailout upon error before semantic processing
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9483]
|
2011-11-29 15:59:23 -08:00 |