Added eval operator

This commit is contained in:
Mike Farah
2022-02-01 14:47:51 +11:00
parent 77204551ab
commit 535799462f
19 changed files with 209 additions and 30 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ type ExpressionNode struct {
Rhs *ExpressionNode
}
type ExpressionParser interface {
type ExpressionParserInterface interface {
ParseExpression(expression string) (*ExpressionNode, error)
}
@@ -20,7 +20,7 @@ type expressionParserImpl struct {
pathPostFixer expressionPostFixer
}
func NewExpressionParser() ExpressionParser {
func newExpressionParser() ExpressionParserInterface {
return &expressionParserImpl{newExpressionTokeniser(), newExpressionPostFixer()}
}