From: Jan Nieuwenhuizen <janneke@gnu.org>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Nyacc parse error tcc.h: DEF_BWL
Date: Sat, 03 Jun 2017 09:03:15 +0200 [thread overview]
Message-ID: <87o9u5d03w.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: 818 bytes --]
Matt Wette writes:
Hi Matt!
> NYACC version 0.79.4 is released.
Congrats and thanks!
I have been working on Mes towards compiling tcc.c from tinycc[1] from
latest mob development[2] and was real happy to find that Nyacc handles
most everything, truly amazing piece of work!
I did find some Nyacc parsing problems, most of which were easy to work
around. Now that I finally got round updating to 0.79.4, and verified
that Mescc works OK, I'll be sending some bugs I found that are still
present.
First isolated bug when compiling tcc.c is
08:50:26 janneke@dundal:~/src/mes [env]
$ mescc.scm bugs/def-bwl.c
parsing: input
(unknown):1: parse failed at state 88, on input "DEF_BWL"
bugs/def-bwl.c:20: C99 parse error
Greetings,
janneke
[1] http://tinycc.org
[2] http://repo.or.cz/tinycc.git
[-- Attachment #2: def-bwl.c --]
[-- Type: application/octet-stream, Size: 528 bytes --]
#define DEF_BWL(x) \
DEF(TOK_ASM_ ## x ## b, #x "b") \
DEF(TOK_ASM_ ## x ## w, #x "w") \
DEF(TOK_ASM_ ## x ## l, #x "l") \
DEF(TOK_ASM_ ## x, #x)
#if 1 // !__MESC__
#define DEF_BWLX DEF_BWL
#else // Workaround for Nyacc
#define DEF_BWLX(x) \
DEF(TOK_ASM_ ## x ## b, #x "b") \
DEF(TOK_ASM_ ## x ## w, #x "w") \
DEF(TOK_ASM_ ## x ## l, #x "l") \
DEF(TOK_ASM_ ## x, #x)
#endif
enum tcc_token {
TOK_LAST
#define DEF(id, str) ,id
DEF_BWLX(mov)
#undef DEF
};
int
main (int argc, char *argv[])
{
return TOK_ASM_mov;
}
[-- 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
next prev parent reply other threads:[~2017-06-03 7:03 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 ` Jan Nieuwenhuizen [this message]
2017-06-03 12:59 ` Nyacc parse error tcc.h: DEF_BWL 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 ` Nyacc parse error tcc.h: anonymous union in struct Jan Nieuwenhuizen
2017-06-03 15:19 ` 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=87o9u5d03w.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).