hermes-parser 0.1.0

A Rust port of the Hermes JavaScript/Flow/TypeScript parser (front-end) by Tzvetan Mikov, the architect of Hermes. Not an official Meta project.
Documentation
1
2
3
4
5
6
7
8
9
function f<T>(x: T, y: number): T {
  return x;
}
function g(this: Object, a: number): void {}
var h = function <T>(): T {};
function p(x: mixed): boolean %checks {
  return !!x;
}
function q(x: mixed): %checks (typeof x === 'string') {}