1
0
mirror of https://github.com/fluencelabs/lalrpop synced 2025-03-18 01:40:51 +00:00

86 Commits

Author SHA1 Message Date
Niko Matsakis
a9ec498c9e extend with some further tests where @R and @L are used in weird ways to
try and get assertion errors etc
2016-02-25 05:55:00 -05:00
Niko Matsakis
e79e2c4858 extend the loc_issue_90 test a bit more 2016-02-25 05:55:00 -05:00
Niko Matsakis
3d4d097373 stop carrying lookbehind around and just extract it from the top of the stack 2016-02-25 05:55:00 -05:00
Niko Matsakis
7e8602562e do not pass lookahead/lookbehind to actions if there are symbols 2016-02-25 05:54:59 -05:00
Niko Matsakis
7431af506d add a regression test for loc 2016-02-25 05:54:59 -05:00
Niko Matsakis
93a2a48219 enable inlining of $L and $R (and fix some bugs) 2016-02-25 05:54:59 -05:00
Niko Matsakis
cc37797eaa package up each nonterminal as a (L, T, L) pair 2016-02-25 05:54:56 -05:00
Niko Matsakis
df60aefc30 change lookahead to be passed unconditionally 2016-02-25 05:54:56 -05:00
Niko Matsakis
68c79f79f2 change lookbehind to stop passing around an option everywhere 2016-02-25 05:54:56 -05:00
Niko Matsakis
9fc995c5f2 just pass lookahead position, not entire triple 2016-02-25 05:54:52 -05:00
Niko Matsakis
f255a56035 Move over to use regex_syntax's parser 2016-02-21 20:43:11 -05:00
Niko Matsakis
a9e03641a2 Update .rs files for tests to not have comments 2016-02-19 04:26:49 -05:00
Niko Matsakis
728654dfa2 Switch license to MIT/Apache2 instead of Unlicense, in an effort to be
more uniform with the rest of the Rust ecosystem, and to evade the
various legal quandries associated with the concept of "public domain".
2016-01-24 04:52:05 -05:00
Niko Matsakis
01ae27afe8 Bump to version 0.10.0 (in progress). 2016-01-23 11:45:29 -05:00
Niko Matsakis
2a95803383 Bump version to 0.9.0 2016-01-23 11:39:03 -05:00
Niko Matsakis
9a121b78a0 Fix inlining so that different appearances of the same symbol can be
inlined in multiple ways.
2016-01-22 08:16:21 -05:00
Florian Hahn
bf6be4a166 Do not use (..) for empty enum variants, closes 2015-12-08 21:49:20 +01:00
Niko Matsakis
63c9c2efc9 patch up the macro expansion test case now that * and ? are inlined 2015-10-25 07:11:48 -04:00
Niko Matsakis
ddadce60fb refashion inlining so that it actually works, and also factor out action
code into its own file, rather than embedding strings all over the place
2015-10-25 07:11:48 -04:00
Niko Matsakis
7648a9214f simplify the grammar model so that all actions are just action fns; move
the lookahead/lookbehind action code into lower
2015-10-25 07:11:29 -04:00
Niko Matsakis
99e97cdff6 pass lookaround/lookbehind to action fns 2015-10-25 07:11:29 -04:00
Niko Matsakis
18502a0e57 bump version number to 0.8.0 2015-10-15 13:11:12 -04:00
Niko Matsakis
41048a6eac bump version number to 0.7.0 2015-10-15 12:31:47 -04:00
Niko Matsakis
ae027da57e Place the implicit 'input parameter at the START of the list,
so that generic type parameters work in conjunction with the implicit
tokenizer. Fixes .
2015-10-13 06:22:20 -04:00
Niko Matsakis
d23d71b1e1 update version number to 0.6.1 2015-09-15 06:25:38 -04:00
Niko Matsakis
011bf08c51 Walk the referenced parameters for a nominal type. Fixes . 2015-09-15 06:12:44 -04:00
Niko Matsakis
0e508a06c5 change to use btreemap, which should be deterministic, so that
we generate the same code given same input
2015-09-11 07:55:03 -04:00
Niko Matsakis
4353c41441 Publish 0.5.0 and bump version number to 0.6.0 2015-09-11 06:56:57 -04:00
Niko Matsakis
7b905b2b50 change syntax for multiple alterantives from {A;B;} to {A,B}, since
this matches Rust better

[release notes]
2015-09-08 11:12:45 -04:00
Niko Matsakis
734b2bc27c regenerated rs files 2015-09-08 10:01:51 -04:00
Niko Matsakis
e18dd45972 port the intern_tok to use regular expressions 2015-09-08 09:56:52 -04:00
Niko Matsakis
de5b61b085 final changes needed to make intern_tok.rs pass 2015-09-08 09:56:52 -04:00
Niko Matsakis
d8de800b1d if intern token is used, link it in rather than taking an iterator 2015-09-08 09:56:52 -04:00
Niko Matsakis
0ddf37576b fix some minor bugs, always run token check 2015-09-08 09:56:52 -04:00
Niko Matsakis
088510c9be convert to generate the start function *inside* the LR1
module and `pub use` it from outside
2015-09-08 09:56:51 -04:00
Niko Matsakis
098cfb1639 small optimization: move shifting code into the state, rather
than the transition
2015-08-16 07:51:47 -04:00
Niko Matsakis
8d4b234383 push version back to 0.5.0 2015-08-16 06:15:00 -04:00
Niko Matsakis
aa68677a42 minor fix to test 2015-08-16 06:06:51 -04:00
Niko Matsakis
51ac61a1f7 Bump version to 0.5.0 2015-08-15 22:28:11 -04:00
Niko Matsakis
7f3f6e106d update snapshot 2015-08-15 22:20:53 -04:00
Niko Matsakis
d3db4a2d1b simplify the syntax: s/extern token/extern/ 2015-08-15 22:15:48 -04:00
Niko Matsakis
fa2b84bb46 bump version number to 0.4.0 2015-08-15 22:06:17 -04:00
Niko Matsakis
b4b88cd059 publish version 0.3.0 2015-08-15 22:06:01 -04:00
Niko Matsakis
9e6885bf3c allow terminals to be declared without quotes, and use
this form in the various lalrpop-test grammars (don't
have unit tests for it at the moment)
2015-08-15 22:00:22 -04:00
Niko Matsakis
eb6aa5e176 condense reductions that share the same production to reduce
output file size
2015-08-11 06:38:40 -04:00
Niko Matsakis
e02aaef522 add support for LALR(1) 2015-08-01 23:30:13 -07:00
Niko Matsakis
0e46b4bbcd update version numbers; break intern into its own crate 2015-07-27 13:09:36 -04:00
Niko Matsakis
26b72c6f0e Update version number to 0.2 to reflect new in progress release 2015-07-27 05:36:33 -04:00
Niko Matsakis
d8a47a7345 update cargo.toml files, readme 2015-07-26 07:49:45 -04:00
Niko Matsakis
92d64f854b bootstrapping successfully now (but unit tests prob not working yet;
lalrpop-test works)
2015-07-24 07:58:06 -04:00