March 07, 2012 D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Check it out: https://github.com/zachthemystic/ddmd-clean/ This program is an adaptation of the work done by the ddmd team: http://www.dsource.org/projects/ddmd I described most of it in the README. I hope it runs smoothly for you. I only ran it on MAC OSX, and I don't know much about github or about how to get things running smoothly for others. Don't expect miracles. The parser is NOT up to date, e.g. => with the lastest lambda syntax. I'll gladly put a license on it if the leaders of the community tell me which one to use ( Artistic, libpng, Boost ). Onward and upward to IDE functionality! Zach |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zach the Mystic | Hi, which version of the compiler can this be built with? I get this with 2.058: dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type bool() overrides but is not covariant with dmd.expression.Expression.isBit of type int() dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit does not override any function |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote:
> Hi,
>
> which version of the compiler can this be built with?
>
> I get this with 2.058:
> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type
> bool() overrides but is not covariant with
> dmd.expression.Expression.isBit of type int()
> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit does not
> override any function
Well, I was using 2.057
But obviously you've found a bug I can fix rather quickly!
|
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zach the Mystic | On Wednesday, 7 March 2012 at 21:06:25 UTC, Zach the Mystic wrote:
> On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote:
>> Hi,
>>
>> which version of the compiler can this be built with?
>>
>> I get this with 2.058:
>> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type
>> bool() overrides but is not covariant with
>> dmd.expression.Expression.isBit of type int()
>> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit does not
>> override any function
>
> Well, I was using 2.057
>
> But obviously you've found a bug I can fix rather quickly!
OK I think it's fixed.
Zach
|
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zach the Mystic | Zach the Mystic - I can't compile it. dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit of type bool() overrides but is no t covariant with dmd.expression.Expression.isBit of type int() dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit does not override any function On Wed, Mar 7, 2012, at 10:09 PM, Zach the Mystic wrote: > On Wednesday, 7 March 2012 at 21:06:25 UTC, Zach the Mystic wrote: > > On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote: > >> Hi, > >> > >> which version of the compiler can this be built with? > >> > >> I get this with 2.058: > >> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit > >> of type > >> bool() overrides but is not covariant with > >> dmd.expression.Expression.isBit of type int() > >> dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit > >> does not > >> override any function > > > > Well, I was using 2.057 > > > > But obviously you've found a bug I can fix rather quickly! > > OK I think it's fixed. > > Zach > |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zach the Mystic | On 07/03/2012 20:02, Zach the Mystic wrote: > Check it out: > https://github.com/zachthemystic/ddmd-clean/ > > This program is an adaptation of the work done by the ddmd team: > http://www.dsource.org/projects/ddmd > > I described most of it in the README. I hope it runs smoothly for you. I > only ran it on MAC OSX, and I don't know much about github or about how > to get things running smoothly for others. > > Don't expect miracles. The parser is NOT up to date, e.g. => with the > lastest lambda syntax. > > I'll gladly put a license on it if the leaders of the community tell me > which one to use ( Artistic, libpng, Boost ). > > Onward and upward to IDE functionality! > > Zach Just because I'm curious - how does it fare against the dmd testsuite/druntime unittests/phobos unittests? -- Robert http://octarineparrot.com/ |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | On Wednesday, 7 March 2012 at 21:26:46 UTC, Robert Clipsham wrote:
>
> Just because I'm curious - how does it fare against the dmd testsuite/druntime unittests/phobos unittests?
Just because I'm ignorant, I have no idea whatsoever!
I'm not even sure how to test these things. You totally gone way past my level!
|
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | You have a duplicate definition of: static int isTPL(Parameter[] arguments) in dmd.parameters.d |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
After fixing that dup definition the project compiles and runs on Win7 x64. Nice! :) |
March 07, 2012 Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On Wednesday, 7 March 2012 at 21:33:23 UTC, Andrej Mitrovic wrote:
> After fixing that dup definition the project compiles and runs on Win7
> x64. Nice! :)
Thanks :-)
And thanks for being the first to try it out, too!
|
Copyright © 1999-2021 by the D Language Foundation