1
This commit is contained in:
parent
1bbc80de29
commit
858db4dc0e
4 changed files with 109 additions and 29 deletions
17
ass3/zbirnik/lib/drugiPrehod.ml
Normal file
17
ass3/zbirnik/lib/drugiPrehod.ml
Normal 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*)
|
||||
Loading…
Add table
Add a link
Reference in a new issue