The one and only NoScript programming language repository. Of course.
Lexer is fully complete.
Parser is pretty much complete. Bulk of the work, expressions, is done. A few things remain: Grouped Expressions, While statements and If statements.
No REPL yet, since I don't evaluate the AST yet.
git clone git@github.com:eddsanity/NoScript.git
cd NoScript
mkdir build
cd build
cmake .. cmake --build .As of right now, I haven't managed to add CMake integration for doctest yet. Tests will have to be manually compiled and run.
Until then, copy and paste this from the project's root directory, and substitute clang++ for your compiler of choice.
cd tests/
clang++ -std=c++17 -I../include/ ..\source\AST.cpp ..\source\Error.cpp ..\source\ErrorLogger.cpp
..\source\InfixParseFiles.cpp ..\source\Lexer.cpp ..\source\Parser.cpp ..\source\ParserHelpers.cpp
..\source\PrefixParseFunctions.cpp ..\source\Token.cpp ..\source\utility.cpp
..\source\PrecedenceTable.cpp ParseLetStatementTest.cpp
ParseRetStatementTest.cpp ParsePrefixExpressionTest.cpp ParseInfixExpressionTest.cpp -o test