diff --git a/lexical.go b/lexical.go index 314d9c6..334bd29 100644 --- a/lexical.go +++ b/lexical.go @@ -285,3 +285,12 @@ func (l *lexical) String() string { } return str } + +// Result 词法分析的结果 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 14:55 2022/7/5 +func (l *lexical) Result() []*lexicalNode { + return l.lexicalResult +} diff --git a/syntax.go b/syntax.go index 66b4d72..6a3db44 100644 --- a/syntax.go +++ b/syntax.go @@ -12,9 +12,11 @@ package filter // Author : go_developer@163.com<白茶清欢> // // Date : 14:33 2022/7/5 -func NewSyntax(lexical []*lexicalNode) *syntax { +func NewSyntax(jsonData string) *syntax { return &syntax{} } type syntax struct { + // 词法分 + lexicalInstance *lexical }