diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-06 08:48:39 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-06 08:48:39 -0500 |
commit | e3cbc8086c25d4fc1d9413815643b3ecaaee2062 (patch) | |
tree | 337e185a7fdc5a9a7e12ea625723b3e9e16a825b | |
parent | 125fb18e49dbef25b97bb546198d3f35603e58f1 (diff) | |
parent | e61abd8ea50b1e22cf9e56425db51919848b2aa0 (diff) |
Merge branch 'master' of http://code.bitgloo.com/clyne/interpreter
-rw-r--r-- | README.md | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,11 +1,19 @@ # interpreter -This project aims to provide a very minimal scripting language for embedded systems. Many other languages already exist, such as Lua, Tcl, or BASIC; however, most implementations require certain system calls like a read() and write(), expecting a filesystem. This interpreter aims to be as independent as possible: parsing script from strings at a time, having minimal built-in functions (so the user can define their own prints and such), and only requiring a few library functions. +This project aims to provide a very minimal scripting language for embedded systems. Many other languages already exist, such as Lua, Tcl, or BASIC; however, most implementations require certain system calls like a read() and write(), as they expect a filesystem. This interpreter aims to be as independent and portable as possible: parsing script from strings one at a time, having minimal built-in functions (so the user can define their own prints and such), and only requiring a few standard library functions. -To use this program with your own device, only one function is truly neede: malloc, and calloc (though may switch to only malloc). +To use this program with your own device, you need some malloc/free implementation, and string functions like those in string.h, atoi, and snprintf. Some of these functions may become coded in so that a standard library isn't required. -Current features: +Only a few commands are built in to the interpreter: +* set - set variables +* func/end - define functions +* jmp - jump to line + +Other features: * function/variable defining in c -* variable definition -* function calling with variable expansion +* expression solving + +Soon: +* conditionals +* error messages This project is still in heavy development, so don't expect much. To include it in your own project, just link in parser.o and use the header files. |