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
bc641d1e
Commit
bc641d1e
authored
Oct 16, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- more robust TokenString implementation
R=r OCL=17319 CL=17319
parent
71696ac0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
Makefile.iant
usr/gri/pretty/Makefile.iant
+13
-16
scanner.go
usr/gri/pretty/scanner.go
+1
-1
No files found.
usr/gri/pretty/Makefile.iant
View file @
bc641d1e
...
@@ -8,6 +8,19 @@ GO = /home/iant/go/bin/gccgo
...
@@ -8,6 +8,19 @@ GO = /home/iant/go/bin/gccgo
LDFLAGS
=
-Wl
,-R,/home/iant/go/lib
LDFLAGS
=
-Wl
,-R,/home/iant/go/lib
PRETTY_OBJS
=
\
node.o
\
pretty.o
\
parser.o
\
platform.o
\
printer.o
\
scanner.o
\
utils.o
\
flag.o
\
fmt.o
\
pretty
:
$(PRETTY_OBJS)
$(GO)
$(LDFLAGS)
-o
$@
$(PRETTY_OBJS)
test
:
pretty
test
:
pretty
pretty
-s
*
.go
pretty
-s
*
.go
...
@@ -47,19 +60,3 @@ fmt.o:
...
@@ -47,19 +60,3 @@ fmt.o:
.go.o
:
.go.o
:
$(GO)
-O2
-c
-g
$<
$(GO)
-O2
-c
-g
$<
PRETTY_OBJS
=
\
node.o
\
pretty.o
\
parser.o
\
platform.o
\
printer.o
\
scanner.o
\
utils.o
\
flag.o
\
fmt.o
\
pretty
:
$(PRETTY_OBJS)
$(GO)
$(LDFLAGS)
-o
$@
$(PRETTY_OBJS)
usr/gri/pretty/scanner.go
View file @
bc641d1e
...
@@ -201,7 +201,7 @@ export func TokenString(tok int) string {
...
@@ -201,7 +201,7 @@ export func TokenString(tok int) string {
case
VAR
:
return
"var"
;
case
VAR
:
return
"var"
;
}
}
panic
(
"UNREACHABLE"
)
;
return
"token("
+
Utils
.
IntToString
(
tok
,
10
)
+
")"
;
}
}
...
...
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