pascalabcnet/TestSuiteAdditionalLanguages/SPythonTests/CompilationSamples/str.pys
Александр Земляк c69daac622
Рефакторинг таблицы символов, чтобы заполнялся только один словарь (#3417)
* Refactor SymbolTable to improve architecture

* Fix PABCSystem function calls in SPython standard modules

* Fix names search in SymbolTable and CollectNamesFromUsedUnits in Compiler

* Add SemanticRulesConstants.SymbolTableCaseSensitive setting in pcu reader

* Fix case sensitive search in DSSymbolTable class

* Add case sensitive search test cases for SPython

* Leave only one dictionary in SymbolsDictionary class

* Refactor Find function in SymbolsDictionary

* Fix math.pys module

* Fix str.pys

* Imrove Find method in SymbolsDictionary

* DefaultIfEmpty was wrong - need to use Any()
2026-04-06 22:41:26 +03:00

5 lines
92 B
Plaintext

s = '123#4\'#\'' #1212
s.IndexOf('3').Print() #12121
print(s) #1212
if True:
print(2)