ratel-rust / ratel-core

High performance JavaScript to JavaScript compiler with a Rust core
Apache License 2.0
435 stars 17 forks source link

Universal node type #100

Open Yoric opened 6 years ago

Yoric commented 6 years ago

If I read correctly the code, there is no universal node type.

This is the kind of thing that would be useful to write a converter between two AST:

fn ratel_to_binast(source: &ratel::Universal) -> Result<binast::Universal, ?> {
  ...
}

There may be alternatives, I'll think about that.