[gogc] 5 new revisions pushed by bytbox on 2010-08-20 22:47 GMT

1 view
Skip to first unread message

go...@googlecode.com

unread,
Aug 20, 2010, 6:48:14 PM8/20/10
to go...@googlegroups.com
5 new revisions:

Revision: 49da9bbb2b
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:06:56 2010
Log: added docs/paper to Makefile system
http://code.google.com/p/gogc/source/detail?r=49da9bbb2b

Revision: 504c3a4e7b
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:07:50 2010
Log: got rid of redundant docs/latex
http://code.google.com/p/gogc/source/detail?r=504c3a4e7b

Revision: 79a19556fc
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:12:28 2010
Log: removing ancient build files
http://code.google.com/p/gogc/source/detail?r=79a19556fc

Revision: 5713fb3238
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:14:27 2010
Log: removing more empty build scripts
http://code.google.com/p/gogc/source/detail?r=5713fb3238

Revision: 19bca6f0ea
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:15:52 2010
Log: moved gogo to gogc
http://code.google.com/p/gogc/source/detail?r=19bca6f0ea

==============================================================================
Revision: 49da9bbb2b
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:06:56 2010
Log: added docs/paper to Makefile system
http://code.google.com/p/gogc/source/detail?r=49da9bbb2b

Added:
/docs/Makefile
/docs/latex/Makefile
/docs/paper/Makefile
Modified:
/.hgignore
/Makefile
/docs/paper/latex/Makefile

=======================================
--- /dev/null
+++ /docs/Makefile Fri Aug 20 14:06:56 2010
@@ -0,0 +1,11 @@
+# Copyright 2010 The GoGC Authors. All rights reserved.
+# Use of this source code is governed by the MIT
+# license that can be found in the LICENSE file.
+
+.PHONY: all clean
+
+all:
+ make -C paper
+
+clean:
+ make -C paper clean
=======================================
--- /dev/null
+++ /docs/paper/Makefile Fri Aug 20 14:06:56 2010
@@ -0,0 +1,11 @@
+# Copyright 2010 The GoGC Authors. All rights reserved.
+# Use of this source code is governed by the MIT
+# license that can be found in the LICENSE file.
+
+.PHONY: all clean
+
+all:
+ make -C latex
+
+clean:
+ make -C latex clean
=======================================
--- /.hgignore Tue Aug 17 18:26:53 2010
+++ /.hgignore Fri Aug 20 14:06:56 2010
@@ -9,3 +9,10 @@
docs/latex/gogo.out
docs/latex/gogo.pdf
docs/latex/gogo.toc
+*.aux
+*.bbl
+*.blg
+*.log
+*.out
+*.pdf
+*.toc
=======================================
--- /Makefile Fri Aug 20 12:05:04 2010
+++ /Makefile Fri Aug 20 14:06:56 2010
@@ -5,6 +5,7 @@
.PHONY: all clean install format

all: gogc
+ make -C docs

include ${GOROOT}/src/Make.${GOARCH}
include Makefile.info
@@ -19,5 +20,6 @@

clean:
rm -f gogc
+ make -C docs clean

include Makefile.deps
=======================================
--- /docs/paper/latex/Makefile Wed Aug 18 11:27:37 2010
+++ /docs/paper/latex/Makefile Fri Aug 20 14:06:56 2010
@@ -1,4 +1,6 @@
-all:
+all: gogo.pdf
+
+gogo.pdf:
pdflatex gogo.tex
bibtex gogo
pdflatex gogo.tex

==============================================================================
Revision: 504c3a4e7b
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:07:50 2010
Log: got rid of redundant docs/latex
http://code.google.com/p/gogc/source/detail?r=504c3a4e7b

Deleted:
/docs/latex/Makefile


==============================================================================
Revision: 79a19556fc
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:12:28 2010
Log: removing ancient build files
http://code.google.com/p/gogc/source/detail?r=79a19556fc

Deleted:
/src/clean
/src/compile_all
/src/compile_lib
/src/create_fib

