github.com/skycoinproject/nex@v0.0.0-20191231010827-3bb2d0c49bc5/tacky/build.sh (about)

     1  #!/bin/bash
     2  ${NEXBIN:=~/nex} tacky.nex
     3  go tool yacc tacky.y
     4  # Could use nex instead of ed, but that'd be a little gratuitous.
     5  printf '/NEX_END_OF_LEXER_STRUCT/i\np *Tacky\n.\nw\nq\n' | ed -s tacky.nn.go
     6  go build tacky.go tacky.nn.go y.go