Related articles |
---|
Supporting multiple input syntaxes mijoryx@yahoo.com.dmarc.email (luser droog) (2020-08-12) |
Re: Supporting multiple input syntaxes minforth@arcor.de (2020-08-13) |
RE: Supporting mulitple input syntaxes christopher.f.clark@compiler-resources.com (Christopher F Clark) (2020-08-14) |
From: | Christopher F Clark <christopher.f.clark@compiler-resources.com> |
Newsgroups: | comp.compilers |
Date: | Fri, 14 Aug 2020 12:44:31 +0300 |
Organization: | Compilers Central |
References: | 20-08-002 20-08-005 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="456"; mail-complaints-to="abuse@iecc.com" |
Keywords: | C, parse |
Posted-Date: | 15 Aug 2020 10:46:26 EDT |
We did something similar with Yacc++. We used inheritance of grammars
(a feature of our product) to do so. In fact, the point of the
exercise was to demonstrate that feature. I would presume something
similar would work in a hand-written recursive descent parser.
--
******************************************************************************
Chris Clark email: christopher.f.clark@compiler-resources.com
Compiler Resources, Inc. Web Site: http://world.std.com/~compres
23 Bailey Rd voice: (508) 435-5016
Berlin, MA 01503 USA twitter: @intel_chris
------------------------------------------------------------------------------
Return to the
comp.compilers page.
Search the
comp.compilers archives again.