xando / HerbertLang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

  • Install CLI dotnet
  • Restore Project dotnet restore

Build the language as the C# library

dotnet build

Run the tests

dotnet test

also to run the test with watch

dotnet watch --project HerbertLang.Tests test

Notes

-> Solution  
   - HerbertLang (There is a reference set to TEST dotnet add ... reference)
   - HerbertLang.Tests 

Flow

LEXER -> tokens
PARSER -> ast
INTERPRETER -> (code/string | code/steps)
SOLVER (code, world) -> solution

Idea

   - simple code
   sss

   - function no args
   #f:sss
   f

   #f():sss
   f()

   - functions with args
   #f(A):A
   f(sss)

   f(B):aBa
   f(sss)

About


Languages

Language:C# 95.4%Language:Python 4.4%Language:C 0.2%