This commit is contained in:
Jaka Furlan 2025-12-10 16:21:03 +01:00
parent 1bbc80de29
commit 858db4dc0e
4 changed files with 109 additions and 29 deletions

View file

@ -0,0 +1,17 @@
(*funkcija drugega prehoda*)
open Simtab
open SemanticAnalyzer
let drugiPrehod (ifl : lineSemantic list) (simtab : symtab) =
let prviUkaz, ostaliUkazi =
match ifl with
| [] -> failwith "empty code"
| x :: xs -> x, xs
in
(*if Opcode == start then*)
let _ =
if prviUkaz.opcode = START then
(*TODO write listing line*)
in
(*TODO write header record to object program*)
(*TODO initialize first text record*)