mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
remove steps from the normalization plan that no longer apply
This commit is contained in:
parent
f282b943ba
commit
8c111030b0
@ -36,7 +36,8 @@ macro_rules! return_err {
|
||||
// `(X Y Z)` = X Y Z;
|
||||
//
|
||||
// AFTER THIS POINT: No more macros, macro references, guarded
|
||||
// alternatives, or expr symbols, though type indirections may occur.
|
||||
// alternatives, repeats, or expr symbols, though type indirections
|
||||
// may occur.
|
||||
mod macro_expand;
|
||||
|
||||
// Computes types where the user omitted them (or from macro
|
||||
@ -52,40 +53,6 @@ mod tyinfer;
|
||||
// Symbol::Choose and Symbol::Name are removed.
|
||||
// mod action;
|
||||
|
||||
// Converts
|
||||
//
|
||||
// X = ...1 Y* ...2
|
||||
//
|
||||
// to
|
||||
//
|
||||
// X = ...1 ...2
|
||||
// | ...1 Y+ ...2
|
||||
//
|
||||
// AFTER THIS POINT: No more Symbol::Star remain.
|
||||
// mod remove_star;
|
||||
|
||||
// Converts X+ to a new terminal X_PLUS like:
|
||||
//
|
||||
// X_PLUS = {
|
||||
// <e:X> => { vec![x] }
|
||||
// <v:X_PLUS> <e:X> => { let mut v = v; v.push(e); v }
|
||||
// }
|
||||
//
|
||||
// AFTER THIS POINT: No more Symbol::Plus remain.
|
||||
// mod remove_plus;
|
||||
|
||||
// Converts
|
||||
//
|
||||
// X = ...1 Y? ...2
|
||||
//
|
||||
// to
|
||||
//
|
||||
// X = ...1 ...2
|
||||
// | ...1 Y ...2
|
||||
//
|
||||
// AFTER THIS POINT: No more Symbol::Question remain.
|
||||
// mod remove_question;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Shared routines
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user