* 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()
8 lines
164 B
Plaintext
8 lines
164 B
Plaintext
#unit random
|
|
import PABCSystem
|
|
|
|
def random() -> float:
|
|
return PABCSystem.Random()
|
|
|
|
def randint(a: int, b: int) -> int:
|
|
return PABCSystem.Random(a, b) |