move expr
This commit is contained in:
@@ -69,6 +69,9 @@ pub(crate) mod entry {
|
||||
pub(crate) fn ty(p: &mut Parser) {
|
||||
types::type_(p);
|
||||
}
|
||||
pub(crate) fn expr(p: &mut Parser) {
|
||||
let _ = expressions::expr(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ pub enum PrefixEntryPoint {
|
||||
Stmt,
|
||||
Pat,
|
||||
Ty,
|
||||
Expr,
|
||||
}
|
||||
|
||||
impl PrefixEntryPoint {
|
||||
@@ -67,6 +68,7 @@ impl PrefixEntryPoint {
|
||||
PrefixEntryPoint::Stmt => grammar::entry::prefix::stmt,
|
||||
PrefixEntryPoint::Pat => grammar::entry::prefix::pat,
|
||||
PrefixEntryPoint::Ty => grammar::entry::prefix::ty,
|
||||
PrefixEntryPoint::Expr => grammar::entry::prefix::expr,
|
||||
};
|
||||
let mut p = parser::Parser::new(input);
|
||||
entry_point(&mut p);
|
||||
|
||||
Reference in New Issue
Block a user