@bvk/lsystem
TypeScript icon, indicating that this package has built-in type declarations

0.0.131 • Public • Published

☘️ LSystem ☘️

A work in progress node module (my very first), that generates L-Systems including all features from Algorithmic Beauty of Plants. More docs, and examples to come :)

Scripts to get going

  • npm run start-lsystem: Runs the lsystem on a basic string, iterates it
  • npm run start-parser: Runs the parser on a variety of inputs, showing outputs from Parser
  • npm run start-grammar: Runs the grammar on a variety of inputs, showing outputs from Nearley
  • npm run test: Runs test with jest.
  • npm watch: Runs typescript (tsc) in watch mode.

TODO

  • [ ] Fix Error throwing (introduce error types) across the board
  • [ ] Look at type system, be more frugal with type usage, potentially rename axiom
  • [ ] Add Comments + JSDoc
  • [ ] Publish examples repo, host examples somewhere
  • [ ] Fix npmignore (remove it and just do "include" in package.json?)
  • [ ] Add Readme
  • [ ] Performance
  • [ ] Change LSystem example to be interactive (take in input on the command line)
  • [ ] LSystem constructor is slow (loops through productions every time), can be faster by using a map

Dependencies (2)

Dev Dependencies (6)

Package Sidebar

Install

npm i @bvk/lsystem

Weekly Downloads

2

Version

0.0.131

License

MIT License

Unpacked Size

108 kB

Total Files

35

Last publish

Collaborators

  • bvk