drom / wast-spec

WebAssembly AST specification
MIT License
9 stars 2 forks source link

comment type? #22

Open wanderer opened 8 years ago

wanderer commented 8 years ago

It could be useful to include a comment type.

drom commented 8 years ago

comment kind usually problematic in AST. Comments can come almost at any point of source code and they are orthogonal to the main tree structure. For example Esprima can attach trailingComments or leadingComments to the AST nodes close to comment. @ariya @michaelficarra correct me if I am wrong.