feat: runtime block value

This commit is contained in:
Dan Chen
2024-03-21 17:55:02 +08:00
parent 0c34fd260f
commit 1a3e6537a4
4 changed files with 45 additions and 15 deletions

View File

@ -39,6 +39,15 @@ specs = (
# Assignment:
(re.compile(r"^="), "SIMPLE_ASSIGN"),
# Logical operators:
(re.compile(r"^&&"), "AND"),
(re.compile(r"^\|\|"), "OR"),
(re.compile(r"^!"), "NOT"),
# Math operators: +, -, *, /:
(re.compile(r"^[+-]"), "ADDITIVE_OPERATOR"),
(re.compile(r"^[*/]"), "MULTIPLICATIVE_OPERATOR"),
# Double-quoted strings
(re.compile(r"^\"[^\"]*\""), "STRING"),