oak-rust 0.0.11

High-performance incremental Rust parser for the oak ecosystem with flexible configuration, emphasizing memory safety and zero-cost abstractions.
Documentation
{
    "success": true,
    "node_count": 36,
    "ast_structure": {
        "kind": "SourceFile",
        "children": [
            {
                "kind": "EnumItem",
                "children": [
                    {
                        "kind": "EnumItem",
                        "children": [
                            {
                                "kind": "BlockExpression",
                                "children": [
                                    {
                                        "kind": "Error",
                                        "children": [
                                            {
                                                "kind": "Leaves(1)",
                                                "children": [],
                                                "text_length": 1,
                                                "is_leaf": true
                                            }
                                        ],
                                        "text_length": 1,
                                        "is_leaf": false
                                    },
                                    {
                                        "kind": "IdentifierExpression",
                                        "children": [
                                            {
                                                "kind": "Leaves(1)",
                                                "children": [],
                                                "text_length": 6,
                                                "is_leaf": true
                                            }
                                        ],
                                        "text_length": 6,
                                        "is_leaf": false
                                    },
                                    {
                                        "kind": "Error",
                                        "children": [
                                            {
                                                "kind": "Leaves(1)",
                                                "children": [],
                                                "text_length": 1,
                                                "is_leaf": true
                                            }
                                        ],
                                        "text_length": 1,
                                        "is_leaf": false
                                    },
                                    {
                                        "kind": "Block",
                                        "children": [
                                            {
                                                "kind": "BlockExpression",
                                                "children": [
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 6,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 6,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "IdentifierExpression",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 4,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 4,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "CallExpression",
                                                        "children": [
                                                            {
                                                                "kind": "IdentifierExpression",
                                                                "children": [
                                                                    {
                                                                        "kind": "Leaves(1)",
                                                                        "children": [],
                                                                        "text_length": 4,
                                                                        "is_leaf": true
                                                                    }
                                                                ],
                                                                "text_length": 4,
                                                                "is_leaf": false
                                                            },
                                                            {
                                                                "kind": "IdentifierExpression",
                                                                "children": [
                                                                    {
                                                                        "kind": "Leaves(1)",
                                                                        "children": [],
                                                                        "text_length": 3,
                                                                        "is_leaf": true
                                                                    }
                                                                ],
                                                                "text_length": 3,
                                                                "is_leaf": false
                                                            },
                                                            {
                                                                "kind": "Leaves(2)",
                                                                "children": [],
                                                                "text_length": 2,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 9,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 1,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 1,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 6,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 6,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "IdentifierExpression",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 4,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 4,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 1,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 1,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 2,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 2,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Leaves(2)",
                                                        "children": [],
                                                        "text_length": 2,
                                                        "is_leaf": true
                                                    }
                                                ],
                                                "text_length": 35,
                                                "is_leaf": false
                                            }
                                        ],
                                        "text_length": 35,
                                        "is_leaf": false
                                    },
                                    {
                                        "kind": "Error",
                                        "children": [
                                            {
                                                "kind": "Leaves(1)",
                                                "children": [],
                                                "text_length": 0,
                                                "is_leaf": true
                                            }
                                        ],
                                        "text_length": 0,
                                        "is_leaf": false
                                    }
                                ],
                                "text_length": 43,
                                "is_leaf": false
                            },
                            {
                                "kind": "Leaves(1)",
                                "children": [],
                                "text_length": 4,
                                "is_leaf": true
                            }
                        ],
                        "text_length": 47,
                        "is_leaf": false
                    }
                ],
                "text_length": 47,
                "is_leaf": false
            }
        ],
        "text_length": 47,
        "is_leaf": false
    },
    "errors": [
        "Expected 'Identifier' at 4",
        "Expected 'LeftBrace' at 4",
        "Expected 'RightBrace' at 43"
    ]
}