Sam Harwell
|
c9890e8305
|
Throw IllegalStateException if the user tries to consume EOF
|
2012-11-03 15:47:22 -05:00 |
Terence Parr
|
a9d4aeab71
|
no ? extends on rule ctx getters.
|
2012-11-03 08:57:49 -07:00 |
Sam Harwell
|
a828b99b59
|
Pass -Xlint -Xlint:-serial to javac (Maven build of runtime)
|
2012-11-01 18:11:35 -05:00 |
Sam Harwell
|
d220f90d3b
|
Remove generics from all runtime code which did not use them to provide type safety
|
2012-11-01 18:07:12 -05:00 |
Sam Harwell
|
3470978749
|
Updated naming conventions since RuleContext stores invoking states but PredictionContext stores return states
|
2012-11-01 13:47:44 -05:00 |
Sam Harwell
|
c2722b127a
|
Store return states instead of invoking states in PredictionContext instances
|
2012-11-01 13:35:55 -05:00 |
Sam Harwell
|
7bbc6c18be
|
Remove unchecked casts
|
2012-11-01 08:58:00 -05:00 |
Sam Harwell
|
ca38320d43
|
Simplify ATNConfigSet.toArray
|
2012-11-01 08:49:14 -05:00 |
Sam Harwell
|
eca9090fce
|
Remove tracing support from LexerATNSimulator - in process of moving it to dynamic instrumentation to eliminate runtime overhead in production use
|
2012-11-01 05:35:01 -05:00 |
Sam Harwell
|
d748271816
|
Remove getSpeculativeText since getText works again
|
2012-10-31 21:52:50 -05:00 |
Sam Harwell
|
a4ba562210
|
LexerATNSimulator adjusts the input position during a speculative predicate evaluation to accurately reflect the state where the predicate appears in the grammar
|
2012-10-31 21:52:41 -05:00 |
Sam Harwell
|
efa9ea7811
|
Simplify LexerATNSimulator to reduce duplicate code (duplicate instruction executions and duplicated code blocks)
|
2012-10-30 09:24:03 -05:00 |
Sam Harwell
|
bad2751a2c
|
Add edge suppression for lexer start state - required for left edge predicates
|
2012-10-30 08:46:42 -05:00 |
Terence Parr
|
72c1fc8f6d
|
tweaks on comments
|
2012-10-29 12:47:09 -07:00 |
Sam Harwell
|
f554a2ed4f
|
Eliminate debug and dfa_debug overhead in LexerATNSimulator by making them compile-time constants
|
2012-10-29 13:32:02 -05:00 |
Sam Harwell
|
7bf50c8263
|
LexerATNSimulator uses explicit lower bound for DFAState.edges array
|
2012-10-29 13:32:02 -05:00 |
Sam Harwell
|
1269ce8d4e
|
Remove 2 field accesses per input character in LexerATNSimulator
|
2012-10-29 13:32:01 -05:00 |
Sam Harwell
|
0deadc688a
|
Remove unnecessary array indexing operation in execDFA
|
2012-10-29 13:32:00 -05:00 |
Sam Harwell
|
c34f0d6945
|
Remove duplicate array bounds check
|
2012-10-29 13:31:59 -05:00 |
Sam Harwell
|
afed3ac349
|
Remove unnecessary null checks
|
2012-10-29 13:31:58 -05:00 |
Sam Harwell
|
d17f919123
|
Updated NotNull annotations in LexerATNSimulator
|
2012-10-29 13:31:57 -05:00 |
Sam Harwell
|
5dace66921
|
DFAState.configs cannot be null
|
2012-10-29 13:31:57 -05:00 |
Sam Harwell
|
9873230f55
|
Correctness for lexer DFA with semantic predicate evaluation only requires suppressing single edges from the DFA
|
2012-10-29 13:31:56 -05:00 |
Terence Parr
|
a115490d5e
|
Merge branch 'warnings-as-errors' of git://github.com/sharwell/antlr4
|
2012-10-29 11:27:46 -07:00 |
Sam Harwell
|
ee64790739
|
In lexer, configs which never reached a non-greedy decision state are fully greedy (unordered alternatives, longest match)
|
2012-10-29 13:14:51 -05:00 |
Sam Harwell
|
871db85ecb
|
Add field DecisionState.nonGreedy, computed in tool and serialized as one bit in the state type field
|
2012-10-29 13:14:50 -05:00 |
Sam Harwell
|
4adef1e455
|
Output from -atn flag shows the order of outgoing edges from decision states.
|
2012-10-28 11:17:39 -05:00 |
Sam Harwell
|
950f588ac0
|
Fix implementations: TokenStream interface says getText method returns non-null
|
2012-10-28 10:04:34 -05:00 |
Terence Parr
|
d5341b55af
|
Merge branch 'encapsulation' of git://github.com/sharwell/antlr4
|
2012-10-24 12:59:46 -07:00 |
Terence Parr
|
b89445e861
|
Merge branch 'maven-update' of git://github.com/sharwell/antlr4
|
2012-10-24 12:58:52 -07:00 |
Terence Parr
|
cb0f5c0e51
|
Merge branch 'parsecancellationexception' of git://github.com/sharwell/antlr4
|
2012-10-24 12:58:26 -07:00 |
Terence Parr
|
31c9fc33f1
|
Merge branch 'ordered-configs' of git://github.com/sharwell/antlr4
|
2012-10-24 10:51:56 -07:00 |
Terence Parr
|
4f918f75bc
|
Merge branch 'get-reachable-target' of git://github.com/sharwell/antlr4
|
2012-10-24 10:41:46 -07:00 |
Sam Harwell
|
a80a6022ff
|
Update pom.xml
|
2012-10-22 12:19:24 -05:00 |
Sam Harwell
|
bb44db6397
|
Create a new ParseCancellationException for BailErrorStrategy. Derived from RuntimeException so existing handlers will still work.
|
2012-10-22 12:12:39 -05:00 |
Sam Harwell
|
36c63db299
|
Remove redundant casts, encapsulate fields in RecognitionException
|
2012-10-22 09:52:55 -05:00 |
Sam Harwell
|
4790ab76e1
|
Encapsulate fields in NoViableAltException and LexerNoViableAltException
|
2012-10-22 09:40:44 -05:00 |
Sam Harwell
|
1ae3c0104c
|
Simplify FailedPredicateException constructors, encapsulate fields
|
2012-10-22 09:18:29 -05:00 |
Sam Harwell
|
12b2c34946
|
Lexer uses strictly-ordered alternatives within a rule. Simplifies code, increases performance when non-terminal (lexer rules) depth is limited, and actually fixes non-greedy behavior
|
2012-10-21 22:04:38 -05:00 |
Terence Parr
|
ed7d4b1dc1
|
fail option on predicates work.
|
2012-10-20 15:57:06 -07:00 |
Terence Parr
|
ab6b341942
|
a few tweaks/comments.
|
2012-10-20 12:51:36 -07:00 |
Sam Harwell
|
52f1d3b6e5
|
Simplify getReachableTarget
|
2012-10-16 08:04:42 -05:00 |
Sam Harwell
|
1af9b4c338
|
Simplify and document non-greedy behavior in processAcceptConfigs
|
2012-10-16 08:01:46 -05:00 |
Sam Harwell
|
fb87e4c785
|
Another fix for non-greedy with closures
|
2012-10-16 07:53:23 -05:00 |
Sam Harwell
|
f9a63b8810
|
Fix bug in PredictionContext.arrayMerge
|
2012-10-15 14:57:06 -05:00 |
Sam Harwell
|
6fa853c14f
|
Fixes to LexerATNSimulator.closure, fixes to non-greedy positive closure
|
2012-10-15 02:01:07 -05:00 |
Sam Harwell
|
a40073a8cc
|
Merge remote-tracking branch 'antlr/master' into non-greedy
|
2012-10-15 01:58:15 -05:00 |
Sam Harwell
|
bbe77782db
|
Fix state checking in new non-greedy handling
|
2012-10-15 00:56:25 -05:00 |
Sam Harwell
|
aa2223cd6a
|
Fix assertion in PredictionContext.mergeArrays
|
2012-10-14 22:40:34 -05:00 |
Sam Harwell
|
7c221f13ed
|
Unify EMPTY_FULL_CTX_INVOKING_STATE and EMPTY_INVOKING_STATE (fixes an array indexing error during closure)
|
2012-10-14 22:25:11 -05:00 |