Skip to content

akgvn/bc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bc

I liked using bc when I was on Ubuntu. I'm cloning it in Rust so that I'll be able to use it in every OS I use.

Also, learning interpreters / compilers.

TODO

  • Tokenizer
  • AST generation
    • Parser / Compiler rewrite
  • Actual interpretation (stack machine)
  • Global variables
  • Proper error handling.
  • Big-Number Arithmetics (scale)
  • Functions (define)
    • Local environment for local variables?
    • BUG: Check the arity of the called function. For example sqrt(5, 4) works and generates a PushConstant(4) instruction!
  • Standard Library
  • UTF-8 support
  • Support for econometry stuff?
    • Arrays
    • Statistical Functions
    • What else?

About

a bc clone in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages