RCHQ9+/Go: Difference between revisions

m
Fixed syntax highlighting.
(Go solution)
 
m (Fixed syntax highlighting.)
 
(One intermediate revision by one other user not shown)
Line 1:
{{implementation|HQ9+}}{{collection|RCHQ9+}}
This interpreter accepts HQ9+ source as the first command line argument.
<langsyntaxhighlight lang="go">package main
 
import (
Line 71:
 
var a int
var q = `</langsyntaxhighlight>
{{out|Example session building and running program}}
(Gosh that made cut and paste easier...cut once, paste twice...)
 
Anyway, example session:
<pre>
$ go build HQ9+.go
$ ./HQ9+ H+H
hello, world
hello, world
</pre>
{{out|Another, showing compile link and run ofrunning Q output}}
<pre>
$ ./HQ9+ Q >q.go
$ 8ggo run q.go H
$ 8l q.8
$ 8.out H
hello, world
</pre>
9,476

edits