From 66204d56c0bc87df0d4d674209006585aafd3ebe Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 10 Sep 2017 21:09:23 +0200 Subject: [PATCH] mescc: Support Nyacc-0.81.0. * module/language/c99/compiler.mes (ast->info): Handle asm-expr from Nyacc 0.81.0. --- module/language/c99/compiler.mes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/language/c99/compiler.mes b/module/language/c99/compiler.mes index 28e82726..c243a85d 100644 --- a/module/language/c99/compiler.mes +++ b/module/language/c99/compiler.mes @@ -2631,6 +2631,9 @@ ((compd-stmt (block-item-list . ,statements)) ((ast-list->info info) statements)) + ((asm-expr ,gnuc (,null ,arg0 . string)) + (append-text info (wrap-as (asm->m1 arg0)))) + ((expr-stmt (fctn-call (p-expr (ident ,name)) (expr-list . ,expr-list))) (if (equal? name "asm") (let ((arg0 (cadr (cadar expr-list)))) (append-text info (wrap-as (asm->m1 arg0))))