=======================================
--- /src/clean Tue Jun 22 11:11:47 2010
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-rm -f gogo-*
-rm -f _final_*
-rm -f fib
-rm -f _go*
-cd libgogo
-make clean > /dev/null
-cd ..
-make clean > /dev/null
=======================================
--- /src/compile_all Mon Jun 21 10:56:01 2010
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-./gogo -c \
-libgogo/convert.go \
-libgogo/convert_amd64.s \
-libgogo/io.go \
-libgogo/io_amd64.s \
-libgogo/list.go \
-libgogo/memmgr.go \
-libgogo/memmgr_amd64.s \
-libgogo/strlist.go \
-libgogo/symbol.go \
-libgogo/symbol_amd64.s \
-libgogo/string.go \
-libgogo/string_amd64.s \
-libgogo/item.go \
-libgogo/item_amd64.s \
-libgogo/libgogo.go \
-libgogo/libgogo_amd64.s \
-libgogo/stack.go \
-globals.go \
-token.go \
-symtable.go \
-parser.go \
-gogo.go \
-asm_out.go \
-inspector.go \
-codegen.go \
-gen-arith.go \
-gen-assign.go \
-gen-cond.go \
-gen-const.go \
-gen-expr.go \
-gen-fcn.go \
-gen-for.go \
-gen-if.go \
-linker.go \
-parse-utils.go \
-scanner.go \
-utils.go
=======================================
--- /src/compile_lib Sun Jun 20 04:06:32 2010
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-./gogo -c fib.go libgogo/convert.go libgogo/convert_amd64.s libgogo/io.go
libgogo/io_amd64.s libgogo/list.go libgogo/memmgr.go libgogo/memmgr_amd64.s
libgogo/strlist.go libgogo/symbol.go libgogo/symbol_amd64.s
libgogo/string.go libgogo/string_amd64.s libgogo/item.go
libgogo/item_amd64.s libgogo/libgogo.go libgogo/libgogo_amd64.s
=======================================
--- /src/create_fib Tue Jun 22 11:11:47 2010
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-if [ $# -ne 1 ]; then
- echo -e "Usage: $prog <compiler/linker>"
- exit 1;
-fi
-
-# Text color variables
-txtund=$(tput sgr 0 1) # Underline
-txtbld=$(tput bold) # Bold
-txtred=$(tput setaf 1) # Red
-txtgrn=$(tput setaf 2) # Green
-txtylw=$(tput setaf 3) # Yellow
-txtblu=$(tput setaf 4) # Blue
-txtpur=$(tput setaf 5) # Purple
-txtcyn=$(tput setaf 6) # Cyan
-txtwht=$(tput setaf 7) # White
-txtrst=$(tput sgr0) # Text reset
-txtund=$(tput sgr 0 1) # Underline
-txtbld=$(tput bold) # Bold
-bldred=${txtbld}$(tput setaf 1) # red
-bldblu=${txtbld}$(tput setaf 4) # blue
-bldwht=${txtbld}$(tput setaf 7) # white
-txtrst=$(tput sgr0) # Reset
-info=${txtgrn}*${txtrst} # Feedback
-pass=${bldblu}*${txtrst}
-warn=${bldred}!${txtrst}
-
-COMPILE_FIB=" \
--c fib.go \
-libgogo/convert.go \
-libgogo/convert_amd64.s \
-libgogo/io.go \
-libgogo/io_amd64.s \
-libgogo/list.go \
-libgogo/memmgr.go \
-libgogo/memmgr_amd64.s \
-libgogo/strlist.go \
-libgogo/symbol.go \
-libgogo/symbol_amd64.s \
-libgogo/string.go \
-libgogo/string_amd64.s \
-libgogo/item.go \
-libgogo/item_amd64.s \
-libgogo/libgogo.go \
-libgogo/libgogo_amd64.s \
-"
-
-LINK_FIB=" \
--l _gogo_.sog \
-"
-
-echo ""
-echo ">>> ${txtbld} Creating fibonacci sample using '$1'${txtrst}"
-echo ""
-CMD="./$1 $COMPILE_FIB"
-echo $CMD
-TIME=$(time $CMD)
-echo $TIME
-CMD="./$1 $LINK_FIB"
-echo $CMD
-TIME=$(time $CMD)
-echo $TIME
-CMD="6a _final_.sog"
-echo $CMD
-$($CMD)
-CMD="6l _final_.sog.6"
-echo $CMD
-$($CMD)
-CMD="mv 6.out fib"
-echo $CMD
-$($CMD)

==============================================================================
Revision: 5713fb3238
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:14:27 2010
Log: removing more empty build scripts
http://code.google.com/p/gogc/source/detail?r=5713fb3238

Deleted:
/src/sc
/src/sc_test.sh

=======================================
--- /src/sc Tue Aug 17 09:58:38 2010
+++ /dev/null
@@ -1,186 +0,0 @@
-#!/bin/sh
-
-# Copyright 2009 The GoGC Authors. All rights reserved.
-# Use of this source code is governed by the MIT
-# license that can be found in the LICENSE file.
-
-# Text color variables
-txtund=$(tput sgr 0 1) # Underline
-txtbld=$(tput bold) # Bold
-txtred=$(tput setaf 1) # Red
-txtgrn=$(tput setaf 2) # Green
-txtylw=$(tput setaf 3) # Yellow
-txtblu=$(tput setaf 4) # Blue
-txtpur=$(tput setaf 5) # Purple
-txtcyn=$(tput setaf 6) # Cyan
-txtwht=$(tput setaf 7) # White
-txtrst=$(tput sgr0) # Text reset
-txtund=$(tput sgr 0 1) # Underline
-txtbld=$(tput bold) # Bold
-bldred=${txtbld}$(tput setaf 1) # red
-bldblu=${txtbld}$(tput setaf 4) # blue
-bldwht=${txtbld}$(tput setaf 7) # white
-txtrst=$(tput sgr0) # Reset
-info=${txtgrn}*${txtrst} # Feedback
-pass=${bldblu}*${txtrst}
-warn=${bldred}!${txtrst}
-
-
-COMPILE_ALL=" \
--c \
-libgogo/convert.go \
-libgogo/convert_amd64.s \
-libgogo/io.go \
-libgogo/io_amd64.s \
-libgogo/list.go \
-libgogo/memmgr.go \
-libgogo/memmgr_amd64.s \
-libgogo/strlist.go \
-libgogo/symbol.go \
-libgogo/symbol_amd64.s \
-libgogo/string.go \
-libgogo/string_amd64.s \
-libgogo/item.go \
-libgogo/item_amd64.s \
-libgogo/libgogo.go \
-libgogo/libgogo_amd64.s \
-libgogo/stack.go \
-globals.go \
-token.go \
-symtable.go \
-parser.go \
-gogo.go \
-asm_out.go \
-inspector.go \
-codegen.go \
-gen-arith.go \
-gen-assign.go \
-gen-cond.go \
-gen-const.go \
-gen-expr.go \
-gen-fcn.go \
-gen-for.go \
-gen-if.go \
-linker.go \
-parse-utils.go \
-scanner.go \
-utils.go \
-"
-
-LINK_ALL=" \
--l \
-_gogo_.sog \
-"
-
-function clean() {
- echo ""
- echo ">>> ${txtbld}Cleaning${txtrst}"
- echo ""
- cd libgogo
- make clean
- cd ..
- make clean
-}
-
-function bootstrap() {
- echo ""
- echo ">>> ${txtbld}Bootstrapping${txtrst}"
- echo ""
- cd libgogo
- make
- cd ..
- make
-}
-
-function prepare() {
- echo ""
- echo ">>> ${txtbld}Preparing compilation${txtrst}"
- echo ""
- CMD="mv $1 $2"
- echo $CMD
- $($CMD)
-}
-
-function compile() {
- echo ""
- echo ">>> ${txtbld}Compiling compiler${txtrst} ($1 => _gogo_.sog)"
- echo ""
- CMD="./$1 $COMPILE_ALL"
- echo $CMD
- TIME=$(time $CMD)
- echo $TIME
-}
-
-function link() {
- echo ""
- echo ">>> ${txtbld}Linking compiler${txtrst} ($1 => _final_.sog)"
- echo ""
- CMD="./$1 $LINK_ALL"
- echo $CMD
- TIME=$(time $CMD)
- echo $TIME
-}
-
-function save() {
- echo ""
- echo ">>> ${txtbld}Saving output for fixpoint test${txtrst} (=>
_final_$1_.sog)"
- echo ""
- CMD="cp _final_.sog _final_$1_.sog"
- echo $CMD
- $($CMD)
-}
-
-function assemble() {
- echo ""
- echo ">>> ${txtbld}Assembly to Linux amd64 ELF${txtrst} (=> gogo-$1)"
- echo ""
- CMD="6a _final_.sog"
- echo $CMD
- $($CMD)
- CMD="6l _final_.sog.6"
- echo $CMD
- $($CMD)
- CMD="mv 6.out gogo-$1"
- echo $CMD
- $($CMD)
-}
-
-function fixpointtest() {
- echo ""
- echo ">>> ${txtbld}Fixpoint test${txtrst}"
- echo ""
- CMD="diff -u _final_$1_.sog _final_$2_.sog"
- echo $CMD
- $($CMD)
-}
-
-
-clean
-bootstrap
-prepare gogo gogo-bootstrapped
-
-COMPILER=gogo-bootstrapped
-CNT=1
-while [ 1 ]; do
- compile $COMPILER
- link $COMPILER
- save $CNT
- assemble $CNT
-
- if [ $CNT -gt 1 ]; then
- fixpointtest $(( $CNT-1 )) $CNT
- fi
-
- echo ""
- echo ""
- echo -n "--- ${txtbld}Created 'gogo-$CNT'. One more iteration?${txtrst}
[y/N]: "
- read -n1 -s input
- echo ""
- if [ -z $input ] || test $input != "y" ; then
- echo "Exiting."
- exit
- fi
- echo ""
- COMPILER=gogo-$CNT
- CNT=$(( $CNT + 1 ))
-done
=======================================
--- /src/sc_test.sh Thu May 20 04:56:10 2010
+++ /dev/null
@@ -1,1 +0,0 @@
-(make > /dev/null) && (./gogo -p libgogo/*.go *.go)

==============================================================================
Revision: 19bca6f0ea
Author: Scott Lawrence <byt...@gmail.com>
Date: Fri Aug 20 14:15:52 2010
Log: moved gogo to gogc
http://code.google.com/p/gogc/source/detail?r=19bca6f0ea

Added:
/src/gogc.go
Deleted:
/src/gogo.go
Modified:
/.hgignore
/src/Makefile

=======================================
--- /dev/null
+++ /src/gogc.go Fri Aug 20 14:15:52 2010
@@ -0,0 +1,142 @@
+// Copyright 2010 The GoGC Authors. All rights reserved.
+// Use of this source code is governed by the MIT
+// license that can be found in the LICENSE file.
+
+package main
+
+import "./libgogo"
+
+//
+// Entry point of the compiler
+//
+func main() {
+ var errno uint64
+ var i uint64
+ var j uint64
+ var k uint64
+ var singleChar byte
+
+ libgogo.GetArgv()
+
+ ParseOption()
+
+ if libgogo.Argc > 40 {
+ libgogo.ExitError("Cannot compile more than 38 files at once", 1)
+ }
+
+ InitSymbolTable() //Initialize symbol table
+ InitFreeRegisters() //Init registers for code generation
+
+ ResetCode()
+
+ for i = 2; i < libgogo.Argc; i = i + 1 {
+ curFileIndex = i - 2
+ fileInfo[curFileIndex].filename = libgogo.Argv[i]
+ fileInfo[curFileIndex].lineCounter = 1
+ fileInfo[curFileIndex].charCounter = 1
+
+ fileInfo[curFileIndex].fd = libgogo.FileOpen(libgogo.Argv[i], 0)
+ if fileInfo[curFileIndex].fd == 0 {
+ GlobalError("Cannot open file.")
+ }
+ }
+ fileInfoLen = i - 2
+
+ if (Compile == 0) || (Compile == 1) { // Compile == 0|1 => Parse/Compile
+ for curFileIndex = 0; curFileIndex < fileInfoLen; curFileIndex =
curFileIndex + 1 {
+ i = libgogo.StringLength(fileInfo[curFileIndex].filename)
+ if i > 2 { //Check for assembly files
+ j = i - 2
+ k = i - 1
+ if (Compile == 1) && (fileInfo[curFileIndex].filename[j] == '.') &&
(fileInfo[curFileIndex].filename[k] == 's') {
+ // Assembly file: compile if in compiler mode
+ if curFileIndex == 0 {
+ GlobalError("The first file in the list cannot be an assembly file")
+ }
+ for singleChar = libgogo.GetChar(fileInfo[curFileIndex].fd);
singleChar != 0; singleChar = libgogo.GetChar(fileInfo[curFileIndex].fd) {
//Copy file to output character by character
+ /* middot '·' is U+00C7 => UTF-8: C2B7*/
+ if singleChar != 194 /*C2*/ {
+ if singleChar == 183 /*B7*/ { //Prepend package name
+ PrintCodeOutput(CurrentPackage)
+ PrintCodeOutputChar(194)
+ PrintCodeOutputChar(183)
+ } else {
+ PrintCodeOutputChar(singleChar)
+ }
+ }
+ }
+ } else {
+ // Go file: parse and/or compile
+ Parse()
+ }
+ } else { //Go file: parse and/or compile
+ Parse()
+ }
+ }
+ } else { // Compile==2 => Link
+ Link()
+ }
+
+ for curFileIndex = 0; curFileIndex < fileInfoLen; curFileIndex =
curFileIndex + 1 {
+ errno = libgogo.FileClose(fileInfo[curFileIndex].fd)
+ if errno != 0 {
+ GlobalError("Cannot close file.")
+ }
+ }
+
+ PrintGlobalSymbolTable()
+
+ if Compile == 1 {
+ i = libgogo.GetAlignedObjectListSize(GlobalObjects) //Get required data
segment size
+ SetDataSegmentSize(i) //Set data segment
size
+ PrintFile(GlobalFunctions, GlobalTypes) //Print compiled
output to file
+ }
+}
+
+func ParseOption() {
+ var strIndicator uint64
+ var done uint64 = 0
+
+ // handle -h and --help
+ strIndicator = libgogo.StringCompare("--help", libgogo.Argv[1])
+ if strIndicator != 0 {
+ strIndicator = libgogo.StringCompare("-h", libgogo.Argv[1])
+ }
+
+ if strIndicator == 0 {
+ libgogo.PrintString("Usage: gogo option file1.go [file2.go ...]\n\n")
+ libgogo.PrintString("GoGC - A go compiler\n\n")
+ libgogo.PrintString("Options:\n")
+ libgogo.PrintString("-h, --help show this help message and exit\n")
+ libgogo.PrintString("-p, parser mode\n")
+ libgogo.PrintString("-c compiler mode\n")
+ libgogo.PrintString("-l linker mode\n")
+ libgogo.Exit(1)
+ }
+
+ strIndicator = libgogo.StringCompare("-c", libgogo.Argv[1])
+ if (done == 0) && (strIndicator == 0) {
+ Compile = 1
+ done = 1
+ }
+
+ strIndicator = libgogo.StringCompare("-p", libgogo.Argv[1])
+ if (done == 0) && (strIndicator == 0) {
+ Compile = 0
+ done = 1
+ }
+
+ strIndicator = libgogo.StringCompare("-l", libgogo.Argv[1])
+ if (done == 0) && (strIndicator == 0) {
+ Compile = 2
+ done = 1
+ }
+
+ if done == 0 {
+ libgogo.ExitError("Usage: gogo option file1.go [file2.go ...]", 1)
+ }
+
+ if libgogo.Argc <= 2 {
+ libgogo.ExitError("Usage: gogo option file1.go [file2.go ...]", 1)
+ }
+}
=======================================
--- /src/gogo.go Fri Aug 20 11:56:45 2010
+++ /dev/null
@@ -1,142 +0,0 @@
-// Copyright 2010 The GoGC Authors. All rights reserved.
-// Use of this source code is governed by the MIT
-// license that can be found in the LICENSE file.
-
-package main
-
-import "./libgogo"
-
-//
-// Entry point of the compiler
-//
-func main() {
- var errno uint64
- var i uint64
- var j uint64
- var k uint64
- var singleChar byte
-
- libgogo.GetArgv()
-
- ParseOption()
-
- if libgogo.Argc > 40 {
- libgogo.ExitError("Cannot compile more than 38 files at once", 1)
- }
-
- InitSymbolTable() //Initialize symbol table
- InitFreeRegisters() //Init registers for code generation
-
- ResetCode()
-
- for i = 2; i < libgogo.Argc; i = i + 1 {
- curFileIndex = i - 2
- fileInfo[curFileIndex].filename = libgogo.Argv[i]
- fileInfo[curFileIndex].lineCounter = 1
- fileInfo[curFileIndex].charCounter = 1
-
- fileInfo[curFileIndex].fd = libgogo.FileOpen(libgogo.Argv[i], 0)
- if fileInfo[curFileIndex].fd == 0 {
- GlobalError("Cannot open file.")
- }
- }
- fileInfoLen = i - 2
-
- if (Compile == 0) || (Compile == 1) { // Compile == 0|1 => Parse/Compile
- for curFileIndex = 0; curFileIndex < fileInfoLen; curFileIndex =
curFileIndex + 1 {
- i = libgogo.StringLength(fileInfo[curFileIndex].filename)
- if i > 2 { //Check for assembly files
- j = i - 2
- k = i - 1
- if (Compile == 1) && (fileInfo[curFileIndex].filename[j] == '.') &&
(fileInfo[curFileIndex].filename[k] == 's') {
- // Assembly file: compile if in compiler mode
- if curFileIndex == 0 {
- GlobalError("The first file in the list cannot be an assembly file")
- }
- for singleChar = libgogo.GetChar(fileInfo[curFileIndex].fd);
singleChar != 0; singleChar = libgogo.GetChar(fileInfo[curFileIndex].fd) {
//Copy file to output character by character
- /* middot '·' is U+00C7 => UTF-8: C2B7*/
- if singleChar != 194 /*C2*/ {
- if singleChar == 183 /*B7*/ { //Prepend package name
- PrintCodeOutput(CurrentPackage)
- PrintCodeOutputChar(194)
- PrintCodeOutputChar(183)
- } else {
- PrintCodeOutputChar(singleChar)
- }
- }
- }
- } else {
- // Go file: parse and/or compile
- Parse()
- }
- } else { //Go file: parse and/or compile
- Parse()
- }
- }
- } else { // Compile==2 => Link
- Link()
- }
-
- for curFileIndex = 0; curFileIndex < fileInfoLen; curFileIndex =
curFileIndex + 1 {
- errno = libgogo.FileClose(fileInfo[curFileIndex].fd)
- if errno != 0 {
- GlobalError("Cannot close file.")
- }
- }
-
- PrintGlobalSymbolTable()
-
- if Compile == 1 {
- i = libgogo.GetAlignedObjectListSize(GlobalObjects) //Get required data
segment size
- SetDataSegmentSize(i) //Set data segment
size
- PrintFile(GlobalFunctions, GlobalTypes) //Print compiled
output to file
- }
-}
-
-func ParseOption() {
- var strIndicator uint64
- var done uint64 = 0
-
- // handle -h and --help
- strIndicator = libgogo.StringCompare("--help", libgogo.Argv[1])
- if strIndicator != 0 {
- strIndicator = libgogo.StringCompare("-h", libgogo.Argv[1])
- }
-
- if strIndicator == 0 {
- libgogo.PrintString("Usage: gogo option file1.go [file2.go ...]\n\n")
- libgogo.PrintString("GoGC - A go compiler\n\n")
- libgogo.PrintString("Options:\n")
- libgogo.PrintString("-h, --help show this help message and exit\n")
- libgogo.PrintString("-p, parser mode\n")
- libgogo.PrintString("-c compiler mode\n")
- libgogo.PrintString("-l linker mode\n")
- libgogo.Exit(1)
- }
-
- strIndicator = libgogo.StringCompare("-c", libgogo.Argv[1])
- if (done == 0) && (strIndicator == 0) {
- Compile = 1
- done = 1
- }
-
- strIndicator = libgogo.StringCompare("-p", libgogo.Argv[1])
- if (done == 0) && (strIndicator == 0) {
- Compile = 0
- done = 1
- }
-
- strIndicator = libgogo.StringCompare("-l", libgogo.Argv[1])
- if (done == 0) && (strIndicator == 0) {
- Compile = 2
- done = 1
- }
-
- if done == 0 {
- libgogo.ExitError("Usage: gogo option file1.go [file2.go ...]", 1)
- }
-
- if libgogo.Argc <= 2 {
- libgogo.ExitError("Usage: gogo option file1.go [file2.go ...]", 1)
- }
-}
=======================================
--- /.hgignore Fri Aug 20 14:06:56 2010
+++ /.hgignore Fri Aug 20 14:15:52 2010
@@ -1,6 +1,6 @@
syntax:glob
*.6
-src/gogo
+src/gogc
*.a
docs/latex/gogo.aux
docs/latex/gogo.bbl
=======================================
--- /src/Makefile Tue Aug 17 09:58:38 2010
+++ /src/Makefile Fri Aug 20 14:15:52 2010
@@ -4,10 +4,10 @@

include $(GOROOT)/src/Make.$(GOARCH)

-TARG=gogo
+TARG=gogc
GOFILES=\
globals.go\
- gogo.go\
+ gogc.go\
scanner.go\
token.go\
parser.go\
Reply all
Reply to author
Forward
0 new messages