Skip to main content

Module heuristic_parser

Module heuristic_parser 

Source
Expand description

§Ultra Heuristic Near-AST Parser v3

This version upgrades the parser from token-level heuristics to a structure-aware near-AST extractor.

§Core idea

Instead of parsing grammar, we reconstruct:

  • scopes (brace trees)
  • declarations (class/function/namespace)
  • call sites
  • qualified names
  • structural blocks

§Design goals

  • near‑AST accuracy without tree‑sitter
  • robust C++/JS/Rust style class detection
  • template / inheritance tolerant scanning
  • O(n) linear pass
  • zero unwrap / zero panic

Structs§

Token 🔒

Enums§

TokenKind 🔒

Functions§

build_qualified 🔒
build_scope_map 🔒
dedup 🔒
extract_calls 🔒
extract_namespaces 🔒
extract_structures 🔒
find_structural_name 🔒
is_class_keyword 🔒
is_function_keyword 🔒
is_modifier_word 🔒
is_noise_word 🔒
is_valid_call 🔒
looks_like_markup 🔒
make_node 🔒
parse_universal
Entry point for universal parsing.
push 🔒
skip_template 🔒
tokenize 🔒