Thread overview | |||||
---|---|---|---|---|---|
|
April 06, 2008 Compile-time parser | ||||
---|---|---|---|---|
| ||||
I know there are a couple compile-time parser generators, but what can be done in the way of a compile-time parser -- that is, something that can parse a string at compile time into a set of nested compile-time templates or something? |
April 06, 2008 Re: Compile-time parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Fraser | Reply to Robert, > I know there are a couple compile-time parser generators, but what can > be done in the way of a compile-time parser -- that is, something that > can parse a string at compile time into a set of nested compile-time > templates or something? > Take a look at the compile-time parser generators, about half the code is exactly that. The big issues is that it is an insane memory hog. http://www.dsource.org/projects/scrapple/browser/trunk/dparser/dparse.d lines 465-1193 |
April 07, 2008 Re: Compile-time parser | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Reply to Robert,
>
>> I know there are a couple compile-time parser generators, but what can
>> be done in the way of a compile-time parser -- that is, something that
>> can parse a string at compile time into a set of nested compile-time
>> templates or something?
>>
>
> Take a look at the compile-time parser generators, about half the code is exactly that. The big issues is that it is an insane memory hog.
>
> http://www.dsource.org/projects/scrapple/browser/trunk/dparser/dparse.d
> lines 465-1193
Thanks; I'll take a look.
|
Copyright © 1999-2021 by the D Language Foundation