mescc: Support functions in expression.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 4 May 2018 11:58:27 +0000 (13:58 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 4 May 2018 11:58:27 +0000 (13:58 +0200)
commite53f55f002ef5d1f310874ed75b18e6c0cd83609
tree8bd1968f2bd1129e41cd459f61a4cd49200b0f1c
parentbe60b3e49be67ed4b912fb6c8f58333dfddcc5a0
mescc: Support functions in expression.

* module/language/c99/info.scm (<function>): New type.
* module/language/c99/compiler.mes (ast->type): Support function.
  (expr->type-size): Likewise.
  (expr->type): Likewise.
  (expr->accu*): Likewise.
  (function->info): Create <function>.
* module/mes/M1.mes (object->M1): Grok <function>.
* scaffold/tests/47-function-expression.c: Test it.
* build-aux/check-mescc.sh: Add it.
build-aux/check-mescc.sh
module/language/c99/compiler.mes
module/language/c99/info.scm
module/mes/M1.mes
scaffold/tests/47-function-expression.c [new file with mode: 0644]
scaffold/tests/48-function-destruct.c [new file with mode: 0644]