Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: Parsing partial sentences Date: Fri, 7 Apr 2017 11:16:18 -0400 (EDT) Organization: Compilers Central Lines: 15 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <17-04-003@comp.compilers> References: <17-04-001@comp.compilers> <17-04-002@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="87358"; mail-complaints-to="abuse@iecc.com" Keywords: parse Posted-Date: 07 Apr 2017 11:16:18 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1842 Am 04.04.2017 um 15:05 schrieb Fernando: > Em segunda-feira, 3 de abril de 2017 12:16:18 UTC-3, Hans-Peter Diettrich > escreveu: >> 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? > I am not sure I understood the question, but from the title of the e-mail, > I am assuming that you want to parse C code partially available? The purpose is just what I wrote: parse #defines into constructs which can be translated into some other programming language. It shall become part of my C-to-Pascal converter, written in Pascal (OPL). DoDi