Skip to content

beelang/bee.js

Repository files navigation

@beelang/parser.js

A 🐝 parser.

Version Tests Stability Dependencies

Notes

(Input -> Token Stream) >- Token Stream -> (Skeleton | NestingError) >- Skeleton -> (AST | SyntaxError) >- AST -> (AST | TypeError) >- AST -> Interpreter

Lexical stream parsers, break up by token: from: x: 1 to: ``` word(x) assignmentOperator(:) number(1)



Skeleton tree parser:
Input -> Tokens --> Tokens -> Skeleton|NestingError -> AST

from:
  ```
  x: 1
  ```
to:
  ```
  assignment(word(x) assignmentOperator(:) number(1))

About

Another attempt, this time in js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published