ecmascript 0.2.0

A rust implementation of an ECMAScript parser
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "JSXElement",
                "openingElement": {
                    "type": "JSXOpeningElement",
                    "name": {
                        "type": "JSXIdentifier",
                        "name": "sample",
                        "range": [
                            1,
                            7
                        ],
                        "loc": {
                            "start": {
                                "line": 1,
                                "column": 1
                            },
                            "end": {
                                "line": 1,
                                "column": 7
                            }
                        }
                    },
                    "selfClosing": false,
                    "attributes": [
                        {
                            "type": "JSXAttribute",
                            "name": {
                                "type": "JSXIdentifier",
                                "name": "test",
                                "range": [
                                    8,
                                    12
                                ],
                                "loc": {
                                    "start": {
                                        "line": 1,
                                        "column": 8
                                    },
                                    "end": {
                                        "line": 1,
                                        "column": 12
                                    }
                                }
                            },
                            "value": {
                                "type": "Literal",
                                "value": "This is © by Joe",
                                "raw": "\"This is © by Joe\"",
                                "range": [
                                    13,
                                    37
                                ],
                                "loc": {
                                    "start": {
                                        "line": 1,
                                        "column": 13
                                    },
                                    "end": {
                                        "line": 1,
                                        "column": 37
                                    }
                                }
                            },
                            "range": [
                                8,
                                37
                            ],
                            "loc": {
                                "start": {
                                    "line": 1,
                                    "column": 8
                                },
                                "end": {
                                    "line": 1,
                                    "column": 37
                                }
                            }
                        }
                    ],
                    "range": [
                        0,
                        38
                    ],
                    "loc": {
                        "start": {
                            "line": 1,
                            "column": 0
                        },
                        "end": {
                            "line": 1,
                            "column": 38
                        }
                    }
                },
                "children": [],
                "closingElement": {
                    "type": "JSXClosingElement",
                    "name": {
                        "type": "JSXIdentifier",
                        "name": "sample",
                        "range": [
                            40,
                            46
                        ],
                        "loc": {
                            "start": {
                                "line": 1,
                                "column": 40
                            },
                            "end": {
                                "line": 1,
                                "column": 46
                            }
                        }
                    },
                    "range": [
                        38,
                        47
                    ],
                    "loc": {
                        "start": {
                            "line": 1,
                            "column": 38
                        },
                        "end": {
                            "line": 1,
                            "column": 47
                        }
                    }
                },
                "range": [
                    0,
                    47
                ],
                "loc": {
                    "start": {
                        "line": 1,
                        "column": 0
                    },
                    "end": {
                        "line": 1,
                        "column": 47
                    }
                }
            },
            "range": [
                0,
                47
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 0
                },
                "end": {
                    "line": 1,
                    "column": 47
                }
            }
        }
    ],
    "sourceType": "script",
    "range": [
        0,
        47
    ],
    "loc": {
        "start": {
            "line": 1,
            "column": 0
        },
        "end": {
            "line": 1,
            "column": 47
        }
    },
    "tokens": [
        {
            "type": "Punctuator",
            "value": "<",
            "range": [
                0,
                1
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 0
                },
                "end": {
                    "line": 1,
                    "column": 1
                }
            }
        },
        {
            "type": "JSXIdentifier",
            "value": "sample",
            "range": [
                1,
                7
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 1
                },
                "end": {
                    "line": 1,
                    "column": 7
                }
            }
        },
        {
            "type": "JSXIdentifier",
            "value": "test",
            "range": [
                8,
                12
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 8
                },
                "end": {
                    "line": 1,
                    "column": 12
                }
            }
        },
        {
            "type": "Punctuator",
            "value": "=",
            "range": [
                12,
                13
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 12
                },
                "end": {
                    "line": 1,
                    "column": 13
                }
            }
        },
        {
            "type": "String",
            "value": "\"This is &#0169; by Joe\"",
            "range": [
                13,
                37
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 13
                },
                "end": {
                    "line": 1,
                    "column": 37
                }
            }
        },
        {
            "type": "Punctuator",
            "value": ">",
            "range": [
                37,
                38
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 37
                },
                "end": {
                    "line": 1,
                    "column": 38
                }
            }
        },
        {
            "type": "Punctuator",
            "value": "<",
            "range": [
                38,
                39
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 38
                },
                "end": {
                    "line": 1,
                    "column": 39
                }
            }
        },
        {
            "type": "Punctuator",
            "value": "/",
            "range": [
                39,
                40
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 39
                },
                "end": {
                    "line": 1,
                    "column": 40
                }
            }
        },
        {
            "type": "JSXIdentifier",
            "value": "sample",
            "range": [
                40,
                46
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 40
                },
                "end": {
                    "line": 1,
                    "column": 46
                }
            }
        },
        {
            "type": "Punctuator",
            "value": ">",
            "range": [
                46,
                47
            ],
            "loc": {
                "start": {
                    "line": 1,
                    "column": 46
                },
                "end": {
                    "line": 1,
                    "column": 47
                }
            }
        }
    ]
}