Skip to content

eddsanity/NoScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoScript

The one and only NoScript programming language repository. Of course.

Status

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.

Generate project using CMake

  git clone git@github.com:eddsanity/NoScript.git
  cd NoScript
  mkdir build
  cd build
  cmake ..

Build using cmake

  cmake --build .

Run tests

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

About

NoScript programming language repository.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published