Skip to content

Commit 0725752

Browse files
neuroevolutusAbel Sen
and
Abel Sen
authored
Remove unneeded Juxt token (#208)
I started reading through the parsing code and noticed that this token was being unused. Let me know if you'd like me to make any further changes! --------- Co-authored-by: Abel Sen <[email protected]>
1 parent 89e38bf commit 0725752

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scrapscript.py

-7
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ class RightBracket(Token):
106106
pass
107107

108108

109-
@dataclass(eq=True)
110-
class Juxt(Token):
111-
# The space between other tokens that indicates function application.
112-
pass
113-
114-
115109
@dataclass(eq=True)
116110
class VariantToken(Token):
117111
value: str
@@ -517,7 +511,6 @@ def parse(tokens: typing.List[Token], p: float = 0) -> "Object":
517511
# TODO: revisit whether to use @ or . for field access
518512
l = Access(l, parse(tokens, pr))
519513
else:
520-
assert not isinstance(op, Juxt)
521514
assert isinstance(op, Operator)
522515
l = Binop(BinopKind.from_str(op.value), l, parse(tokens, pr))
523516
return l

0 commit comments

Comments
 (0)