mirror of
https://github.com/Ed94/LangStudies.git
synced 2025-06-15 19:41:47 -07:00
Lecture 6 complete.
This commit is contained in:
@ -127,9 +127,9 @@ const Spec : Dictionary = \
|
||||
TokenType.op_LNot : "^!",
|
||||
|
||||
# Arithmetic
|
||||
TokenType.op_CAssign : "^[\\*\\/+-]=",
|
||||
TokenType.op_CAssign : "^[\\*\\/+\\-]=",
|
||||
TokenType.op_Assign : "^=",
|
||||
TokenType.op_Additive : "^[+-]",
|
||||
TokenType.op_Additive : "^[+\\-]",
|
||||
TokenType.op_Multiplicative : "^[\\*\\/]",
|
||||
|
||||
# Literals
|
||||
@ -231,7 +231,7 @@ func compile_regex():
|
||||
regex = RegEx.new()
|
||||
|
||||
var original = Spec[type]
|
||||
var transpiled = SRegEx.transpile(SSpec[type])
|
||||
var transpiled = SRegEx.compile(SSpec[type])
|
||||
|
||||
assert(transpiled == original, "transpiled did not match original")
|
||||
|
||||
|
@ -1035,7 +1035,6 @@ func parse_StringLiteral():
|
||||
|
||||
return node
|
||||
|
||||
|
||||
# > Literal
|
||||
# BooleanLiteral
|
||||
# : true
|
||||
|
Reference in New Issue
Block a user