Skip to content

Instantly share code, notes, and snippets.

@0xkohe
Created September 26, 2019 04:49
Show Gist options
  • Save 0xkohe/4a9852c5b9c7c44dde9e1a709c7ab75b to your computer and use it in GitHub Desktop.
Save 0xkohe/4a9852c5b9c7c44dde9e1a709c7ab75b to your computer and use it in GitHub Desktop.
[Blog][TopDownOperatorPrecedence(再帰下降構文解析)におけるExpression(式)の解析処理を追う]precedence.go
const (
LOWEST iota + 1
EQUALS // ==
LESSGRETER // > or <
SUM // +
PRODUCT // *
PREFIX // -X or !X
CALL // myFunction(X)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment