[OT] Re: Andrei's list of barriers to D adoption

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 10 08:14:02 PDT 2016


On Friday, 10 June 2016 at 15:03:30 UTC, jmh530 wrote:
> On Friday, 10 June 2016 at 14:25:37 UTC, Adam D. Ruppe wrote:
>>
>> To make an interpreter, you can just add a method to the AST 
>> objects that interprets and gives a result.... boom, it works!
>
> Given my limited knowledge of compilers/interpreters, this part 
> kind of seems like magic.
>
> Let's say you have something simple like 1+2, you would build 
> an AST that looks something like
>    +
>   / \
>  1   2
> What would be the next step?

1. this is heavily OT. ;-)
2. you may take a look at my gml engine. it has clearly separated 
language parser and AST builder (gaem.parser), and AST->VM 
compiler (gaem.runner/compiler.d).


More information about the Digitalmars-d mailing list