ast-generator

0.2.1 • Public • Published

npm Build Status

TypeScript code generator for AST nodes based on the following grammar format:

Circle:
  cx  `number`
  cy  `number`
  r   `number`

Rect:
  x      `number`
  y      `number`
  width  `number`
  height `number`

@Shape:
  | Circle
  | Rect

Document:
  version `number`?
  shapes  @Shape*

Package Sidebar

Install

npm i ast-generator

Weekly Downloads

929

Version

0.2.1

License

none

Unpacked Size

18.6 kB

Total Files

3

Last publish

Collaborators

  • nvie