add parser chech for precedence in arithmetic expressions

This commit is contained in:
Ilusha 2024-03-13 14:10:18 +03:00 committed by Ilya Shurupov
parent 8cc5f2f9f7
commit 0494bf05af

View file

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