Lecture 6 complete.

This commit is contained in:
2022-07-20 14:57:26 -04:00
parent f85c9615e4
commit de420a8111
8 changed files with 243 additions and 73 deletions

View File

@ -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")

View File

@ -1035,7 +1035,6 @@ func parse_StringLiteral():
return node
# > Literal
# BooleanLiteral
# : true