change syntax for javascript code literals

This commit is contained in:
2024-11-25 21:53:23 -08:00
parent 07cbeec6cc
commit e265248b11
21 changed files with 140 additions and 287 deletions

View File

@@ -13,6 +13,7 @@ data Kind
| Number
| Character
| StringKind
| JSLit
| Symbol
| Space
| Comment
@@ -40,6 +41,7 @@ Show Kind where
show EOI = "EOI"
show Pragma = "Pragma"
show StringKind = "String"
show JSLit = "JSLit"
export
Eq Kind where
Ident == Ident = True
@@ -54,6 +56,7 @@ Eq Kind where
Semi == Semi = True
RBrace == RBrace = True
StringKind == StringKind = True
JSLit == JSLit = True
_ == _ = False
export