Start single-quote literal parser work

This commit is contained in:
Eric Correia 2021-08-15 11:08:05 -04:00
parent b25862a93b
commit dc2016dc0d
5 changed files with 141 additions and 0 deletions

View file

@ -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>]),