aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-07 18:25:31 +0200
committerJulien Dessaux2021-10-07 18:25:31 +0200
commit87fd2aa4190a4af6d18517acc3e4e310733c4e2e (patch)
tree410c15f55d85656388814d0a39285a51edfc79b0
parentAdded submodules with the spec and the mycology test suite (diff)
downloadnimfunge98-87fd2aa4190a4af6d18517acc3e4e310733c4e2e.tar.gz
nimfunge98-87fd2aa4190a4af6d18517acc3e4e310733c4e2e.tar.bz2
nimfunge98-87fd2aa4190a4af6d18517acc3e4e310733c4e2e.zip
Cosmetics
-rw-r--r--src/nimfunge98.nim2
-rw-r--r--src/pointer.nim8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/nimfunge98.nim b/src/nimfunge98.nim
index 6e6efb9..f800062 100644
--- a/src/nimfunge98.nim
+++ b/src/nimfunge98.nim
@@ -39,6 +39,6 @@ if f == nil:
echo "Failed to load ", filename
quit 1
let argv = @[filename]
-var p = NewPointer(argv=argv)
+var p = NewPointer(argv = argv)
let v = NewInterpreter(f, p)[].Run()
quit v
diff --git a/src/pointer.nim b/src/pointer.nim
index d6ce351..91fb8be 100644
--- a/src/pointer.nim
+++ b/src/pointer.nim
@@ -10,12 +10,12 @@ randomize()
type
Pointer* = object
- x, y: int # The pointer's positiont
- dx, dy: int # The pointer's traveling delta
- sox, soy: int # The storage offset
+ x, y: int # The pointer's positiont
+ dx, dy: int # The pointer's traveling delta
+ sox, soy: int # The storage offset
stringMode, lastCharWasSpace: bool # The string mode flags
ss: ref StackStack
- next*: ref Pointer # the next element for multi-threaded funge-98
+ next*: ref Pointer # the next element for multi-threaded funge-98
characterInput*: proc(): int
decimalInput*: proc(): int
characterOutput*: proc(v: int)