-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
Like this for example
plex::parser! {
fn parse_(Token, Span);
// combine two spans
(a, b) {
Span {
lo: a.lo,
hi: b.hi,
}
}
program: Program {
statements[s] => Program { stmts: s }
}
statements: Vec<Expr> {
=> vec![],
statements[mut st] outer[e] SemiColon => {
st.push(e);
st
}
}
outer: Expr {
#[priority]
Token SemiColon => ...,
inner[a] => a,
}
inner: Expr {
Token => ....,
}
}Metadata
Metadata
Assignees
Labels
No labels