From ad506ec1d0f465f55e66a220cb7a04164a348212 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 29 Oct 2021 20:13:30 -0400 Subject: [AST] Def checking Add some placeholder code --- src/tparse/tree-statement.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tparse/tree-statement.go') diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go index bb8bde2..9a4a515 100644 --- a/src/tparse/tree-statement.go +++ b/src/tparse/tree-statement.go @@ -108,9 +108,9 @@ func parseStatement(tokens *[]Token, tok, max int) (Node, int) { out.Sub = append(out.Sub, tmp) } else { // do check for definition - if false { + if isTypeThenValue { // if not, parse a value - tmp, tok = parseDefinition(tokens, tok, max) + tmp, tok = parseDef(tokens, tok, max) } else { // if not, parse a value tmp, tok = parseValue(tokens, tok, max) -- cgit v1.2.3