Parse branches

This commit is contained in:
2025-09-07 22:15:25 -06:00
parent 43107e7435
commit 46f2bbcc9b
5 changed files with 136 additions and 54 deletions

View File

@@ -26,6 +26,8 @@ type nonTerminalId =
| NONTERM__startrung
| NONTERM_rung
| NONTERM_steps
| NONTERM_branch
| NONTERM_branch_arms
| NONTERM_instr
| NONTERM_operands
| NONTERM_operand
@@ -40,4 +42,4 @@ val prodIdxToNonTerminal: int -> nonTerminalId
/// This function gets the name of a token as a string
val token_to_string: token -> string
val rung : (FSharp.Text.Lexing.LexBuffer<'cty> -> token) -> FSharp.Text.Lexing.LexBuffer<'cty> -> (Instr list)
val rung : (FSharp.Text.Lexing.LexBuffer<'cty> -> token) -> FSharp.Text.Lexing.LexBuffer<'cty> -> (Rung)