summaryrefslogtreecommitdiff
path: root/src/pkg/exp/eval
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý3-3/+3
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý6-60/+56
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-6/+6
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý2-2/+2
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý9-63/+10
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý18-545/+570
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-27/+35
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-09exp/eval test: fix buildRobert Griesemer1-3/+3
R=r CC=golang-dev http://codereview.appspot.com/1599043
2010-05-21bignum: deprecate by moving into exp directoryRobert Griesemer8-8/+8
R=rsc CC=golang-dev http://codereview.appspot.com/1211047
2010-04-15exp/eval: Always read float literals as base 10Evan Shaw2-1/+2
We were letting bignum decide, which caused problems with float literals with a leading 0. R=gri CC=golang-dev http://codereview.appspot.com/816047 Committer: Robert Griesemer <gri@golang.org>
2010-04-15exp/eval: Implement x[lo:]Evan Shaw2-6/+23
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/908044 Committer: Robert Griesemer <gri@golang.org>
2010-04-11exp/eval: Fix example and add target to MakefileEvan Shaw2-4/+10
R=rsc CC=golang-dev http://codereview.appspot.com/901042 Committer: Russ Cox <rsc@golang.org>
2010-03-30simplify various code using new map index ruleRuss Cox3-6/+3
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox5-46/+42
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike3-7/+6
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-5/+5
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer6-30/+30
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-24go/ast: streamline representation of field listsRobert Griesemer1-33/+23
- always include position information about opening/closing parens/braces - replace uses of []*ast.Field with *ast.FieldList Fixes issue 473. R=rsc CC=golang-dev http://codereview.appspot.com/223043
2010-02-24gofmt: don't print ()'s around function-typed results (not needed anymore)Robert Griesemer3-25/+21
- add extra test cases to go/printer tests - apply gofmt to src and misc R=rsc CC=golang-dev http://codereview.appspot.com/223041
2010-02-19- removed exp/parser (support for old semicolon syntax)Robert Griesemer5-29/+12
- go/ast: removed StringList (not needed anymore) - go/ast: changed import path and field list tag to a single string - updated all dependencies R=rsc CC=golang-dev http://codereview.appspot.com/217056
2010-02-02Change type of Printf's args to ... interface{}Rob Pike3-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/197043
2010-02-01gc: add ... T, rework plain ...Russ Cox1-7/+4
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-15 Steps towards tracking scopes for identifiers.Robert Griesemer4-28/+28
- Identifiers refer now to the language entity (Object) that they denote. At the moment this is at best an approximation. - Initial data structures for language entities (Objects) and expression types (Type) independent of the actual type notations. - Initial support for declaring and looking up identifiers. - Updated various dependent files and added support functions. - Extensively tested to avoid breakage. This is an AST change. R=rsc CC=golang-dev, rog http://codereview.appspot.com/189080
2009-12-18fix build, enable an exp/eval's assignment checkRobert Griesemer1-5/+1
now that the parser doesn't do this test anymore R=rsc CC=golang-dev http://codereview.appspot.com/179105
2009-12-15 1) Change default gofmt default settings forRobert Griesemer18-2815/+2815
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 2nd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/179067
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-2/+5
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
2009-12-10New flags for gofmt:Robert Griesemer1-1/+1
- oldparser parse old syntax (required semicolons) - oldprinter print old syntax (required semicolons) By default, these flags are enabled for now. Setting -oldparser=false has no effect until go/parser is changed to accept the new syntax. Enabled exp/parser in Makefile; update dependent exp/eval. R=rsc http://codereview.appspot.com/174051
2009-12-09minor manual format correctionsRobert Griesemer1-1/+0
R=rsc http://codereview.appspot.com/172042
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-1/+1
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-24Change to container/vector interface:Robert Griesemer1-2/+2
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia2-4/+4
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 Cox2-4/+4
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-19Permit omission of hi bound in slices.Robert Griesemer1-9/+14
R=r, rsc http://codereview.appspot.com/157082
2009-11-14Build changes to support work on the BSDs.Devon H. O'Dell1-1/+1
This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc http://codereview.appspot.com/152138 Committer: Russ Cox <rsc@golang.org>
2009-11-09 - replaced gofmt expression formatting algorithm withRobert Griesemer9-147/+145
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer15-779/+779
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer15-551/+184
- 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-ify evalRobert Griesemer17-980/+1063
R=rsc http://go/go-review/1016054
2009-10-30Don't use fallthrough in a type switch.Ian Lance Taylor1-4/+2
R=rsc http://go/go-review/1018005
2009-10-22Interface types, values, and type compiler. This does not yetAustin Clements4-13/+292
implement any type checking or semantics for interfaces. R=rsc APPROVED=rsc DELTA=305 (289 added, 10 deleted, 6 changed) OCL=35889 CL=35995
2009-10-14move austin/eval and austin/ogle to exp/eval and exp/ogleRuss Cox20-0/+9790
R=r OCL=35736 CL=35746