增加获取词法分析结果的方法

This commit is contained in:
白茶清欢 2022-07-05 14:55:50 +08:00
parent 81085d9477
commit ec2df9adad
2 changed files with 12 additions and 1 deletions

View File

@ -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
}

View File

@ -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
}