mescc: Refactor compiler.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 4 Jan 2017 23:55:46 +0000 (00:55 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 4 Jan 2017 23:55:46 +0000 (00:55 +0100)
commit4a3e419e30da0d88e3745d708a006eb1683054bc
treed88f414d2537dcca889e34837f852603222a044f
parent21a6f2ca521585199ecad5e79b9d502b9e86d858
mescc: Refactor compiler.

* module/language/c99/compiler.mes (make, clone): Lightweight functional
  GOOPS-like list-based info structure.
  (make-text+globals+locals): Remove.
  (ast->info): Rename from statement->text+globals+locals, refactor.
  Update callers.
  (function->info): Rename from function->globals, refactor.  Update
  callers.
  (ast-list->info): New function.
module/language/c99/compiler.mes
module/language/c99/compiler.scm
module/mes/elf-util.mes
module/mes/elf-util.scm
module/mes/elf.mes
module/mes/libc-i386.mes