Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Wiki
  • custom operators

custom operators · Changes

Page history
Updated custom operators (markdown) authored Apr 10, 2014 by Tim Disney's avatar Tim Disney
Show whitespace changes
Inline Side-by-side
custom-operators.md
View page @ b5c25e0c
Custom operators are sweet.
Unary Operators:
| Operator | Precedence |
| ---------- | ---------- |
|`new` | 16
|`++` | 15
|`--` | 15
|`!` | 14
|`~` | 14
|`+` | 14
|`-` | 14
|`typeof` | 14
|`void` | 14
|`delete` | 14
|`yield` | 2
Binary Operators:
| Operator | Precedence | Associativity |
| ---------- | ---------- | ------------- |
|`new` | 16 | na
|`++` | 15 | na
|`--` | 15 | na
|`!` | 14 | na
|`~` | 14 | na
|`+` | 14 | na
|`-` | 14 | na
|`typeof` | 14 | na
|`void` | 14 | na
|`delete` | 14 | na
|`yield` | 2 | na
| `*`| 13| left
| `/`| 13| left
| `%`| 13| left
......
Clone repository
  • Example macros
  • FAQ
  • High level design overview
  • Home
  • Macro resources
  • Patterns
  • Syntax Case
  • case api
  • custom operators
  • design
  • expander design
  • modules
  • node loader
  • pattern_class
  • reader scratch
View All Pages