Commit fc90fb8c authored by Russ Cox's avatar Russ Cox

rename units -> units.txt.

add makefile rules to build a binary named units as a demo.

R=r
DELTA=1257  (659 added, 597 deleted, 1 changed)
OCL=34528
CL=34530
parent 8f2bf201
......@@ -10,3 +10,8 @@ GOFILES=\
include $(GOROOT)/src/Make.cmd
units: goyacc units.y
goyacc units.y
$(GC) y.go
$(LD) -o units y.$O
......@@ -21,6 +21,8 @@
// / 5.5474878e-13
// you have:
package main
import
(
"flag";
......@@ -294,7 +296,7 @@ main()
flag.Parse();
file = "units";
file = "units.txt";
if flag.NArg() > 0 {
file = flag.Arg(0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment