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": 34,
    "ast_structure": {
        "kind": "SourceFile",
        "children": [
            {
                "kind": "Function",
                "children": [
                    {
                        "kind": "Function",
                        "children": [
                            {
                                "kind": "ParameterList",
                                "children": [
                                    {
                                        "kind": "Leaves(1)",
                                        "children": [],
                                        "text_length": 1,
                                        "is_leaf": true
                                    }
                                ],
                                "text_length": 1,
                                "is_leaf": false
                            },
                            {
                                "kind": "BlockExpression",
                                "children": [
                                    {
                                        "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": "LoopExpression",
                                                        "children": [
                                                            {
                                                                "kind": "LoopExpression",
                                                                "children": [
                                                                    {
                                                                        "kind": "BlockExpression",
                                                                        "children": [
                                                                            {
                                                                                "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": 10,
                                                                                                        "is_leaf": true
                                                                                                    }
                                                                                                ],
                                                                                                "text_length": 10,
                                                                                                "is_leaf": false
                                                                                            },
                                                                                            {
                                                                                                "kind": "Error",
                                                                                                "children": [
                                                                                                    {
                                                                                                        "kind": "Leaves(1)",
                                                                                                        "children": [],
                                                                                                        "text_length": 5,
                                                                                                        "is_leaf": true
                                                                                                    }
                                                                                                ],
                                                                                                "text_length": 5,
                                                                                                "is_leaf": false
                                                                                            },
                                                                                            {
                                                                                                "kind": "Error",
                                                                                                "children": [
                                                                                                    {
                                                                                                        "kind": "Leaves(1)",
                                                                                                        "children": [],
                                                                                                        "text_length": 6,
                                                                                                        "is_leaf": true
                                                                                                    }
                                                                                                ],
                                                                                                "text_length": 6,
                                                                                                "is_leaf": false
                                                                                            },
                                                                                            {
                                                                                                "kind": "Leaves(3)",
                                                                                                "children": [],
                                                                                                "text_length": 3,
                                                                                                "is_leaf": true
                                                                                            }
                                                                                        ],
                                                                                        "text_length": 24,
                                                                                        "is_leaf": false
                                                                                    }
                                                                                ],
                                                                                "text_length": 24,
                                                                                "is_leaf": false
                                                                            },
                                                                            {
                                                                                "kind": "Error",
                                                                                "children": [
                                                                                    {
                                                                                        "kind": "Leaves(1)",
                                                                                        "children": [],
                                                                                        "text_length": 2,
                                                                                        "is_leaf": true
                                                                                    }
                                                                                ],
                                                                                "text_length": 2,
                                                                                "is_leaf": false
                                                                            },
                                                                            {
                                                                                "kind": "Leaves(1)",
                                                                                "children": [],
                                                                                "text_length": 1,
                                                                                "is_leaf": true
                                                                            }
                                                                        ],
                                                                        "text_length": 28,
                                                                        "is_leaf": false
                                                                    },
                                                                    {
                                                                        "kind": "Leaves(1)",
                                                                        "children": [],
                                                                        "text_length": 4,
                                                                        "is_leaf": true
                                                                    }
                                                                ],
                                                                "text_length": 32,
                                                                "is_leaf": false
                                                            }
                                                        ],
                                                        "text_length": 32,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Error",
                                                        "children": [
                                                            {
                                                                "kind": "Leaves(1)",
                                                                "children": [],
                                                                "text_length": 0,
                                                                "is_leaf": true
                                                            }
                                                        ],
                                                        "text_length": 0,
                                                        "is_leaf": false
                                                    },
                                                    {
                                                        "kind": "Leaves(1)",
                                                        "children": [],
                                                        "text_length": 1,
                                                        "is_leaf": true
                                                    }
                                                ],
                                                "text_length": 39,
                                                "is_leaf": false
                                            }
                                        ],
                                        "text_length": 39,
                                        "is_leaf": false
                                    }
                                ],
                                "text_length": 40,
                                "is_leaf": false
                            },
                            {
                                "kind": "Leaves(1)",
                                "children": [],
                                "text_length": 2,
                                "is_leaf": true
                            }
                        ],
                        "text_length": 43,
                        "is_leaf": false
                    }
                ],
                "text_length": 43,
                "is_leaf": false
            }
        ],
        "text_length": 43,
        "is_leaf": false
    },
    "errors": [
        "Expected 'Identifier' at 2",
        "Expected 'LeftParen' at 2",
        "Expected 'LeftBrace' at 9",
        "Expected 'LeftBrace' at 21",
        "Expected 'RightBrace' at 49",
        "Expected 'RightBrace' at 49"
    ]
}