package main
import (
"fmt"
"ppc/lexer"
"ppc/parser"
)
func main() {
// 此处输入运算式
input := "1 + 9 * (3 - 2)+ (9 * 6)"
l := lexer.New(input)
p := parser.New(l)
res := p.ParseExpression(0)
fmt.Println(res)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
shiyang1026/pratt-parse
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.