1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

remove ScalarExpr

This commit is contained in:
Alexander Medvednikov
2019-12-26 13:21:41 +03:00
parent 9b37fc7310
commit 6363118aa9
4 changed files with 24 additions and 26 deletions

View File

@@ -44,15 +44,10 @@ const (
fn (g mut Gen) expr(node ast.Expr) Type {
//println('cgen expr()')
match node {
ast.IntegerExpr {
ast.IntegerLiteral {
g.write(it.val.str())
return int_type
}
ast.ScalarExpr {
g.expr(it.left)
g.write(' $it.val ')
}
ast.UnaryExpr {
g.expr(it.left)
g.write(' $it.op ')