Skip to content

Commit

Permalink
it works completely like no bugs at all
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis committed Jan 25, 2022
1 parent 9005c5f commit b77b9b9
Show file tree
Hide file tree
Showing 16 changed files with 3,393 additions and 5 deletions.
45 changes: 45 additions & 0 deletions comp/class.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
-- ----- VTABLES -----
ALLOC 1
DUPN 1
PUSHA Foo_5_print
STORE 0
-- ----- STATIC ATTRIBS -----
PUSHN 0
-- ----- MAIN INSTRUCTION -----
START
PUSHN 1
PUSHN 0
ALLOC 1
DUPN 1
PUSHG 0
STORE 0
PUSHA _CTOR_Foo_
CALL
POPN 0
STOREL 0
PUSHI 0
PUSHL 0
DUPN 1
LOAD 0
LOAD 0
CALL
POPN 1
POPN 1
POPN 0
POPN 1
STOP
-- ----- FUNCTIONS -----
_CTOR_Foo_: NOP
PUSHN 0
POPN 0
RETURN
Foo_5_print: NOP
PUSHN 0
PUSHS "hello"
DUPN 1
WRITES
PUSHS "\n"
WRITES
POPN 1
POPN 0
RETURN
Empty file added comp/err1.txt
Empty file.
Empty file added comp/err2.txt
Empty file.
Empty file added comp/err3.txt
Empty file.
Empty file added comp/err4.txt
Empty file.
Empty file added comp/errCast.txt
Empty file.
Empty file added comp/errCycle.txt
Empty file.
Empty file added comp/errResult.txt
Empty file.
Loading

0 comments on commit b77b9b9

Please sign in to comment.