Cosmetics
This commit is contained in:
parent
8daf3d58fc
commit
87fd2aa419
2 changed files with 5 additions and 5 deletions
|
@ -39,6 +39,6 @@ if f == nil:
|
||||||
echo "Failed to load ", filename
|
echo "Failed to load ", filename
|
||||||
quit 1
|
quit 1
|
||||||
let argv = @[filename]
|
let argv = @[filename]
|
||||||
var p = NewPointer(argv=argv)
|
var p = NewPointer(argv = argv)
|
||||||
let v = NewInterpreter(f, p)[].Run()
|
let v = NewInterpreter(f, p)[].Run()
|
||||||
quit v
|
quit v
|
||||||
|
|
|
@ -10,12 +10,12 @@ randomize()
|
||||||
|
|
||||||
type
|
type
|
||||||
Pointer* = object
|
Pointer* = object
|
||||||
x, y: int # The pointer's positiont
|
x, y: int # The pointer's positiont
|
||||||
dx, dy: int # The pointer's traveling delta
|
dx, dy: int # The pointer's traveling delta
|
||||||
sox, soy: int # The storage offset
|
sox, soy: int # The storage offset
|
||||||
stringMode, lastCharWasSpace: bool # The string mode flags
|
stringMode, lastCharWasSpace: bool # The string mode flags
|
||||||
ss: ref StackStack
|
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
|
characterInput*: proc(): int
|
||||||
decimalInput*: proc(): int
|
decimalInput*: proc(): int
|
||||||
characterOutput*: proc(v: int)
|
characterOutput*: proc(v: int)
|
||||||
|
|
Reference in a new issue