Niko Matsakis
Niko Matsakis
OK, you persuaded me. Let's just start with the annotation version. Can always change later if we want. The associativity problem is definitely real. I agree that `if` is weird,...
Hmm, the `Self` idea is interesting. @nixpulvis as for the if/else ambiguity, here is an example that I wrote up for @sfackler on how to handle this situation https://gist.github.com/nikomatsakis/5fa3bd8291841b853144. I've...
``` grammar; Num: i32 = "1" => 1; Plus: ExprType = { => ExprType::Num(), "+" => ExprType::Add ( Box::new(Expr { inner: lhs, span: (ll, lr) }), Box::new(Expr { inner: rhs,...
``` grammar; pub Expression2: () = { @L Expression2 Expression2Op Expression1 @R => (), Expression1 => (), }; Expression2Op: () = { @L "*" @R => (), }; Expression1: ()...
That's correct.
@alexcrichton > For example would the build script automatically update the executable? I imagined downloading to a directory that includes the version number in the name or something, but this...
There is a lot of prior art on this. A very typical thing also is to compress the tables in some way. > I think it is possible to generate...
@Marwes regarding shrinking the reduce function, it is indeed hard to see how we can do that much about it...
(Unless maybe your parser winds up with various "identity reduces" or other cases we can identify and try to consolidate.)
@brson > Not sure what I'm asking for, but I wish I wasn't as confused. I wish I didn't have to list all my tokens. D'oh. I hadn't noticed that...