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

@@ -52,11 +52,11 @@ obj grammer (Object) {
var rules: vector::vector<rule>
var regexs: set::set<regex::regex>
fun construct(): grammer* {
fun construct(): *grammer {
rules.construct()
regexs.construct()
}
fun copy_construct(old: grammer*) {
fun copy_construct(old: *grammer) {
rules.copy_construct(&old->rules)
regexs.copy_construct(&old->regexs)
}
@@ -91,13 +91,13 @@ obj rule (Object) {
var position: int
var lookahead: set::set<symbol::symbol>
fun construct(): rule* {
fun construct(): *rule {
lhs.construct()
rhs.construct()
position = 0
lookahead.construct()
}
fun copy_construct(other: rule*) {
fun copy_construct(other: *rule) {
lhs.copy_construct(&other->lhs)
rhs.copy_construct(&other->rhs)
position = other->position