Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*

This commit is contained in:
Nathan Braswell
2015-07-04 17:02:51 -04:00
parent d2b12fea35
commit 2c29846570
41 changed files with 149 additions and 166 deletions

View File

@@ -8,7 +8,7 @@ obj lexer (Object) {
var regs: vector::vector<regex::regex>
var input: string::string
var position: int
fun construct(): lexer* {
fun construct(): *lexer {
regs.construct()
input.construct()
position = 0
@@ -18,7 +18,7 @@ obj lexer (Object) {
regs.destruct()
input.destruct()
}
fun copy_construct(old: lexer*) {
fun copy_construct(old: *lexer) {
regs.copy_construct(&old->regs)
input.copy_construct(&old->input)
position = old->position
@@ -30,7 +30,7 @@ obj lexer (Object) {
fun add_regex(newOne: regex::regex) {
regs.add(newOne)
}
fun add_regex(newOne: char*) {
fun add_regex(newOne: *char) {
regs.add(regex::regex(newOne))
}
fun set_input(in: string::string) {