Added new special operators like &= and <<=.

Also made a litle change to scanner function moveOn(): now it moves on
the last char passed and only if there are more than one chars.
This commit is contained in:
2024-12-29 19:26:02 +01:00
parent e43823740f
commit eccb0c4dc9
11 changed files with 346 additions and 278 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ import (
)
func TestStringsParser(t *testing.T) {
section := "String"
inputs := []inputType{
/* 1 */ {`"uno" + "due"`, `unodue`, nil},
/* 2 */ {`"uno" + 2`, `uno2`, nil},
@@ -22,6 +23,6 @@ func TestStringsParser(t *testing.T) {
/* 10 */ {`"AF3B0Dz" / 0`, nil, "[1:12] division by zero"},
}
// runTestSuiteSpec(t, "String", inputs, 8)
runTestSuite(t, "String", inputs)
// runTestSuiteSpec(t, section, inputs, 8)
runTestSuite(t, section, inputs)
}