| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-30 | Enable -Weverything | Tom Harley | -5/+13 | |
| Clang has a -Weverything option, that enables all compile-time warnings and elevates them all to errors. This option is now passed to the compiler, and all warnings/errors the code produced have been addressed. Using -Weverything locks the project into using clang as its compiler: this should not be a problem since clang is probably being used to compile the LLVM output of the project anyway. If support for other compilers is required, it should be simple enough to replace -Weverything with an equivalent collection of portable flags. Explicit Makefile rules for compiling the C files produced by flex/bison are now included in the project since these C files absolutely do not pass -Weverything checks. | ||||
| 2019-10-09 | Implement function definitions | Tom Harley | -1/+3 | |
| Functions can now be defined using the "def" construct. A "main" function has to be defined for LLVM to compile the program. Recursive function definitions are not supported, since all values are eagerly evaluated, causing infinite recursion of the non-base case. Recursive definitions can be supported either by including an if primitive that does not evaluate both sides, or by implementing support for lazy evalution. I'm interested in exploring the latter, but will probably implement the former for now. Similar to the if primitive above, the def primitive is currently an implementation which could potentially be altered into a function that manipulates meta-variables at compile time. This would require compile-time evaluation of functions, which would be really cool, but is also superfluous to the current goal. I might return to this idea after I'm happy with the base implementation of the language. | ||||
| 2019-10-03 | Support + and * operations | Tom Harley | -0/+1 | |
| 2019-09-30 | Initial commit | Tom Harley | -0/+28 | |
