Commit Graph

13 Commits

Author SHA1 Message Date
313c996edd Cross platform fixes 2025-08-05 01:42:38 -04:00
72a31b28af Refactor to ExecutionContext pattern and fix string + none concatenation
- Add none value handling to Value::operator+ for string concatenation
- Replace direct string concatenations with Value::operator+ calls in Interpreter
- Add missing string+none and none+string type combinations
- Standardize token literal generation in Lexer
- Add ExecutionContext support across visitor pattern
- Enhance error reporting integration
- Add new standard library functions
2025-08-05 00:49:59 -04:00
adb00d496f Fixed performance, added enhanced error reporting, anon funcs, toBoolean, various other things 2025-08-01 13:43:35 -04:00
7c57a9a111 Implement functions, closures, standard library, and comprehensive number system
- Add function declarations, calls, and return statements
- Implement lexical scoping with Environment class and closures
- Convert print from statement to standard library function
- Add assert() function to standard library for testing
- Add time() function for microsecond precision benchmarking
- Create StdLib class and BuiltinFunction wrapper for standard library
- Implement first-class functions and higher-order functions
- Add function parameter support (tested up to 100 parameters)
- Support alphanumeric identifiers in variable and function names
- Add underscore support in variable names and identifiers
- Implement string + number and number + string concatenation
- Add boolean + string and string + boolean concatenation
- Support string multiplication (string * number)
- Fix decimal truncation issue by using std::stod for all number parsing
- Add comprehensive number formatting with proper precision handling
- Support huge numbers (epoch timestamps) without integer overflow
- Clean number display (no trailing zeros on integers)
- Add basic error handling with program termination on errors
- Add comprehensive test suite covering all features
- Add escape sequence support (\n, \t, \", \\)
- Add comprehensive documentation and language reference
- Update development roadmap with completed features
2025-07-30 17:51:48 -04:00
Bobby Lucero
8258df216e Added simple escape character support 2023-06-02 14:43:33 -04:00
Bobby Lucero
942c1e323b Tidy code, interactive interpreter prints out result of expression without explicit print statement 2023-06-01 17:19:19 -04:00
Bobby Lucero
7e0cead697 Added variable assignments 2023-05-31 01:48:50 -04:00
31b334ec65 Bug fixes 2023-05-28 15:13:59 -04:00
b38f6bff25 Fixed header duplicate symbols 2023-05-27 21:18:53 -04:00
92cd4e542a Binary and hex notation 2023-05-27 20:12:30 -04:00
3e5ba29283 It's alive! (implemented base interpreter) 2023-05-27 16:04:39 -04:00
a0ec4af169 ASTPrinter now prints generated AST from parser 2023-05-27 02:05:06 -04:00
c5f981321c AST Struct Generator 2023-05-21 20:40:43 -04:00