diff options
Diffstat (limited to 'compilador/parse')
-rw-r--r-- | compilador/parse/expr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilador/parse/expr.py b/compilador/parse/expr.py index f6527bd..87e054f 100644 --- a/compilador/parse/expr.py +++ b/compilador/parse/expr.py @@ -153,7 +153,7 @@ class ParseExpr: def constant(self) -> (Expr | Error): tok: LexToken = self.parser.lex() expr: Optional[ConstantExpr] = None - if tok.tipo in [Token.STRING_LIT, Token.BOOLEAN_LIT]: + if tok.tipo in [Token.STRING_LIT, Token.BOOLEAN_LIT, Token.CHAR_LIT]: expr = Value(value = tok.valor) elif tok.tipo == Token.INT_LIT: expr = NumberConstant(value = tok.valor) |