增加词法和节点定义

This commit is contained in:
zhangdeman committed 2022-07-04 18:08:10 +08:00
1 parent ec11100783
commit bdce4ab6c6
2 files changed
+32

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
// Package filter ...
//
// Description : filter ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2022-07-04 18:02
package filter
// jsonNode json语法树节点定义
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:06 2022/7/4
type jsonNode struct {
Name string // 节点名称
Parent *jsonNode // 父节点
Son *jsonNode // 子节点
Brother *jsonNode // 兄弟节点
Val interface{} // 节点的值
}
// lexicalNode 词法分析的节点
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:02 2022/7/4
type lexicalNode struct {
Val string // 词法分析出来的词
IsToken bool // 是否为关键字
}
+1
View File
@@ -6,3 +6,4 @@
//
// Date : 2022-07-04 17:52
package filter
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.