Added lexer tests
This commit is contained in:
19
examples/LawsOfMath.lx
Normal file
19
examples/LawsOfMath.lx
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user