Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/lib.rs')
-rw-r--r--crates/parser/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs
index ebb060a563..6aeed8a288 100644
--- a/crates/parser/src/lib.rs
+++ b/crates/parser/src/lib.rs
@@ -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);