Hi, in various places on the mailing list and in the docs there is mention
of 'syntax extensions' or 'compiled syntax extensions' - some method of
extending the syntax of Rust which is compiled into the compiler, rather
than using macros. Are there any docs for these? Or is there any code which
is a good example to try to follow? (I looked through the libsyntax/ext
directory which seems to be the right place, but I couldn't tell what was
implementation of the feature and what was an example).

What I am actually looking for is a mechanism a bit like Clang
ASTFrontendActions - be able to instrument compilation for tools, rather
than to add new syntax. Syntax extensions sound like they might work - is
that right?

Thanks, Nick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to