Skip to content

Instantly share code, notes, and snippets.

@kooooohe
Created September 26, 2019 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kooooohe/4a9852c5b9c7c44dde9e1a709c7ab75b to your computer and use it in GitHub Desktop.
Save kooooohe/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