Skip to content

Instantly share code, notes, and snippets.

View why-jay's full-sized avatar

YJ Yang why-jay

View GitHub Profile
@why-jay
why-jay / gist:e6c1946b5d8808d81f6a
Created December 8, 2014 05:14
A Mozilla Parser API snippet in Rust
pub enum Pattern<'a> {
Expression(Expression<'a>),
ObjectPattern(ObjectPattern<'a>),
ArrayPattern(ArrayPattern<'a>)
}
@why-jay
why-jay / random_parser_api.json
Created December 8, 2014 05:08
"var x = 1" in Mozilla Parser API
{
"type": "Program",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",