Fixed bug where no parameter function calls were not typechecked and function/struct name collision. Improved regex library to where it can do straight-line regexs
This commit is contained in:
@@ -1 +1,2 @@
|
||||
A
|
||||
66
|
||||
|
||||
@@ -4,5 +4,6 @@ import conversions:*
|
||||
|
||||
fun main():int {
|
||||
println(to_char(65))
|
||||
println(to_int('B'))
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
a
|
||||
2
|
||||
0
|
||||
|
||||
@@ -2,8 +2,8 @@ import io:*
|
||||
import regex:*
|
||||
|
||||
fun main():int {
|
||||
var reg = regex("a")
|
||||
println(reg.regexString)
|
||||
println(reg.long_match("a"))
|
||||
var reg = regex("ab")
|
||||
println(reg.long_match("abab"))
|
||||
println(reg.long_match("aab"))
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -7,3 +7,4 @@
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
|
||||
@@ -5,6 +5,8 @@ import sameNameTwo
|
||||
var sameVar: int;
|
||||
fun sameFun(): int { return 4; }
|
||||
|
||||
fun classTester(): int { return 10; }
|
||||
|
||||
obj classTester {
|
||||
fun method(): int {
|
||||
return 7
|
||||
@@ -32,5 +34,7 @@ fun main(): int {
|
||||
println(class2.method())
|
||||
println(class3.method())
|
||||
|
||||
println(classTester())
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user