add parser chech for precedence in arithmetic expressions

This commit is contained in:
Ilusha 2024-03-13 14:10:18 +03:00
parent afe32d6014
commit 37ae4b2abb

View file

@ -106,6 +106,8 @@ TEST_DEF_STATIC(Simple) {
};
exec("10 + 15;");
exec("print 10 + 15 * 10;");
exec("print 10 + 15 * (10 + 10) + 5;");
exec("print 10 + 15;");
exec("print (10 + 15) * 20;");
exec("var k : int;");
@ -134,7 +136,7 @@ TEST_DEF_STATIC(Complex) {
TEST_DEF(Interpreter) {
testEntry();
// testSimple();
testSimple();
testSimpleSave();
// testComplex();
}