language: Rename expression classes

Rename the expression classes to match the documentation.
This commit is contained in:
James Westman 2023-04-09 14:46:29 -05:00
parent ef39b5d7db
commit 9e82a2fb2a
5 changed files with 23 additions and 23 deletions

View file

@ -20,19 +20,19 @@
from dataclasses import dataclass
from .common import *
from .expression import ExprChain, LookupOp, LiteralExpr
from .expression import Expression, LookupOp, LiteralExpr
from .contexts import ValueTypeCtx
class Binding(AstNode):
grammar = [
Keyword("bind"),
ExprChain,
Expression,
]
@property
def expression(self) -> ExprChain:
return self.children[ExprChain][0]
def expression(self) -> Expression:
return self.children[Expression][0]
@property
def simple_binding(self) -> T.Optional["SimpleBinding"]: