Skip to content

Commit

Permalink
Remove unneeded Juxt token (#208)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
neuroevolutus and Abel Sen authored Dec 24, 2024
1 parent 89e38bf commit 0725752
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scrapscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ class RightBracket(Token):
pass


@dataclass(eq=True)
class Juxt(Token):
# The space between other tokens that indicates function application.
pass


@dataclass(eq=True)
class VariantToken(Token):
value: str
Expand Down Expand Up @@ -517,7 +511,6 @@ def parse(tokens: typing.List[Token], p: float = 0) -> "Object":
# TODO: revisit whether to use @ or . for field access
l = Access(l, parse(tokens, pr))
else:
assert not isinstance(op, Juxt)
assert isinstance(op, Operator)
l = Binop(BinopKind.from_str(op.value), l, parse(tokens, pr))
return l
Expand Down

0 comments on commit 0725752

Please sign in to comment.