summaryrefslogtreecommitdiff
path: root/src/cmd/goyacc
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý5-4715/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý5-0/+4715
2011-09-13Imported Upstream version 60Ondřej Surý5-4711/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-1/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý2-77/+77
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý4-161/+176
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý3-24/+27
2010-05-17Add Error member to yyLexer type (yyErrorRoger Peppe3-8/+11
has no access to yylex) R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/813047 Committer: Ken Thompson <ken@golang.org>
2010-04-06Change goyacc to be reentrant.Roger Peppe3-605/+532
Instead of calling the package scope Lex function, Parse now takes an argument which is used to do the lexing. I reverted to having the generated switch code inside Parse rather than a separate function because the function needs 7 arguments or a context structure, which seems unnecessary. I used yyrun(), not the original $A so that it's possible to run the backquoted code through gofmt. R=rsc, ken2, ken3 CC=golang-dev http://codereview.appspot.com/879041 Committer: Ken Thompson <ken@golang.org>
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-02-23goyacc: fix handling of / and comments in goyaccRob Pike1-2/+20
Fixes issue 618. R=rsc CC=golang-dev http://codereview.appspot.com/217094
2010-02-09make units compileFazlul Shahriar1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/206044 Committer: Russ Cox <rsc@golang.org>
2010-02-02Change type of Printf's args to ... interface{}Rob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/197043
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-907/+907
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-14Update goyacc to new syntax, still with semicolons.Rob Pike2-67/+37
Update units.y too. Fixes issue 417. R=rsc CC=golang-dev http://codereview.appspot.com/176063
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-2/+2
R=rsc http://codereview.appspot.com/172041
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-5/+5
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-19put copy into goyaccKen Thompson1-40/+16
R=rsc http://codereview.appspot.com/156100
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-54/+54
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-269/+269
R=rsc, r http://go/go-review/1025029
2009-11-09tweak documentation of commandsRuss Cox1-2/+2
so that first sentence is better for cmd page. live at http://r45:3456/cmd/ R=gri, r http://go/go-review/1024034
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-33/+11
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt src/cmd/goyaccRobert Griesemer1-583/+445
(with this change: gofmt -l src/cmd/ | wc is 0 0 0) R=ken, rsc http://go/go-review/1024005
2009-11-05gofmt'ed src/cmdRobert Griesemer1-1/+1
R=rsc http://go/go-review/1024004
2009-11-03make goyacc and units.y work again (minor tweaks).Rob Pike4-5/+24
document goyacc a little. R=rsc CC=go-dev http://go/go-review/1017024
2009-09-10minor changesKen Thompson2-88/+60
R=rsc OCL=34545 CL=34545
2009-09-10rename units -> units.txt.Russ Cox4-11/+18
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
2009-09-10sample goyacc programKen Thompson2-0/+1406
R=rsc OCL=34526 CL=34526
2009-09-10goyacc commandKen Thompson2-0/+3555
written in (c-style) go produces go source parser R=rsc OCL=34522 CL=34522