Skip to main content

Module parser

Module parser 

Source
Expand description

Recursive-descent shell parser for the $fy translator.

Produces a plain node tree which crate::fy::formalizer then materialises as a meta-language links network. Keeping the two steps apart means the grammar stays readable and the network construction stays mechanical.

This parser is deliberately separate from crate::shell_parser, which parses a single command line for the runtime. $fy needs whole-script structure: comments, blank lines, control flow and function definitions.

Structs§

Node
A parsed shell construct.

Functions§

parse_shell_script
Parses a shell script into a plain node tree rooted at a script node.