Re: Parsing partial sentences

Walter Banks <walter@bytecraft.com>
Thu, 27 Apr 2017 10:58:41 -0400

          From comp.compilers

Related articles
[9 earlier articles]
Re: Parsing partial sentences DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2017-04-11)
Re: Parsing partial sentences martin@gkc.org.uk (Martin Ward) (2017-04-11)
Re: Parsing partial sentences gneuner2@comcast.net (George Neuner) (2017-04-11)
Re: Parsing partial sentences DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2017-04-12)
Re: Parsing partial sentences DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2017-04-20)
Re: Parsing partial sentences gneuner2@comcast.net (George Neuner) (2017-04-21)
Re: Parsing partial sentences walter@bytecraft.com (Walter Banks) (2017-04-27)
Re: Parsing partial sentences 686-678-9105@kylheku.com (Kaz Kylheku) (2017-04-27)
Re: Parsing partial sentences DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2017-04-28)
Re: Parsing partial sentences rugxulo@gmail.com (2017-04-28)
Re: Parsing partial sentences marcov@toad.stack.nl (Marco van de Voort) (2017-04-29)
Re: Parsing partial sentences 686-678-9105@kylheku.com (Kaz Kylheku) (2017-04-30)
| List of all articles for this month |
From: Walter Banks <walter@bytecraft.com>
Newsgroups: comp.compilers
Date: Thu, 27 Apr 2017 10:58:41 -0400
Organization: Aioe.org NNTP Server
References: 17-04-001
Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="23298"; mail-complaints-to="abuse@iecc.com"
Keywords: parse
Posted-Date: 27 Apr 2017 14:32:26 EDT

On 2017-04-03 3:57 AM, Hans-Peter Diettrich wrote:
> Is there an easy way to parse e.g. C #defines into constants,
> functions or other non-terminals, which are not the goal of the
> entire grammar?


In a word NO. #defines are always strings even when they look like
constants, something I have found out the hard way. There have only been
two ways that I have successfully dealt with #defines: a preprocessor
pass or later and much faster pipeline the processing of C source and
add the defined definition processing into part of the source fetch
handling.


w..



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.