Added lexer tests

This commit is contained in:
Pasha Bibko
2025-07-22 20:46:42 +01:00
parent 829d4c224a
commit 4d6224529f
13 changed files with 288 additions and 25 deletions

19
examples/LawsOfMath.lx Normal file
View File

@@ -0,0 +1,19 @@
int add(int a, int b)
{
return a + b
}
int main(void)
{
int c = add(3, 4)
if (c == 7)
{
return 0
}
# The laws of maths have been broken #
else
{
return 1
}
}