Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
fa860653
Commit
fa860653
authored
Apr 11, 2010
by
Evan Shaw
Committed by
Russ Cox
Apr 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/eval: Fix example and add target to Makefile
R=rsc CC=golang-dev
https://golang.org/cl/901042
parent
ae729a43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Makefile
src/pkg/exp/eval/Makefile
+6
-0
main.go
src/pkg/exp/eval/main.go
+4
-4
No files found.
src/pkg/exp/eval/Makefile
View file @
fa860653
...
...
@@ -21,3 +21,9 @@ GOFILES=\
world.go
\
include
../../../Make.pkg
main.$O
:
main.go $(pkgdir)/$(TARG).a
$(QUOTED_GOBIN)
/
$(GC)
$<
eval
:
main.$O
$(QUOTED_GOBIN)
/
$(LD)
-o
$@
$<
src/pkg/exp/eval/main.go
View file @
fa860653
...
...
@@ -5,12 +5,12 @@
package
main
import
(
"./_obj/eval"
"bufio"
"exp/eval"
"flag"
"go/parser"
"go/scanner"
"io"
"io
/ioutil
"
"os"
)
...
...
@@ -25,7 +25,7 @@ func main() {
println
(
err
.
String
())
os
.
Exit
(
1
)
}
file
,
err
:=
parser
.
ParseFile
(
*
filename
,
data
,
0
)
file
,
err
:=
parser
.
ParseFile
(
*
filename
,
data
,
nil
,
0
)
if
err
!=
nil
{
println
(
err
.
String
())
os
.
Exit
(
1
)
...
...
@@ -41,7 +41,7 @@ func main() {
}
os
.
Exit
(
1
)
}
_
,
err
:
=
code
.
Run
()
_
,
err
=
code
.
Run
()
if
err
!=
nil
{
println
(
err
.
String
())
os
.
Exit
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment