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:
Nathan Braswell
2015-06-12 14:16:28 -04:00
parent d90cb4b6db
commit cd1b10a633
14 changed files with 139 additions and 62 deletions

View File

@@ -1 +1,2 @@
A
66

View File

@@ -4,5 +4,6 @@ import conversions:*
fun main():int {
println(to_char(65))
println(to_int('B'))
return 0
}

View File

@@ -1 +1,2 @@
a
2
0

View File

@@ -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
}

View File

@@ -7,3 +7,4 @@
7
8
9
10

View File

@@ -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
}