amasad / pg-basic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run on Repl.it

Goals

Architecture

  • Line (string) => Lexer => [] Tokens => Parser => AST
  • Expressions are precompiled to JavaScript expressions
  • Runtime library basic.js handles execution, debugging, and context
  • AST nodes run themsleves

TODO

  • Strinct expression parsing (e.g. 3 XX should not be acceptable)
  • Nonsense errors: SQRT, a[0]
  • pass rgb array to plot
  • implement mouse getpos
  • test/fix repl
  • should round plot calls
  • don't queue keys while paused

Docs

Moved here.

About


Languages

Language:JavaScript 99.8%Language:Shell 0.2%Language:Nix 0.0%