mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
eval: enable v interpret examples/hanoi.v
This commit is contained in:
parent
d8a5df9044
commit
d35d67c2bd
@ -511,8 +511,13 @@ pub fn (mut e Eval) expr(expr ast.Expr, expecting ast.Type) Object {
|
||||
|
||||
return res
|
||||
}
|
||||
else {
|
||||
e.error('unhandled expression $expr.type_name()')
|
||||
ast.AnonFn, ast.ArrayDecompose, ast.AsCast, ast.Assoc, ast.AtExpr, ast.CTempVar,
|
||||
ast.ChanInit, ast.Comment, ast.ComptimeCall, ast.ComptimeSelector, ast.ComptimeType,
|
||||
ast.ConcatExpr, ast.DumpExpr, ast.EmptyExpr, ast.EnumVal, ast.GoExpr, ast.IfGuardExpr,
|
||||
ast.IndexExpr, ast.IsRefType, ast.Likely, ast.LockExpr, ast.MapInit, ast.MatchExpr,
|
||||
ast.NodeError, ast.None, ast.OffsetOf, ast.OrExpr, ast.RangeExpr, ast.SelectExpr,
|
||||
ast.SqlExpr, ast.TypeNode, ast.TypeOf, ast.UnsafeExpr {
|
||||
e.error('unhandled expression ${typeof(expr).name}')
|
||||
}
|
||||
}
|
||||
return empty
|
||||
|
Loading…
Reference in New Issue
Block a user