Expand description
Structural extraction for the brace-scoped languages.
Rust, Go, Java, C#, C, C++ and Solidity differ in which keyword introduces
a declaration and how a module is named, and agree on everything else:
braces open bodies, a name followed by a parameter list is callable, and a
call is an identifier followed by (. Those differences are tables, so one
walk serves all seven instead of seven near-identical scanners - and adding
the next such language costs a table, not a scanner.
Functionsยง
- extract
- Extracts structural facts from one brace-scoped source file.