Skip to content

Instantly share code, notes, and snippets.

@nu11secur1ty
Created December 1, 2016 18:33
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 nu11secur1ty/02081d101204ab43d3b65b7b8a3194de to your computer and use it in GitHub Desktop.
Save nu11secur1ty/02081d101204ab43d3b65b7b8a3194de to your computer and use it in GitHub Desktop.
left terms and list operators (leftward)
left ->
nonassoc ++ --
right **
right ! ~ \ and unary + and -
left =~ !~
left * / % x
left + - .
left << >>
nonassoc named unary operators
nonassoc < > <= >= lt gt le ge
nonassoc == != <=> eq ne cmp ~~
left &
left | ^
left &&
left || //
nonassoc .. ...
right ?:
right = += -= *= etc.
left , =>
nonassoc list operators (rightward)
right not
left and
left or xor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment