Timeline for Creating a HQ9+ interpreter
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2016 at 0:53 | history | edited | Oliver Ni | CC BY-SA 3.0 |
added 1 character in body
|
Jan 5, 2015 at 17:16 | comment | added | ProgramFOX | That works indeed. I was using the wrong way to execute the HQ9+ commands. Thanks for explaining me! | |
Jan 5, 2015 at 17:15 | comment | added | proud haskeller |
@ProgramFOX main doesn't work because the newline appended is not a legal command. That's why i recommended using g instead. As for g , does putStrLn $ g "H" not work properly?
|
|
Jan 5, 2015 at 16:46 | comment | added | ProgramFOX |
I see. I still fail at trying to run it though; when I load the file and call main , it says that the source code contains invalid characters when I try to execute H . When I try to run g instead of main , it immediately gives an error.
|
|
Jan 4, 2015 at 20:13 | comment | added | proud haskeller |
@ProgramFOX sorry it took long :-). you're not using GHCi properly. in GHCi you can't irectly input definitions as it expects expressions. you can either use a let to insert definitions (this breaks when inserting multiple definitions not separated by ; ) or run the code from a file.
|
|
Jan 2, 2015 at 9:20 | comment | added | proud haskeller | @ProgramFOX i have no idea... Ill check when i can | |
Jan 2, 2015 at 8:47 | comment | added | ProgramFOX |
How should I run it? I tried pasting it in WinGHCi, but I get <interactive>:8:5: parse error on input ‘=’ .
|
|
Jan 1, 2015 at 20:54 | history | answered | proud haskeller | CC BY-SA 3.0 |