parrt
|
de0881a88b
|
tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8776]
|
2011-06-27 16:20:03 -08:00 |
parrt
|
7e45a0c01d
|
tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8775]
|
2011-06-27 16:06:46 -08:00 |
parrt
|
05d7670985
|
woof. separated out interfaces etc... now codegen extensions work
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8768]
|
2011-06-27 13:38:50 -08:00 |
parrt
|
55ce044acf
|
reorg to get extensions
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8767]
|
2011-06-27 11:33:40 -08:00 |
parrt
|
506f8eec09
|
started reorg to have codegen extensions for customizing and doing stuff like output=AST
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8766]
|
2011-06-26 18:04:57 -08:00 |
parrt
|
46f68c8d63
|
moved decls into package. messed around with AddLeaf. must distinguish between implicit and regular labels. implicit are locals, manual labels go into ctx.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8765]
|
2011-06-26 13:20:02 -08:00 |
parrt
|
046b469f8e
|
got all locals into return struct. all vars are visible to invoked rules via $rule::attr now.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8757]
|
2011-06-23 17:29:51 -08:00 |
parrt
|
d8edb713ed
|
initial wack at args/return value object
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8743]
|
2011-06-22 18:04:29 -08:00 |
parrt
|
7f56ba47c3
|
separated setattr for lexers
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8740]
|
2011-06-22 17:12:13 -08:00 |
parrt
|
5f95cde48d
|
cleaned up action splitting
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8737]
|
2011-06-22 16:40:42 -08:00 |
parrt
|
c607e66f1a
|
added demo target X.stg
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8729]
|
2011-06-22 15:03:47 -08:00 |
parrt
|
4e3fd8446d
|
removed state stuff
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8726]
|
2011-06-22 14:45:28 -08:00 |
parrt
|
981aff4132
|
kill
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8694]
|
2011-06-21 12:03:24 -08:00 |
parrt
|
315944694f
|
mv file
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8688]
|
2011-06-20 17:54:54 -08:00 |
parrt
|
a2ed93e997
|
messing w/build
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8687]
|
2011-06-20 17:52:01 -08:00 |
parrt
|
a7bed42c35
|
setting up ant build
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8684]
|
2011-06-20 17:34:57 -08:00 |
parrt
|
1d6ce54816
|
tweak token consts.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8668]
|
2011-06-18 15:08:43 -08:00 |
parrt
|
da633613a7
|
all rule indexes are 0-based now; 0..n-1 not 1..n
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8667]
|
2011-06-18 15:06:49 -08:00 |
parrt
|
1530234c29
|
moved from ST group file of en.stg messages to inline in ErrorType; no one made a non-English version in 4 years so...
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8666]
|
2011-06-18 14:02:16 -08:00 |
parrt
|
a3b985fadf
|
added @ModelElement annotation. model walker now descends into these in order to fill template args.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8665]
|
2011-06-18 12:55:39 -08:00 |
parrt
|
bd5df8ed53
|
ok, working on java again...same functionality as antlr-rewrite dir. ready to move forward
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8664]
|
2011-06-18 11:10:03 -08:00 |
parrt
|
1a17eb3be1
|
get to compile
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8662]
|
2011-06-18 10:35:31 -08:00 |
parrt
|
bb02ed151e
|
adding new files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8661]
|
2011-06-17 16:44:51 -08:00 |
parrt
|
1a43396d3b
|
adding new files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8660]
|
2011-06-17 16:07:39 -08:00 |
parrt
|
061fff09f9
|
adding new files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8659]
|
2011-06-17 16:05:00 -08:00 |
parrt
|
2ddeb7c769
|
adding new files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8658]
|
2011-06-17 15:42:21 -08:00 |
parrt
|
72ee89294f
|
add
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8642]
|
2011-06-16 10:58:51 -08:00 |
parrt
|
a13068c7c2
|
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8640]
|
2011-06-15 18:36:21 -08:00 |
parrt
|
f6e54b3327
|
add more
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8637]
|
2011-06-14 16:29:02 -08:00 |
parrt
|
36fb229434
|
Rename/move file(s) from old antlr4 to antlr-rewrite; that's not antlr4 anymore
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7912]
|
2011-03-26 11:33:02 -08:00 |
parrt
|
360bd17f21
|
not sure
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7819]
|
2011-03-07 10:06:29 -08:00 |
parrt
|
0eccd0f3a7
|
not sure what i was doing; stopping dev
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7710]
|
2011-02-17 10:16:58 -08:00 |
parrt
|
0c254d7629
|
improve gunit in v4
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7388]
|
2011-01-02 14:50:08 -08:00 |
parrt
|
695c997f26
|
tweak comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7167]
|
2010-11-23 18:14:49 -08:00 |
parrt
|
03b147f129
|
make it compile
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 7066]
|
2010-11-20 17:23:38 -08:00 |
parrt
|
6414fa00c6
|
crap; was messing with lexers but anyway just added depth back to closure
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6915]
|
2010-07-07 13:38:13 -08:00 |
parrt
|
0e4fbf903d
|
put preds in DFA not just in print out
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6913]
|
2010-06-16 12:20:14 -08:00 |
parrt
|
3bf528498a
|
move tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6912]
|
2010-06-15 14:09:46 -08:00 |
parrt
|
4b71c478c1
|
huge update; preds in lexers
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6911]
|
2010-06-15 14:06:56 -08:00 |
parrt
|
024f03b8d7
|
got started on DFA to transition table generation
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6910]
|
2010-06-10 17:33:01 -08:00 |
parrt
|
c18898a917
|
PDA for lexers are too slow; working DFA back in. DFA construction was nondeterministic due to sets not ordered sets.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6909]
|
2010-06-10 15:24:09 -08:00 |
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 |