Skip to content

Commit

Permalink
epicly remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxal committed Aug 13, 2021
1 parent 5bab464 commit 1c0f2c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vyxal/parse.py
Expand Up @@ -197,7 +197,6 @@ def parse(tokens: list[lexer.Token]) -> list[structure.Structure]:
branches[0] = variable_name(branches[0])
branches[-1] = parse(branches[-1])
elif structure_name == structure.FunctionCall:
print(branches[0])
branches[0] = process_parameters(branches[0])
if len(branches) > 1:
branches[-1] = parse(branches[-1])
Expand All @@ -208,7 +207,7 @@ def parse(tokens: list[lexer.Token]) -> list[structure.Structure]:
# that is, there is only a body - no arity
branches.insert(0, "1")
else:
branches[0] = branches[0].value
branches[0] = branches[0][0].value
branches[1] = parse(branches[1])
elif structure_name == structure.LambdaMap:
branches.insert(0, "1")
Expand Down Expand Up @@ -297,7 +296,3 @@ def parse(tokens: list[lexer.Token]) -> list[structure.Structure]:
structures.append(structure.GenericStatement([head]))

return structures


print(parse(lexer.tokenise("@abc;")))
print(parse(lexer.tokenise("@abc:1|1 1+;")))

0 comments on commit 1c0f2c1

Please sign in to comment.