found segfault member
This commit is contained in:
@@ -97,7 +97,7 @@ else
|
|||||||
echo "no ${kraken}_bootstrap, bootstrapping using starting from cached version"
|
echo "no ${kraken}_bootstrap, bootstrapping using starting from cached version"
|
||||||
git checkout ${bootstrap_commits[$cached_index]}
|
git checkout ${bootstrap_commits[$cached_index]}
|
||||||
cp "../cached_builds/${bootstrap_commits[$cached_index]}/kraken.krak.c" "./"
|
cp "../cached_builds/${bootstrap_commits[$cached_index]}/kraken.krak.c" "./"
|
||||||
cc kraken.krak.c -O3 -o kraken_bootstrap
|
cc kraken.krak.c -lm -lpthread -O3 -o kraken_bootstrap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# loop through the chain
|
# loop through the chain
|
||||||
|
|||||||
@@ -190,10 +190,11 @@ obj identifier (Object) {
|
|||||||
return name == other.name && type == other.type && enclosing_scope == other.enclosing_scope
|
return name == other.name && type == other.type && enclosing_scope == other.enclosing_scope
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fun ast_type_def_ptr(name: ref string): *ast_node {
|
fun ast_type_def_ptr(name: string): *ast_node {
|
||||||
return ast_type_def_ptr(name, false)
|
/*fun ast_type_def_ptr(name: ref string): *ast_node {*/
|
||||||
}
|
/*return ast_type_def_ptr(name, false)*/
|
||||||
fun ast_type_def_ptr(name: ref string, is_union: bool): *ast_node {
|
/*}*/
|
||||||
|
/*fun ast_type_def_ptr(name: ref string, is_union: bool): *ast_node {*/
|
||||||
/*var to_ret.construct(name, is_union): type_def*/
|
/*var to_ret.construct(name, is_union): type_def*/
|
||||||
var to_ret.construct(name): type_def
|
var to_ret.construct(name): type_def
|
||||||
var ptr = new<ast_node>()
|
var ptr = new<ast_node>()
|
||||||
@@ -209,12 +210,13 @@ fun is_type_def(node: *ast_node): bool {
|
|||||||
obj type_def (Object) {
|
obj type_def (Object) {
|
||||||
var scope: map<string, vector<*ast_node>>
|
var scope: map<string, vector<*ast_node>>
|
||||||
var name: string
|
var name: string
|
||||||
var is_union: bool
|
/*var is_union: bool*/
|
||||||
var self_type: *type
|
var self_type: *type
|
||||||
var variables: vector<*ast_node>
|
var variables: vector<*ast_node>
|
||||||
var methods: vector<*ast_node>
|
var methods: vector<*ast_node>
|
||||||
/*fun construct(nameIn: ref string, is_unionIn: bool): *type_def {*/
|
/*fun construct(nameIn: ref string, is_unionIn: bool): *type_def {*/
|
||||||
fun construct(nameIn: ref string): *type_def {
|
fun construct(nameIn: ref string): *type_def {
|
||||||
|
/*fun construct(nameIn: string): *type_def {*/
|
||||||
scope.construct()
|
scope.construct()
|
||||||
name.copy_construct(&nameIn)
|
name.copy_construct(&nameIn)
|
||||||
/*is_union = is_unionIn*/
|
/*is_union = is_unionIn*/
|
||||||
|
|||||||
Reference in New Issue
Block a user