unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Nyacc parse error tcc.h: anonymous union in struct
Date: Sat, 03 Jun 2017 09:18:14 +0200	[thread overview]
Message-ID: <87fufhczex.fsf@gnu.org> (raw)
In-Reply-To: <ACB305B7-8540-49C0-83E0-3B8832BE9C06@gmail.com> (Matt Wette's message of "Fri, 26 May 2017 21:23:33 -0700")

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

Matt Wette writes:

Hi Matt!

The last Nyacc problem I found when compiling tcc.c, AFAICS

    $ mescc.scm bugs/anonymous-union.c
    parsing: input
    bugs/anonymous-union.c:7: parse failed at state 94, on input ";"
    bugs/anonymous-union.c:7: C99 parse error

Greetings,
janneke


[-- Attachment #2: anonymous-union.c --]
[-- Type: application/octet-stream, Size: 414 bytes --]

typedef struct Sym {
    int v;    /* symbol token */
#if 1 // !__MESC__
    union {
        int asm_label;    /* associated asm label */
        int scope;  /* scope level for locals */
    };
#else // Workaround: union apparently only to save space and size of struct is not important
//union {
      int asm_label;    /* associated asm label */
      int scope;  /* scope level for locals */
//};
#endif
} Sym;

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

  parent reply	other threads:[~2017-06-03  7:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27  4:23 [ANN] NYACC version 0.79.4 is released Matt Wette
2017-05-29 15:42 ` Matt Wette
2017-05-29 15:54   ` Nala Ginrut
2017-05-29 16:06     ` Matt Wette
2017-05-29 16:08       ` Matt Wette
2017-05-29 16:14       ` Nala Ginrut
2017-06-03  7:03 ` Nyacc parse error tcc.h: DEF_BWL Jan Nieuwenhuizen
2017-06-03 12:59   ` Matt Wette
2017-06-03 13:03     ` Matt Wette
2017-06-03 19:08       ` Jan Nieuwenhuizen
2017-06-03  7:10 ` Nyacc bad escape sequence compiling tcc.h: is_space Jan Nieuwenhuizen
2017-06-03  7:18 ` Jan Nieuwenhuizen [this message]
2017-06-03 15:19   ` Nyacc parse error tcc.h: anonymous union in struct Matt Wette

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fufhczex.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=guile-user@gnu.org \
    --cc=matt.wette@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).