Skip to content

Commit

Permalink
Use common Macro for FBF
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Jan 28, 2025
1 parent 31df50c commit 3ed7fe5
Show file tree
Hide file tree
Showing 28 changed files with 7,813 additions and 5,804 deletions.
494 changes: 292 additions & 202 deletions .output/actual/fbf/il/parseAssemblyApp/Bubblesort.il

Large diffs are not rendered by default.

412 changes: 240 additions & 172 deletions .output/actual/fbf/il/parseAssemblyApp/FindTheNumber.il

Large diffs are not rendered by default.

3,854 changes: 2,174 additions & 1,680 deletions .output/actual/fbf/il/parseAssemblyApp/Groop.il

Large diffs are not rendered by default.

250 changes: 145 additions & 105 deletions .output/actual/fbf/il/parseAssemblyApp/Lightass.il
Original file line number Diff line number Diff line change
@@ -1,106 +1,146 @@
[ Compiler
( Dim
[ "exit"
, "char"
, "seed"
, "temp"
]
)
, Compiler
( LineBreaks 80 )
, Code
( Msg
[ "Welcome"
, "to"
, "Brainfuck"
, "Lightass!"
]
)
, Code Line
, Code
( Msg
[ "To"
, "download"
, "the"
, "original"
, "Lightass"
, "visit:"
, "http://students.ceid.upatras.gr"
]
)
, Code Line
, Code Line
, Code
( Msg
[ "Give"
, "the"
, "plot"
, "character:"
]
)
, Code
( Read "seed" )
, Code Line
, Code
( Msg
[ "Give"
, "me"
, "question."
]
)
, Code Line
, Code
( Copy "seed" "temp" )
, Code
( UnEq
( Literal 1 ) "exit" []
)
, Code
( Read "char" )
, Code
( Add
( Variable "temp" )
( Variable "char" ) "temp"
)
, Code
( IfEq
( Literal 10 ) "char" []
)
, Code
( Mod
( Variable "temp" )
( Literal 10 ) "temp"
)
, Code
( Comp
( Variable "temp" )
( Literal 3 ) "temp"
)
, Code
( IfEq
( Literal 2 ) "temp" []
)
, Code
( Msg [ "Yes." ] )
, Code End
, Code
( IfNotEq
( Literal 2 ) "temp" []
)
, Code
( Msg [ "No." ] )
, Code End
, Code Line
, Code
( Copy "seed" "temp" )
, Code
( Msg
[ "Give"
, "me"
, "question."
]
)
, Code Line
, Code End
, Code End
[ Micro
( Compiler
( Dim
[ "exit"
, "char"
, "seed"
, "temp"
]
)
)
, Micro
( Compiler
( LineBreaks 80 )
)
, Micro
( Code
( Msg
[ "Welcome"
, "to"
, "Brainfuck"
, "Lightass!"
]
)
)
, Micro ( Code Line )
, Micro
( Code
( Msg
[ "To"
, "download"
, "the"
, "original"
, "Lightass"
, "visit:"
, "http://students.ceid.upatras.gr"
]
)
)
, Micro ( Code Line )
, Micro ( Code Line )
, Micro
( Code
( Msg
[ "Give"
, "the"
, "plot"
, "character:"
]
)
)
, Micro
( Code
( Read "seed" )
)
, Micro ( Code Line )
, Micro
( Code
( Msg
[ "Give"
, "me"
, "question."
]
)
)
, Micro ( Code Line )
, Micro
( Code
( Copy "seed" "temp" )
)
, Micro
( Code
( UnEq
( Literal 1 ) "exit" []
)
)
, Micro
( Code
( Read "char" )
)
, Micro
( Code
( Add
( Variable "temp" )
( Variable "char" ) "temp"
)
)
, Micro
( Code
( IfEq
( Literal 10 ) "char" []
)
)
, Micro
( Code
( Mod
( Variable "temp" )
( Literal 10 ) "temp"
)
)
, Micro
( Code
( Comp
( Variable "temp" )
( Literal 3 ) "temp"
)
)
, Micro
( Code
( IfEq
( Literal 2 ) "temp" []
)
)
, Micro
( Code
( Msg [ "Yes." ] )
)
, Micro ( Code End )
, Micro
( Code
( IfNotEq
( Literal 2 ) "temp" []
)
)
, Micro
( Code
( Msg [ "No." ] )
)
, Micro ( Code End )
, Micro ( Code Line )
, Micro
( Code
( Copy "seed" "temp" )
)
, Micro
( Code
( Msg
[ "Give"
, "me"
, "question."
]
)
)
, Micro ( Code Line )
, Micro ( Code End )
, Micro ( Code End )
]
Loading

0 comments on commit 3ed7fe5

Please sign in to comment.