Skip to content

Commit

Permalink
wip: do expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmasoldi3r committed Oct 31, 2023
1 parent 5ada60e commit ca411f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ peg::parser! {
/ vector_expression()
/ tuple_expression()
/ lambda_expression()
// / do_expression()
/ enclosed_expression()

rule call_arguments() -> Vec<Expression>
Expand Down Expand Up @@ -195,6 +196,7 @@ peg::parser! {
rule string_expression() -> Expression = e:string_literal() { Expression::String(e) }
rule number_expression() -> Expression = e:number_literal() { Expression::Number(e) }
rule lambda_expression() -> Expression = e:lambda_literal() { Expression::Lambda(Box::new(e)) }
// rule do_expression() -> Expression = e:do_literal() { Expression::Do(Box::new(e)) }
rule vector_expression() -> Expression = e:vector_literal() { Expression::Vector(e) }
rule table_expression() -> Expression = e:table_literal() { Expression::Table(e) }
rule tuple_expression() -> Expression = e:tuple_literal() { Expression::Tuple(e) }
Expand Down

0 comments on commit ca411f1

Please sign in to comment.