Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jacob Carlborg
On 2012-03-07 21: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 MA

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jacob Carlborg
On 2012-03-08 05:54, Jonathan M Davis wrote: On Thursday, March 08, 2012 03:12:48 Zach the Mystic wrote: On Thursday, 8 March 2012 at 01:43:26 UTC, Daniel Murphy wrote: "Zach the Mystic" wrote in message news:afqmbmvuvizvgfooe...@forum.dlang.org... I'll gladly put a license on it if the lead

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jonathan M Davis
On Thursday, March 08, 2012 09:11:03 Jacob Carlborg wrote: > On 2012-03-08 05:54, Jonathan M Davis wrote: > > On Thursday, March 08, 2012 03:12:48 Zach the Mystic wrote: > >> On Thursday, 8 March 2012 at 01:43:26 UTC, Daniel Murphy wrote: > >>> "Zach the Mystic" wrote in > >>> message > >>> news:a

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread David Nadlinger
On Wednesday, 7 March 2012 at 20:02:57 UTC, Zach the Mystic wrote: https://github.com/zachthemystic/ddmd-clean/ By the way, in compilers, »code generation« is commonly used to refer to the generation of machine code; so using the term to refer to .di file generation/pretty-printing could be m

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread James Miller
On 8 March 2012 22:05, David Nadlinger wrote: > On Wednesday, 7 March 2012 at 20:02:57 UTC, Zach the Mystic wrote: >> >> https://github.com/zachthemystic/ddmd-clean/ > I would like to see the parser output an AST for use in other situations. It would be nice to have a tool that can analyse the AS

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
On Thursday, 8 March 2012 at 09:05:05 UTC, David Nadlinger wrote: On Wednesday, 7 March 2012 at 20:02:57 UTC, Zach the Mystic wrote: https://github.com/zachthemystic/ddmd-clean/ By the way, in compilers, »code generation« is commonly used to refer to the generation of machine code; so using t

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
On Thursday, 8 March 2012 at 04:53:20 UTC, Zach the Mystic wrote: Anyway, the first thing I need is a gui, and a code generator capable of coloring its output appropriately, so I'm working on that, but it's not (even close to) ready for show yet! By "Code Generator" I actually mean pretty-prin

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
On Thursday, 8 March 2012 at 07:49:57 UTC, Jonathan M Davis wrote: The lexer is going to need to take a range of dchar (which may or may not be an array), And while the lexer would need to operate on generic ranges of dchar, it would probably have to be special-cased for strings in a number of

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
I hit "send" before I was done writing! On Thursday, 8 March 2012 at 07:49:57 UTC, Jonathan M Davis wrote: Fortunately however, in a book that Ali Çehreli is writing on D, he has a chapter on ranges that should help get you started: http://ddili.org/ders/d.en/ranges.html Thanks. This is a re

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Dmitry Olshansky
On 08.03.2012 11:48, Jonathan M Davis wrote: On Thursday, March 08, 2012 08:21:17 Zach the Mystic wrote: On Thursday, 8 March 2012 at 04:56:07 UTC, Jonathan M Davis wrote: If you took it from ddmd, then it's definitely going to have to be GPL. Now, there is interest in having a D parser and le

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jonathan M Davis
On Thursday, March 08, 2012 22:03:12 Dmitry Olshansky wrote: > On 08.03.2012 11:48, Jonathan M Davis wrote: > > A range is not necessarily a dynamic array, though a dynamic array is a > > range. The lexer is going to need to take a range of dchar (which may or > > may not be an array), and it's pro

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jacob Carlborg
On 2012-03-08 08:21, Zach the Mystic wrote: On Thursday, 8 March 2012 at 04:56:07 UTC, Jonathan M Davis wrote: If you took it from ddmd, then it's definitely going to have to be GPL. Now, there is interest in having a D parser and lexer in Phobos. I don't know if your version will fit the bill

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jacob Carlborg
On 2012-03-08 09:20, Jonathan M Davis wrote: On Thursday, March 08, 2012 09:11:03 Jacob Carlborg wrote: On 2012-03-08 05:54, Jonathan M Davis wrote: On Thursday, March 08, 2012 03:12:48 Zach the Mystic wrote: On Thursday, 8 March 2012 at 01:43:26 UTC, Daniel Murphy wrote: "Zach the Mystic"

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Dmitry Olshansky
On 08.03.2012 22:46, Jonathan M Davis wrote: On Thursday, March 08, 2012 22:03:12 Dmitry Olshansky wrote: On 08.03.2012 11:48, Jonathan M Davis wrote: A range is not necessarily a dynamic array, though a dynamic array is a range. The lexer is going to need to take a range of dchar (which may or

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Jonathan M Davis
On Friday, March 09, 2012 00:54:48 Dmitry Olshansky wrote: > On 08.03.2012 22:46, Jonathan M Davis wrote: > > On Thursday, March 08, 2012 22:03:12 Dmitry Olshansky wrote: > >> On 08.03.2012 11:48, Jonathan M Davis wrote: > >>> A range is not necessarily a dynamic array, though a dynamic array is a

Re: D to Javascript converter (a hacked up dmd)

2012-03-08 Thread Marco Leise
Am 01.03.2012, 17:29 Uhr, schrieb Robert Clipsham : Interesting idea: version(JavaScript) asm { /* Well... it's not really asm, but it's as close as you could get with a javascript backend :p */ document.write("Oh look, inline javascript D-:"); } Perhaps it would be better to

Re: Enhanced D syntax highlighting for Sublime Text 2

2012-03-08 Thread Byakkun
On Wed, 07 Mar 2012 20:59:36 +0200, Alex Rønne Petersen wrote: https://github.com/alexrp/st2-d I plan to have it merged into ST2 proper if I can somehow get in touch with the dev(s)... Thanks, and good luck with the merge. I find ST2 the first text editor that is truly beautiful.

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
On Thursday, 8 March 2012 at 19:36:32 UTC, Jacob Carlborg wrote: This is great news. I was really worried that the license was etched in stone. I'll need help finding out who owns the code, plus legal advice if the process is more than just getting a simple confirmation email from each of the

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Zach the Mystic
On Thursday, 8 March 2012 at 07:49:57 UTC, Jonathan M Davis wrote: Regardless, you need to familiarize yourself with ranges if you want to get the lexer and parser ready for inclusion in Phobos. I have to admit that I don't currently feel competent to do this work. I'm too green. But I do thi

Re: D in Academia

2012-03-08 Thread Brian Rogoff
On Saturday, 3 March 2012 at 19:02:23 UTC, Chuck Allison wrote: FYI: TDPL is a required text for CS 4450, Analysis of Programming Languages, at Utah Valley University starting Fall 2012. We'll study ML and D (and Prolog if time allows). Slightly off topic digression: Which ML? I ask as an O

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-08 Thread Dmitry Olshansky
On 09.03.2012 1:12, Jonathan M Davis wrote: On Friday, March 09, 2012 00:54:48 Dmitry Olshansky wrote: On 08.03.2012 22:46, Jonathan M Davis wrote: On Thursday, March 08, 2012 22:03:12 Dmitry Olshansky wrote: On 08.03.2012 11:48, Jonathan M Davis wrote: A range is not necessarily a dynamic ar