mirror of
https://github.com/DataKinds/sixty-five-oh-two.git
synced 2024-10-31 13:08:37 +00:00
more readme
This commit is contained in:
parent
18266f7806
commit
ee3119c6c9
10
README.md
10
README.md
@ -4,7 +4,7 @@
|
||||
|
||||
_... shut up, show me the code!_
|
||||
|
||||
Here's some example code utilizing all of the features of the DSL:
|
||||
Here's some example code utilizing all of the features of the eDSL:
|
||||
|
||||
```haskell
|
||||
import SixtyFiveOhTwo.Instruction
|
||||
@ -20,6 +20,12 @@ myProgram = do
|
||||
define "accumulatorLoadNStore" accumulatorLoadNStore
|
||||
call "accumulatorLoadNStore"
|
||||
```
|
||||
(taken from main.hs)
|
||||
|
||||
Here's a fun little snippet that adds 10 to the accumulator using Haskell Monad Magic:
|
||||
|
||||
```haskell
|
||||
test3f2 :: Instruction
|
||||
test3f2 = replicateM_ 10 (inc (Accumulator))
|
||||
```
|
||||
|
||||
More documentation coming soon!
|
||||
|
Loading…
Reference in New Issue
Block a user