Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 21, 2009 any html parser with d binding | ||||
---|---|---|---|---|
| ||||
i have 2 question here: 1) can anyone suggest good html parser with d binding? 2) how reliable is bcd to create binding for c libraries? thanks. |
May 21, 2009 Re: any html parser with d binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to reimi gibbons | Hello reimi, > i have 2 question here: > > 1) can anyone suggest good html parser with d binding? > IIRC ANTLR can generate D If you dons't mind long compiles there is my dparse: http://www.dsource.org/projects/scrapple/browser/trunk/dparser And there is Enki: http://www.dsource.org/projects/ddl/browser/trunk/enki Other than that, I don't know of any |
May 21, 2009 Re: any html parser with d binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to reimi gibbons | reimi gibbons wrote:
> 2) how reliable is bcd to create binding for c libraries?
C? Very reliable (unless it uses weird compiler directives). C++ is a bit trickier.
|
May 21, 2009 Re: any html parser with d binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Hello BCS,
> Hello reimi,
>
>> i have 2 question here:
>>
>> 1) can anyone suggest good html parser with d binding?
>>
> IIRC ANTLR can generate D
>
> If you dons't mind long compiles there is my dparse:
> http://www.dsource.org/projects/scrapple/browser/trunk/dparser
>
> And there is Enki:
> http://www.dsource.org/projects/ddl/browser/trunk/enki
>
> Other than that, I don't know of any
>
Oops, I missed the HTML bit :I
|
May 21, 2009 Re: any html parser with d binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Fraser | Robert Fraser schrieb:
> reimi gibbons wrote:
>> 2) how reliable is bcd to create binding for c libraries?
>
> C? Very reliable (unless it uses weird compiler directives). C++ is a
> bit trickier.
Last time I used BCD, it had no support for bitfields and generated struct definition that do not match in size with their original.
So in general when doing C bindings, i do a check of struct sizes by writing a C and a D program outputting the sizes and compare the outputs with kdiff3 for manual tweaking the structs in D.
|
May 21, 2009 Re: any html parser with d binding | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Hello reimi,
>
>> i have 2 question here:
>>
>> 1) can anyone suggest good html parser with d binding?
>>
>
> IIRC ANTLR can generate D
The last supported version was 2.7.something. It depends on phobos, possibly a rather old version of it (I don't know).
|
Copyright © 1999-2021 by the D Language Foundation