What type functions mean on a language level
Jacob Carlborg
doob at me.com
Wed Jan 6 13:24:19 UTC 2021
On 2021-01-02 20:04, Max Haughton wrote:
> Did you get as far as actually emitting it to be used during
> compilation? I'm not about the best way of actually using the AST
> structure inside the compiler
Yes, at least the most basic AST nodes. Converting the internal AST
(defined in the compiler) to the external AST (defined in druntime) is
the easy part. It's more difficult to do the conversion the other
direction. It's a matter of knowing how to construct the internal AST
node to make behave the same way as if you had written the corresponding
source code.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list