summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pgset/main.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/pgset/main.go b/cmd/pgset/main.go
index f871f2b..b58a85e 100644
--- a/cmd/pgset/main.go
+++ b/cmd/pgset/main.go
@@ -7,6 +7,7 @@ import (
"os"
"pgset/lib/parse"
"strings"
+ "pgset/lib/translate"
)
func main() {
@@ -22,8 +23,11 @@ func main() {
if err != nil {
log.Fatal(err)
}
- fmt.Println(document[0])
- //neatroff(tree)
- //tex(tree)
- //sile(tree)
+ if document == nil {
+ fmt.Println("o");
+ }
+ err = translate.Translate(document, "Neatroff", os.Stdout)
+ if err != nil {
+ log.Fatal("wow")
+ }
}