stdweb icon indicating copy to clipboard operation
stdweb copied to clipboard

Write a procedural macro to replace the `js!` macro on nightly (full JavaScript parser)

Open koute opened this issue 7 years ago • 2 comments

Same as #6, except the fully parse the JavaScript code instead of only tokenizing and stringifying it.

This is significantly harder.

koute avatar Apr 26 '17 16:04 koute

what would be the benefit of parsing the javascript?

ForsakenHarmony avatar Sep 10 '18 12:09 ForsakenHarmony

@ForsakenHarmony To make sure that it's actually syntactically valid JS without executing it. Also, there may be some optimizations we could do - e.g. if there is no return there there is no point in deserializing the return value.

koute avatar Sep 10 '18 20:09 koute