Commit Graph

696 Commits

Author SHA1 Message Date
parrt a017bb8feb NOT eval was messed up; handles java lexer now (slowly)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6905]
2010-06-08 16:34:07 -08:00
parrt 98bddc4446 got unicode and escape sequences into literals for bytecodes
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6904]
2010-06-08 11:49:31 -08:00
parrt b9a5cf8691 range16 was hosed; got java lexer working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6903]
2010-06-05 16:15:20 -08:00
parrt de380d2fd1 got DFA interp working from parser grammar + unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6902]
2010-05-28 12:17:17 -08:00
parrt 231758b0de tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6901]
2010-05-27 16:05:09 -08:00
parrt 19aecd3163 added NOT/SET ops, refactored PDA generation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6900]
2010-05-27 16:01:55 -08:00
parrt acf962bc28 initial DFA -> PDA compilation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6899]
2010-05-26 17:34:28 -08:00
parrt b1c3e8d0d7 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6898]
2010-05-26 13:26:46 -08:00
parrt c9ae2330e0 wildcard alts make surrounding block nongreedy
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6897]
2010-05-26 13:25:39 -08:00
parrt b4fb29b30d refactored to inline ctors
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6895]
2010-05-26 12:37:39 -08:00
parrt ca8ea6feea hacking with Oliver Z. Lots of fixes to code gen and sync/error handling/mode stuff.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6894]
2010-05-25 15:54:31 -08:00
parrt 38ef035c06 fixed actions in lexer
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6893]
2010-05-25 10:12:38 -08:00
parrt f32056f978 oops; adaptor created wrong dup nodes
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6892]
2010-05-24 15:48:55 -08:00
parrt 259ec8f693 clean up
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6889]
2010-05-23 16:56:33 -08:00
parrt 8ee1042f03 added start rule; fixed error recovery set stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6887]
2010-05-23 16:41:44 -08:00
parrt 865437647d rule invoke follow was off
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6886]
2010-05-23 10:12:55 -08:00
parrt f69f3f2c09 refactored
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6885]
2010-05-23 09:05:05 -08:00
parrt e1577a8071 reworked look comp for loops
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6884]
2010-05-22 13:16:21 -08:00
parrt eaaa98bde9 got sync in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6883]
2010-05-22 12:23:36 -08:00
parrt 03d9f0ba32 Got rid of the fields listed in the output model object hierarchy; created the exception throwing templates
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6882]
2010-05-22 10:27:11 -08:00
parrt 33c8efe7e5 finished dyn scope trans. unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6880]
2010-05-21 13:45:12 -08:00
parrt be72c49e53 got dyn scope code gen partially going
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6879]
2010-05-20 15:28:34 -08:00
parrt 89b05e0954 got start on action trans testing
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6878]
2010-05-20 13:00:09 -08:00
parrt 05ef22d9e7 got basic attr action stuff in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6877]
2010-05-20 11:46:22 -08:00
parrt 1b0186329c snapshot
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6876]
2010-05-19 16:42:08 -08:00
parrt 3324f181f4 good start on action translation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6875]
2010-05-18 17:01:48 -08:00
parrt b315dd4ae4 reorg snapshot; separate LexerSharedState; pass ctx as arg to funcctions
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6874]
2010-05-18 14:10:31 -08:00
parrt e1ccf08680 Implemented token vocab option
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6873]
2010-05-17 15:10:53 -08:00
parrt 118d225066 got actions into lexer; reorg'd
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6872]
2010-05-17 13:28:04 -08:00
parrt f5cc4efc1b got basic lexers generated
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6871]
2010-05-16 15:00:56 -08:00
parrt 563de77ec4 move exceptions over from v3 runtime. add bitset defs..
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6869]
2010-05-16 12:14:05 -08:00
parrt dfffbe7ef3 improved funcs; args back in; push/pop to func def.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6868]
2010-05-14 15:07:50 -08:00
parrt 5a1607e884 merged args/retvals into one object
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6867]
2010-05-14 14:22:04 -08:00
parrt 161dd26006 got rule scope going
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6866]
2010-05-13 18:10:13 -08:00
parrt 82b93e717d got lookahead _la decl done
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6864]
2010-05-13 11:59:04 -08:00
parrt d1b8c3229d reorg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6863]
2010-05-12 16:50:23 -08:00
parrt adc231ddae reorg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6862]
2010-05-12 14:52:47 -08:00
parrt 01002decf7 reorg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6860]
2010-05-10 16:02:52 -08:00
parrt 4cd721efa9 add method
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6859]
2010-05-10 16:01:24 -08:00
parrt e218632b67 got LL(1) plus loops in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6858]
2010-05-10 15:50:48 -08:00
parrt 930b1e1236 got LL(1) star loops in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6857]
2010-05-10 13:26:54 -08:00
parrt 2384c42698 tweaked LA(1) var
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6854]
2010-05-10 10:59:30 -08:00
parrt 883a00a4b0 got simple LL1 (..) and (..)? in; added Decl concept
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6851]
2010-05-09 16:15:08 -08:00
parrt 3e1f43117e template names = class names; reorg'd char stuff; got bitsets defined.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6850]
2010-05-09 12:11:50 -08:00
parrt cab4d7d197 added comments
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6849]
2010-05-08 15:36:31 -08:00
parrt d822cb8b23 removed alt as unnecessary arg to LOOK in linear approximator; added FOLLOW computation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6848]
2010-05-08 15:35:03 -08:00
parrt 3b7b45787a forget lexers
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6847]
2010-05-08 15:00:55 -08:00
parrt 8fa7179c6d track AST nodes -> NFA now and add more code gen
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6846]
2010-05-08 14:58:22 -08:00
parrt 5baff5d37e snapshot
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6845]
2010-05-07 13:12:28 -08:00
parrt 07625981fb got good start on code generator
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6844]
2010-05-06 17:54:58 -08:00
parrt fbaeb50e5e track finally action separately now
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6843]
2010-05-06 11:55:49 -08:00
parrt 9913972caa adding initial src code generation output model objects
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6842]
2010-05-05 15:52:29 -08:00
parrt c310c3b3a1 optimization: don't add intermediate closure addrs to closure; did same for parser DFA construction as i did for NFA VM.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6841]
2010-05-05 12:22:21 -08:00
parrt 27d9f25ec2 simplified label computation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6839]
2010-05-04 12:04:49 -08:00
parrt b0ca11f46b got sempreds in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6838]
2010-05-04 11:17:29 -08:00
parrt e6d65be27b rewinds now and does with feeling for actions in rules
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6837]
2010-05-03 17:02:47 -08:00
parrt cf7a730b31 reworked how i assign label indexes
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6836]
2010-05-03 16:14:20 -08:00
parrt 689687f0ed reorg so instrs in separate package. added label/save; added code gen at least for actions/sempred.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6834]
2010-05-02 17:11:30 -08:00
parrt 61603d18a9 more tests, fixes ANTLR-189. recursion works; rewinds properly.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6833]
2010-05-01 13:48:25 -08:00
parrt 16ad680adb recursive calls work
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6832]
2010-05-01 13:23:08 -08:00
parrt f6f444db52 got QID calling ID working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6831]
2010-05-01 13:10:49 -08:00
parrt f3e6d4644d got INT calls DIGIT working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6830]
2010-05-01 12:46:47 -08:00
parrt 9dbc6a43fd added exec version that handles stack and new ThreadState / context. unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6829]
2010-05-01 11:38:18 -08:00
parrt 541350bbe3 handles nongreedy + and * loops. rewinds properly to last good accept if we kept going and failed.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6828]
2010-04-30 17:37:07 -08:00
parrt 6b55114dd0 got it to kill all addrs within a rule once we hit its accept state; needed for nongreedy loops.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6827]
2010-04-30 16:54:38 -08:00
parrt 7cf42fe4dd reorg a bit
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6825]
2010-04-30 13:54:10 -08:00
parrt a576c16905 got thompson's working it seems
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6823]
2010-04-29 17:33:29 -08:00
parrt 0516292911 got basic NFA code gen and interp working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6822]
2010-04-29 11:37:11 -08:00
parrt 4093bb326e add todo
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6821]
2010-04-22 13:08:47 -08:00
parrt 3015778202 added in NFA VM prototype
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6820]
2010-04-22 13:07:16 -08:00
parrt 41c0225adf fix how decision numbers set in lexer nfas
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6819]
2010-04-20 16:13:38 -08:00
parrt 55899d032c got modes sort of working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6818]
2010-04-20 15:29:43 -08:00
parrt 91f92d9b6c added test for modes in non lexers
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6817]
2010-04-19 15:30:01 -08:00
parrt 849060e55a added "mode ID;" to the grammar.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6816]
2010-04-19 15:18:13 -08:00
parrt 529933b0ba reworked ErrorManager to be instance, tool makes one. errors go to tool.errMgr and back to tool for emitting out listener list. fixed unit tests to go with it.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6814]
2010-04-12 12:00:22 -08:00
parrt c29f0e1d7c figured out unit test issues; sem pipeline bailed out too early and also setting errorlistener didn't reset error count
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6813]
2010-04-11 11:26:32 -08:00
parrt 2faaf7bc7f added cached hashcode check to equals
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6812]
2010-04-11 10:55:47 -08:00
parrt 2646c177b1 comment out template tests,
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6811]
2010-04-11 10:55:26 -08:00
parrt c2fd73647a added empty/non-empty test into nfa context ambig check; was missing. added comments
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6810]
2010-04-11 10:47:08 -08:00
parrt 37b7f46d40 more tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6809]
2010-04-10 17:40:36 -08:00
parrt f6eaa737a4 more tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6808]
2010-04-10 16:50:12 -08:00
parrt 47a3f66fea added more DFA unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6807]
2010-04-10 16:19:10 -08:00
parrt dcadda638e got some unit tests in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6787]
2010-04-04 15:45:24 -08:00
parrt c2f24b5f8a sorted DFA output, added approx tests, got unit tests working again; notSet messed up. impl set transitions.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6786]
2010-04-02 13:32:47 -08:00
parrt d67e0d6a56 removed unused recursion errors
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6785]
2010-04-01 15:50:59 -08:00
parrt ddc285a6c1 update comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6784]
2010-03-31 17:13:25 -08:00
parrt 856c532174 update comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6783]
2010-03-31 17:07:49 -08:00
parrt 067b6b60f6 don't pass configs down through closures
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6782]
2010-03-31 17:06:35 -08:00
parrt a6f0d43a36 Reorganized to pass a proposed NFA configuration to closure instead of all those parameters.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6781]
2010-03-31 15:49:19 -08:00
parrt e9fd3d8b8c got new alg working :) added recursed bit to context.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6780]
2010-03-27 12:24:58 -08:00
parrt 2a9fb1bba6 clean up
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6779]
2010-03-27 11:00:16 -08:00
parrt 63342b1b1e snapshot
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6778]
2010-03-27 10:59:24 -08:00
parrt 09974258fb move out of way but keep
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6777]
2010-03-27 10:54:05 -08:00
parrt 2f5eb69cdd handles recursive lexer rules now
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6776]
2010-03-26 16:12:01 -08:00
parrt 5d57017098 added context and started using NFAConfig for lexer DFA
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6775]
2010-03-26 15:48:04 -08:00
parrt cb7445cf36 got basic lexer DFAs in (I think i need to use NFAConfigs though)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6774]
2010-03-26 15:29:47 -08:00
parrt f7445e961b tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6773]
2010-03-25 16:52:08 -08:00
parrt e52880931f rm some output
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6772]
2010-03-25 16:25:19 -08:00
parrt d24af6fd8a rm misleading comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6771]
2010-03-25 16:19:44 -08:00
parrt d94c4744ec added lin approx lookahead
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6770]
2010-03-25 16:19:19 -08:00
parrt 8650c29627 reorged a bit; improved msg about recur ovf.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6768]
2010-03-23 12:07:29 -08:00
parrt a87f6e7666 got more messages for recursion in there.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6767]
2010-03-22 17:29:49 -08:00
parrt ad036f9ab1 wasn't killing all states
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6766]
2010-03-22 17:15:42 -08:00
parrt f871e2dbf7 only gen if >0
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6764]
2010-03-22 14:41:27 -08:00
parrt 2e85e0d3a7 got left recur msg in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6763]
2010-03-22 12:35:33 -08:00
parrt 3e81cbc786 got hidden pred message working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6762]
2010-03-22 12:24:13 -08:00
parrt c175549e43 got insuff pred warning in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6761]
2010-03-20 16:21:37 -08:00
parrt 2aa34fc41e got line num etc... into ambig, unreachable warnings
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6760]
2010-03-19 17:00:06 -08:00
parrt d72dbb7af4 wow. added dfa minimization
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6755]
2010-03-16 17:16:07 -08:00
parrt c967b39f44 after experimenting with m, r
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6754]
2010-03-15 15:23:39 -08:00
parrt e70287954a got sample input sequence and grammar mapping working for ambig paths
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6753]
2010-03-15 11:55:56 -08:00
parrt 773832bd4b fixed up ambig/dangling stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6752]
2010-03-13 17:25:42 -08:00
parrt f242c09d46 made DOTGen nonrecursive; add DFA verification stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6749]
2010-03-13 13:04:18 -08:00
parrt bf9c0dd5a2 got sem pred analysis in for stack limited NFA conversion
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6748]
2010-03-11 17:44:12 -08:00
parrt 18a69d4550 got full analysis in minus sem preds
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6747]
2010-03-09 15:46:56 -08:00
parrt d7cf809489 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6746]
2010-03-09 11:41:28 -08:00
parrt 42a1489a48 got draft of DFA conversion working; gen's DOT files for DFAs. Works for recursive prediction example
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6743]
2010-03-08 18:22:21 -08:00
parrt 665b64fee0 have pieces of DFA conversion working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6742]
2010-03-07 16:16:10 -08:00
parrt 6ad8ff2a46 moved lots of crap from v3 for DFA display
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6741]
2010-03-07 14:18:03 -08:00
parrt 61fbb6571d fixed left-recur check, adding dfa stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6740]
2010-03-07 12:12:08 -08:00
parrt 309cb6d623 add missing
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6739]
2010-03-07 11:21:56 -08:00
parrt 4125ed8fb4 got left-recursion core in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6738]
2010-03-06 17:50:19 -08:00
parrt 572aeb0071 got more NFA constr. tests in; added range
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6737]
2010-03-06 14:39:54 -08:00
parrt 6832a3c89c added +, rule ref, etc...
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6736]
2010-03-04 18:31:07 -08:00
parrt d7bda19fd1 more work on NFA
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6735]
2010-03-04 15:56:47 -08:00
parrt bf08801022 got more NFA created
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6732]
2010-02-26 19:13:08 -08:00
parrt 29175a418c working on NFA factory
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6730]
2010-02-25 19:00:33 -08:00
parrt 0795563bab separate lexer/parser nfa factory
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6729]
2010-02-25 17:51:33 -08:00
parrt 33a8d69814 adding nfa building infrastructur
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6728]
2010-02-25 12:22:21 -08:00
parrt d5801b91d7 add fields and NFA/DFA
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6727]
2010-02-24 13:41:22 -08:00
parrt 6571ca437a add specialized NFA states
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6726]
2010-02-24 13:11:30 -08:00
parrt cbb8a6917a reorg, de-emphasis label fields
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6725]
2010-02-24 11:51:32 -08:00
parrt 80ea7cf0db reorg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6724]
2010-02-24 11:10:13 -08:00
parrt d2b5f95016 adding state stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6723]
2010-02-24 11:04:24 -08:00
parrt 66ec9fa9fd added comments and we are now ready to build NFA, hooray!
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6722]
2010-02-23 12:09:08 -08:00
parrt 4fb0e7db70 stop processing if syn err.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6721]
2010-02-23 11:53:59 -08:00
parrt 3872f92017 fix unit tests; all pass
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6720]
2010-02-23 11:36:12 -08:00
parrt 2e6aee85af fixed unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6719]
2010-02-23 11:29:52 -08:00
parrt 49d7d03238 fixed up import symbols and tokens{} section in imports
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6718]
2010-02-23 11:20:37 -08:00
parrt 0e38fd9c47 detect missing ';' on rule
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6709]
2010-02-20 17:28:43 -08:00
parrt 483c5881a1 got imported rule thing worked out
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6705]
2010-02-17 12:31:06 -08:00
parrt 1a5dfde6b5 handle invalid template syntax %x.y = 3
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6701]
2010-02-16 17:55:48 -08:00
parrt c08812ea54 cleaned up, added $ids check for list labels
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6700]
2010-02-16 17:03:55 -08:00
parrt 340af98839 cleaned up resolving. resolver interface is only 3 methods now
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6699]
2010-02-16 14:25:02 -08:00
parrt 6ec90d61d9 refactored resolving; clean up in next push
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6698]
2010-02-16 13:25:02 -08:00
parrt 9c8e4380fc got more tests in; about to refactor resolving.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6697]
2010-02-16 10:32:51 -08:00
parrt 29c602c202 got dynamic scope checking in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6696]
2010-02-15 16:38:59 -08:00
parrt 846e25d9cb rewrote resolver to return attr and scopes
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6695]
2010-02-15 14:25:02 -08:00
parrt d23c9cb527 snapshot
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6694]
2010-02-15 13:28:11 -08:00
parrt e38535a9bc got attribute checks done
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6693]
2010-02-15 12:55:04 -08:00
parrt 68719b8df7 got test harness going
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6691]
2010-02-12 17:46:33 -08:00
parrt b108a7cf2a got actions/scopes into grammar
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6690]
2010-02-12 17:19:47 -08:00
parrt 66f179823d rename
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6689]
2010-02-12 16:13:04 -08:00
parrt 172851245e refactoring resolving; alts know about rules and those know about grammars.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6688]
2010-02-12 15:41:56 -08:00
parrt b3f7c8e3cc got more symbol resolution in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6687]
2010-02-11 13:57:38 -08:00
parrt e825a77466 made listener for action splitter
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6686]
2010-02-11 11:17:29 -08:00
parrt b51019140c got basic semantic checker for attributes written
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6685]
2010-02-10 17:21:13 -08:00
parrt f94ef660f4 add action splitter
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6684]
2010-02-10 16:01:20 -08:00
parrt edde1ae80d REWRITE_OR_OP_WITH_NO_OUTPUT_OPTION
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6683]
2010-02-10 12:05:33 -08:00
parrt cf04cf14a0 fix error nums
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6682]
2010-02-10 11:44:54 -08:00
parrt 25be3b0172 handled scope/arg errors; added tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6681]
2010-02-10 11:40:22 -08:00
parrt 56a0940360 added unit tests for scope parser
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6680]
2010-02-10 10:42:57 -08:00
parrt 6f2a5f3c57 got initial scope parser copied from v3
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6679]
2010-02-09 18:21:56 -08:00
parrt 1cea245655 did REWRITE_ELEMENT_NOT_PRESENT_ON_LHS
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6678]
2010-02-08 18:00:37 -08:00
parrt 974c9556fd start tracking tokens after -> in rewrite; added test
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6677]
2010-02-07 16:56:15 -08:00
parrt 795df39aaa finished LABEL_TYPE_CONFLICT
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6676]
2010-02-07 15:22:46 -08:00
parrt 8d0d3e1c94 add tests for symbols; check LABEL_CONFLICTS_WITH_RULE, LABEL_CONFLICTS_WITH_TOKEN, SYMBOL_CONFLICTS_WITH_GLOBAL_SCOPE (label v scope, token v scope, rule v scope)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6675]
2010-02-07 14:09:22 -08:00
parrt ad5bf33eb4 finished SCOPE_REDEFINITION (new), TOKEN_ALIAS_REASSIGNMENT
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6674]
2010-02-07 12:44:49 -08:00
parrt 2cf2898a04 added rule arg checks and undefined rule
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6671]
2010-02-06 16:40:12 -08:00
parrt 1ba8487726 added rule and action redef; options copied to lexer now too.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6670]
2010-02-06 16:29:05 -08:00
parrt 09eb3b5753 split AST for combined grammar into two, copying to lexer grammar.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6669]
2010-02-06 14:58:26 -08:00
parrt 6d4a521ec0 forgot to add
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6668]
2010-02-05 14:21:25 -08:00
parrt 6f7e52ec9e got some symbols collected; renamed.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6667]
2010-02-05 14:21:02 -08:00
parrt ffd60dc26b add def sym; fix errors so they ignore right of ->
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6666]
2010-02-04 18:01:47 -08:00
parrt 9b0d27b1b7 more unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6660]
2010-02-03 16:30:37 -08:00
parrt 81bcfe56dc got basic test harness for grammar errors
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6659]
2010-02-03 16:25:19 -08:00
parrt 6829fc9e47 check for tokenVocab in import done
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6658]
2010-02-03 13:09:12 -08:00
parrt b50c813cc5 got invalid import error done
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6657]
2010-02-03 12:54:49 -08:00
parrt f3fb19b921 got wildcard as root error detected; tweaked how we call DOT/WILDCARD
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6656]
2010-02-03 11:10:34 -08:00
parrt b004c36bce got tree filter mode option check in. reorg'd GRAMMAR node in tree.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6655]
2010-02-02 18:27:30 -08:00
parrt f7807ade10 got more ast op checks in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6654]
2010-02-02 17:45:40 -08:00
parrt 0ca7573e8b update comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6653]
2010-02-02 14:43:34 -08:00
parrt bfa9e934f1 checking for REWRITE_FOR_MULTI_ELEMENT_ALT
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6652]
2010-02-02 14:42:54 -08:00
parrt 8991dfeafc check count of rules and prequels.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6651]
2010-02-01 18:52:25 -08:00
parrt c7b6dff683 increased specificity of tree node types. Got options stored into AST properly. Added <...> token options for hetero trees. Using ID to allow more syntax in some cases instead of TOKEN_REF.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6650]
2010-02-01 17:41:32 -08:00
parrt 004f15bfb1 checking for illegal tokens everywhere
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6649]
2010-02-01 14:31:14 -08:00
parrt 9b47afdf8f checking for illegal args on token ref
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6647]
2010-01-31 18:00:34 -08:00
parrt d81ae7478d refactored. checking for illegal token ref
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6646]
2010-01-31 17:02:41 -08:00
parrt e248e8dbe0 started new structure for semantics; XXXTriggers and XXXChecks
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6643]
2010-01-31 14:27:35 -08:00
parrt b49707ce4a errors show file/line now; got a few semantic checks in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6642]
2010-01-31 14:05:07 -08:00
parrt 08d8a0db23 got error handling with v4 ST working; no error loops etc...
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6641]
2010-01-31 13:08:09 -08:00
parrt c9d6efc7c5 move to v4
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6634]
2010-01-30 15:49:58 -08:00
parrt f04dab7b83 got error message stuff in better shape. started semantics pipeline
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6631]
2010-01-30 14:30:02 -08:00
parrt 493177c04e add new stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6624]
2010-01-27 18:12:44 -08:00
parrt f49b99ec3e keep in repo so people can build
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6622]
2010-01-27 17:27:35 -08:00
parrt 7f63527ce1 adding initial antlr v4 files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6621]
2010-01-27 17:20:51 -08:00