//
pkg.gl
Category
github.com/blackhorseya/golang-101
design-patterns
behavioral
interpreter
package
0.0.0-20241212013832-3e83a38c33ff
Repository:
https://github.com/blackhorseya/golang-101.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
84 SLOC
#
Functions
NewNumber
No description provided by the author
NewParser
No description provided by the author
#
Structs
Add
Add 非終結符表達式,用於解析加法表達式.
Number
Number 終結符表達式,用於解析數字.
Parser
Parser 解析器,用於解析表達式.
Subtract
Subtract 非終結符表達式,用於解析減法表達式.
#
Interfaces
Expression
Expression 定義了抽象表達式接口.