Parse multiple instructions

This commit is contained in:
2025-09-07 21:58:37 -06:00
parent 925e486e65
commit 43107e7435
4 changed files with 117 additions and 58 deletions

View File

@@ -23,7 +23,9 @@ type tokenId =
| TOKEN_end_of_input
| TOKEN_error
type nonTerminalId =
| NONTERM__startinstr
| NONTERM__startrung
| NONTERM_rung
| NONTERM_steps
| NONTERM_instr
| NONTERM_operands
| NONTERM_operand
@@ -38,4 +40,4 @@ val prodIdxToNonTerminal: int -> nonTerminalId
/// This function gets the name of a token as a string
val token_to_string: token -> string
val instr : (FSharp.Text.Lexing.LexBuffer<'cty> -> token) -> FSharp.Text.Lexing.LexBuffer<'cty> -> (Instr)
val rung : (FSharp.Text.Lexing.LexBuffer<'cty> -> token) -> FSharp.Text.Lexing.LexBuffer<'cty> -> (Instr list)