Skip to content

Commit

Permalink
naming parser terms (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcb authored Aug 9, 2024
1 parent 4633030 commit 7589ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/splatter/stutter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ object Parser:
_ <- keyword(")")
} yield l

def quot: P[Lisp] =
def quote: P[Lisp] =
(keyword("'") | keyword("")) ~ expr.map(e => Lisp(Seq(QuoteLit.Op, e)))

def expr: P[Expr] =
for {
_ <- spaces
e <- (atom | list | quot)
e <- (atom | list | quote)
_ <- spaces
} yield e

Expand Down

0 comments on commit 7589ec6

Please sign in to comment.