mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 08:22:13 +08:00
Added eval operator
This commit is contained in:
@@ -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()}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user