call trees

This commit is contained in:
2024-08-20 01:22:50 +02:00
parent 6822faaaad
commit e99549fd97
12 changed files with 914 additions and 214 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func ConvertAST(node antlr.Tree, wparser *parser.WystParser, lexer *parser.WystL
}
for i := 0; i < node.GetChildCount(); i++ {
l := ConvertAST(node.GetChild(i), wparser, lexer)
if l.Rule != ("'"+l.Text+"'") || l.Text == ";" {
if l.Rule != ("'"+l.Text+"'") || l.Text == ";" || l.Text == "," {
ast.Inner = append(ast.Inner, l)
}
}