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

pattern_class · Changes

Page history
adding classes you can match authored Sep 21, 2012 by Tim Disney's avatar Tim Disney
Hide whitespace changes
Inline Side-by-side
pattern_class.md 0 → 100644
View page @ e05f2d10
The currset set of pattern classes you can use when matching a macro pattern with `$pat:<class>`:
base (alias for Program)
expr (alias for AssignmentExpression)
ident (alias for PrimaryExpression)
lit (alias for PrimaryExpression)
Program
LogicalANDExpression
PrimaryExpression
VariableDeclarationList
StatementList
SourceElements
FunctionExpression
ExpressionStatement
IfStatement
BreakStatement
ContinueStatement
WithStatement
SwitchStatement
ReturnStatement
ThrowStatement
TryStatement
WhileStatement
ForStatement
VariableDeclaration
ArrayExpression
ObjectExpression
SequenceExpression
AssignmentExpression
ConditionalExpression
NewExpression
CallExpression
Block
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