Initial commit
This commit is contained in:
15
include/expr_compiler.h
Normal file
15
include/expr_compiler.h
Normal file
@@ -0,0 +1,15 @@
|
||||
// Reads a human math expression from the command line or a file
|
||||
// and converts it from infix to postfix. e.g; a + b -> a b +
|
||||
// If it is already in postfix then it will skip the infix conversion
|
||||
// Finally it will then convert it into a bytecode stack
|
||||
|
||||
#include "expr_compiler.h"
|
||||
// For type conversion of human-readable formats
|
||||
// Supports all float formats
|
||||
#include "typing.h"
|
||||
|
||||
// Converts human readable linear expression into bytecode for the executor
|
||||
uint8_t* infix_compile_expression(const char* src);
|
||||
// Converts postfix linear expression into bytecode for the executor
|
||||
uint8_t* postfix_compile_expression(const char* src);
|
||||
|
||||
Reference in New Issue
Block a user