mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
clean up parser_test.v
This commit is contained in:
@@ -48,6 +48,15 @@ fn (g mut Gen) expr(node ast.Expr) Type {
|
||||
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 ')
|
||||
}
|
||||
ast.StringLiteral {
|
||||
g.write('"$it.val"')
|
||||
return string_type
|
||||
|
Reference in New Issue
Block a user