Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(201)

Delta Between Two Patch Sets: src/pkg/exp/eval/main.go

Issue 901042: code review 901042: exp/eval: Fix example and add target to Makefile (Closed)
Left Patch Set: Created 14 years, 11 months ago
Right Patch Set: code review 901042: exp/eval: Fix example and add target to Makefile Created 14 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/exp/eval/Makefile ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package main 5 package main
6 6
7 import ( 7 import (
8 "bufio"
8 "exp/eval" 9 "exp/eval"
9 "bufio"
10 "flag" 10 "flag"
11 "go/parser" 11 "go/parser"
12 "go/scanner" 12 "go/scanner"
13 "io/ioutil" 13 "io/ioutil"
14 "os" 14 "os"
15 ) 15 )
16 16
17 var filename = flag.String("f", "", "file to run") 17 var filename = flag.String("f", "", "file to run")
18 18
19 func main() { 19 func main() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 v, err := code.Run() 82 v, err := code.Run()
83 if err != nil { 83 if err != nil {
84 println(err.String()) 84 println(err.String())
85 continue 85 continue
86 } 86 }
87 if v != nil { 87 if v != nil {
88 println(v.String()) 88 println(v.String())
89 } 89 }
90 } 90 }
91 } 91 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b