From 5f1a779a2666c6e3b2c9fcfe06a661364e08b319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 5 Jul 2022 16:36:58 +0800 Subject: [PATCH] save code --- syntax.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/syntax.go b/syntax.go index 6a3db44..a8655d9 100644 --- a/syntax.go +++ b/syntax.go @@ -13,10 +13,21 @@ package filter // // Date : 14:33 2022/7/5 func NewSyntax(jsonData string) *syntax { - return &syntax{} + return &syntax{ + lexicalInstance: NewLexical(jsonData), + } } type syntax struct { - // 词法分 + // 词法分析实例 lexicalInstance *lexical } + +// Parse 构建语法树 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 16:35 2022/7/5 +func (s *syntax) Parse() error { + return nil +}