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
  • design

design · Changes

Page history
`in` is just binary operator authored May 02, 2017 by Ingvar Stepanyan's avatar Ingvar Stepanyan
Hide whitespace changes
Inline Side-by-side
design.md
View page @ af4b0364
...@@ -48,7 +48,7 @@ disambiguate. Algorithm: ...@@ -48,7 +48,7 @@ disambiguate. Algorithm:
binaryOps = ["+", "-", "*", "/", "%","<<", ">>", ">>>", binaryOps = ["+", "-", "*", "/", "%","<<", ">>", ">>>",
"&", "|", "^","&&", "||", "?", ":", "&", "|", "^","&&", "||", "?", ":",
"instanceof" "instanceof", "in",
"===", "==", ">=", "<=", "<", ">", "!=", "!=="]; "===", "==", ">=", "<=", "<", ">", "!=", "!=="];
unaryOps = ["++", "--", "~", "!", "delete", "void", "typeof", "throw", "new"]; unaryOps = ["++", "--", "~", "!", "delete", "void", "typeof", "throw", "new"];
...@@ -75,8 +75,8 @@ disambiguate. Algorithm: ...@@ -75,8 +75,8 @@ disambiguate. Algorithm:
return false return false
else if tok-1 is one of "debugger" "break" "continue" "throw" else if tok-1 is one of "debugger" "break" "continue" "throw"
parse error parse error
else if tok-1 is one of "in" "case" else if tok-1 is "case"
// ... in {...} // case {...}
return false return false
else else
return true return true
......
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