Skip to content

Commit

Permalink
Add ASQ - Assembler of SubLeq
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Dec 13, 2021
1 parent 39777fc commit ab5c0cb
Show file tree
Hide file tree
Showing 87 changed files with 33,746 additions and 331 deletions.

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions .output/actual/examples/asq/il/parseAssemblyText/mazonka/echo.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
[ Instruction Code
[ ItemExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
]
, Instruction Data
[ ItemLabel "a"
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
]
]
214 changes: 214 additions & 0 deletions .output/actual/examples/asq/il/parseAssemblyText/mazonka/helloWorld.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
[ Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "p" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
]
, Instruction Code
[ ItemLabel "a"
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code []
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "m1" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "p" )
)
)
]
, Instruction Code []
, Instruction Code []
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "E" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
]
, Instruction Code []
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "p" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "a" )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code []
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Z" )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
]
, Instruction Code []
, Instruction Data
[ ItemLabel "p"
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "H" )
)
)
, ItemLabel "Z"
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
, ItemLabel "m1"
, ItemExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
]
, Instruction Code []
, Instruction Data
[ ItemLabel "H"
, ItemString "Hello, World!
"
, ItemLabel "E"
, ItemExpression
( Expression Nothing
( TermSymbol
( Variable "E" )
)
)
]
]
92 changes: 92 additions & 0 deletions .output/actual/examples/asq/il/parseAssemblyText/mazonka/hi.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[ Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Variable "Hi" )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code
[ ItemExpression
( Expression
( Just
( PMExpression Plus
( Expression Nothing
( TermSymbol
( Literal 1 )
)
)
)
)
( TermSymbol
( Variable "Hi" )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code
[ ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 0 )
)
)
, ItemExpression
( Expression Nothing
( TermExpression
( Expression Nothing
( TermMinus
( TermSymbol
( Literal 1 )
)
)
)
)
)
]
, Instruction Code []
, Instruction Data
[ ItemLabel "Hi"
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 72 )
)
)
, ItemExpression
( Expression Nothing
( TermSymbol
( Literal 105 )
)
)
]
]
Loading

0 comments on commit ab5c0cb

Please sign in to comment.