mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Start single-quote literal parser work
This commit is contained in:
parent
b25862a93b
commit
dc2016dc0d
5 changed files with 141 additions and 0 deletions
|
@ -91,6 +91,8 @@ pub enum Expr<'a> {
|
|||
Access(&'a Expr<'a>, &'a str),
|
||||
/// e.g. `.foo`
|
||||
AccessorFunction(&'a str),
|
||||
/// eg 'b'
|
||||
SingleQuote(char),
|
||||
|
||||
// Collection Literals
|
||||
List {
|
||||
|
@ -358,6 +360,7 @@ pub enum Pattern<'a> {
|
|||
FloatLiteral(&'a str),
|
||||
StrLiteral(StrLiteral<'a>),
|
||||
Underscore(&'a str),
|
||||
SingleQuote(char),
|
||||
|
||||
// Space
|
||||
SpaceBefore(&'a Pattern<'a>, &'a [CommentOrNewline<'a>]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue