about summary refs log tree commit diff stats
path: root/045space_surround.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2384 - tests pass until layer 54Kartik K. Agaram2015-11-071-0/+2
|
* 2377 - stop using operator[] in mapKartik K. Agaram2015-11-061-1/+1
| | | | | | | | | | | | | | | | I'm still seeing all sorts of failures in turning on layer 11 of edit/, so I'm backing away and nailing down every culprit I run into. First up: stop accidentally inserting empty objects into maps during lookups. Commands run: $ sed -i 's/\(Recipe_ordinal\|Recipe\|Type_ordinal\|Type\|Memory\)\[\([^]]*\)\] = \(.*\);/put(\1, \2, \3);/' 0[1-9]* $ vi 075scenario_console.cc # manually fix up Memory[Memory[CONSOLE]] $ sed -i 's/\(Memory\)\[\([^]]*\)\]/get_or_insert(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe_ordinal\|Type_ordinal\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe\|Type\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* Now mu dies pretty quickly because of all the places I try to lookup a missing value.
* 2297Kartik K. Agaram2015-10-281-1/+1
|
* 2283 - represent each /property as a treeKartik K. Agaram2015-10-261-2/+2
|
* 2258 - separate warnings from errorsKartik K. Agaram2015-10-061-1/+1
| | | | | | | At the lowest level I'm reluctantly starting to see the need for errors that stop the program in its tracks. Only way to avoid memory corruption and security issues. But beyond that core I still want to be as lenient as possible at higher levels of abstraction.
* 2226 - standardize warning formatKartik K. Agaram2015-10-011-1/+1
| | | | | | | | Always show recipe name where error occurred. But don't show internal 'interactive' name for sandboxes, that's just confusing. What started out as warnings are now ossifying into errors that halt all execution. Is this how things went with C and Unix as well?
* 2218 - check types in instructions much earlierKartik K. Agaram2015-09-301-2/+2
| | | | | | | | | Front-loads it a bit more than I'd like, but the payoff is that other recipes will now be able to describe the type checks right next to their operation. I'm also introducing a new use of /raw with literals to indicate unsafe typecasts.
* 1868 - start using naked literals everywhereKartik K. Agaram2015-07-281-7/+7
| | | | First step to reducing typing burden. Next step: inferring types.
* 1848 - core instructions now check for ingredientsKartik K. Agaram2015-07-251-1/+2
| | | | Also standardized warnings.
* 1769 - routines can now have global variablesKartik K. Agaram2015-07-131-6/+0
|
* 1768Kartik K. Agaram2015-07-131-0/+60