about summary refs log tree commit diff stats
path: root/js
Commit message (Expand)AuthorAgeFilesLines
...
* *elioat2024-08-142-15/+17
* *elioat2024-08-142-0/+202
* *elioat2024-07-081-1/+2
* *elioat2024-07-071-0/+1
* *elioat2024-07-072-2/+2
* *elioat2024-07-071-9/+14
* *elioat2024-07-071-3/+10
* *elioat2024-07-072-2/+6
* *elioat2024-07-071-1/+1
* *elioat2024-07-071-1/+1
* *elioat2024-07-072-1/+50
* *elioat2024-07-073-35/+70
* *elioat2024-07-072-2/+24
* *elioat2024-07-073-16/+20
* *elioat2024-07-072-16/+17
* *elioat2024-07-074-5/+2
* *elioat2024-07-072-11/+30
* *elioat2024-07-074-141/+321
* *elioat2024-07-064-3/+43
* *elioat2024-07-062-0/+153
* *elioat2024-07-061-8/+12
* *elioat2024-07-041-2/+2
* *elioat2024-07-041-0/+63
* *elioat2024-07-042-6/+10
* *elioat2024-07-031-0/+0
* *elioat2024-07-031-3/+10
* *elioat2024-07-032-6/+28
* *elioat2024-07-033-4/+84
* Merge branch 'master' of tilde.institute:~/public_repos/tourelioat2024-07-031-3/+3
|\
| * *elioat2024-07-011-3/+3
* | *elioat2024-07-033-326/+247
|/
* *elioat2024-06-302-7/+7
* *elioat2024-06-301-3/+2
* *elioat2024-06-301-0/+0
* *elioat2024-06-304-2/+7
* *elioat2024-06-302-0/+59
* *elioat2024-06-301-0/+2
* *elioat2024-06-302-6/+75
* *:elioat2024-06-301-3/+9
* *elioat2024-06-303-22/+35
* an idea is bornelioat2024-06-301-0/+2
* *elioat2024-06-301-11/+24
* *elioat2024-06-302-0/+120
* *elioat2024-06-292-9/+35
* *elioat2024-06-293-0/+129
* *elioat2024-06-231-16/+15
* *elioat2024-06-231-2/+11
* *elioat2024-06-231-6/+5
* *elioat2024-06-232-0/+88
* *elioat2024-06-211-41/+40
ype->right->value != get(Type_ordinal, "array") || !x.type->right->right || x.type->right->right->value != get(Type_ordinal, "location") || x.type->right->right->right) { raise_error << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write " << to_string(data) << '\n' << end(); } if (Current_routine->global_space) raise_error << "routine already has a global-space; you can't over-write your globals" << end(); Current_routine->global_space = data.at(0); return; } //: now marking variables as /space:global looks them up inside this field :(after "long long int space_base(const reagent& x)") if (is_global(x)) { if (!Current_routine->global_space) raise_error << "routine has no global space\n" << end(); return Current_routine->global_space; } //: for now let's not bother giving global variables names. //: don't want to make them too comfortable to use. :(scenario global_space_with_names) % Hide_errors = true; recipe main [ global-space:address:array:location <- new location:type, 10 x:number <- copy 23 1:number/space:global <- copy 24 ] # don't complain about mixing numeric addresses and names $error: 0 :(after "bool is_numeric_location(const reagent& x)") if (is_global(x)) return false; //: helpers :(code) bool is_global(const reagent& x) { for (long long int i = /*skip name:type*/1; i < SIZE(x.properties); ++i) { if (x.properties.at(i).first == "space") return x.properties.at(i).second && x.properties.at(i).second->value == "global"; } return false; }