]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agoT{} syntax for constructors
Ken Thompson [Sat, 6 Sep 2008 02:50:34 +0000 (19:50 -0700)]
T{} syntax for constructors
T(expression) for conversion
FUNC keyword no longer a type

R=r
OCL=14887
CL=14887

16 years agouse a makefile to build math
Rob Pike [Fri, 5 Sep 2008 16:55:33 +0000 (09:55 -0700)]
use a makefile to build math
fix a typo in syscall/Makefile

R=ken
OCL=14863
CL=14863

16 years agoupdate tests
Rob Pike [Fri, 5 Sep 2008 00:36:57 +0000 (17:36 -0700)]
update tests

R=gri
OCL=14847
CL=14847

16 years agobugs 29, 61, 62, 74
Ken Thompson [Fri, 5 Sep 2008 00:15:15 +0000 (17:15 -0700)]
bugs 29, 61, 62, 74
fixedbugs 49 now (correctly) fails
bugs 32, 41, 68, 77 shouldnt be bugs

R=r
OCL=14842
CL=14842

16 years ago- \' not allowed in string literals
Robert Griesemer [Thu, 4 Sep 2008 23:59:31 +0000 (16:59 -0700)]
- \' not allowed in string literals
- \" not allowed in char literals
- replaces uses of printf with print

R=r,ken
DELTA=10  (2 added, 0 deleted, 8 changed)
OCL=14841
CL=14841

16 years agoresolve that all unnecessary backslashes are rejected.
Rob Pike [Thu, 4 Sep 2008 23:48:19 +0000 (16:48 -0700)]
resolve that all unnecessary backslashes are rejected.
bug068 is not a bug.

R=gri
OCL=14838
CL=14838

16 years ago- added missing language to operator section in spec
Robert Griesemer [Thu, 4 Sep 2008 22:17:27 +0000 (15:17 -0700)]
- added missing language to operator section in spec

R=r,ken
DELTA=100  (71 added, 9 deleted, 20 changed)
OCL=14827
CL=14832

16 years agoextend composite literal test.
Rob Pike [Thu, 4 Sep 2008 20:35:19 +0000 (13:35 -0700)]
extend composite literal test.
update tests.
update golden.out

R=gri
OCL=14816
CL=14816

16 years agoinclude math in standard build
Rob Pike [Thu, 4 Sep 2008 20:09:49 +0000 (13:09 -0700)]
include math in standard build

R=ken
OCL=14811
CL=14811

16 years agorewriting bugs
Ken Thompson [Thu, 4 Sep 2008 19:21:10 +0000 (12:21 -0700)]
rewriting bugs

R=r
OCL=14810
CL=14810

16 years agoUpdate fmt, refl, and rpc to exploit bug fixes in compiler
Rob Pike [Thu, 4 Sep 2008 17:39:04 +0000 (10:39 -0700)]
Update fmt, refl, and rpc to exploit bug fixes in compiler

R=gri
OCL=14806
CL=14806

16 years agofix bug in stack overflow check.
Rob Pike [Thu, 4 Sep 2008 02:58:46 +0000 (19:58 -0700)]
fix bug in stack overflow check.
if stack is in low memory and frame size is huge, test could wrap around!
fix by omitting test altogether if we know frame is big.

R=gri
OCL=14782
CL=14782

16 years ago- clarification of type of array literals (always fixed array)
Robert Griesemer [Wed, 3 Sep 2008 23:41:31 +0000 (16:41 -0700)]
- clarification of type of array literals (always fixed array)
- clarification of const decl syntax

R=r
DELTA=9  (4 added, 0 deleted, 5 changed)
OCL=14771
CL=14771

16 years agoupdate bugs
Rob Pike [Wed, 3 Sep 2008 22:54:33 +0000 (15:54 -0700)]
update bugs
add test for composite literals

R=gri
OCL=14766
CL=14766

16 years ago- fixed typo
Robert Griesemer [Wed, 3 Sep 2008 22:22:27 +0000 (15:22 -0700)]
- fixed typo

R=r
OCL=14763
CL=14763

16 years ago- minor corrections to go_spec.txt
Robert Griesemer [Wed, 3 Sep 2008 22:15:51 +0000 (15:15 -0700)]
- minor corrections to go_spec.txt
- verified that all text from go_lang.txt is either present in its
  old form, or that we have corresponding updated sections for it
- delete go_lang.txt

R=r
DELTA=2389  (38 added, 2344 deleted, 7 changed)
OCL=14760
CL=14762

16 years agomap literals
Ken Thompson [Wed, 3 Sep 2008 21:40:22 +0000 (14:40 -0700)]
map literals

R=r
OCL=14759
CL=14759

16 years agoarray literals
Ken Thompson [Wed, 3 Sep 2008 21:09:29 +0000 (14:09 -0700)]
array literals

R=r
OCL=14756
CL=14756

16 years agoComposite literal syntax.
Robert Griesemer [Wed, 3 Sep 2008 20:37:44 +0000 (13:37 -0700)]
Composite literal syntax.

R=r
DELTA=25  (14 added, 2 deleted, 9 changed)
OCL=14750
CL=14753

16 years agoupdate tests
Rob Pike [Wed, 3 Sep 2008 20:21:05 +0000 (13:21 -0700)]
update tests
add commands to two new ken tests

R=gri
OCL=14751
CL=14751

16 years agostructure literals
Ken Thompson [Wed, 3 Sep 2008 02:11:25 +0000 (19:11 -0700)]
structure literals

R=r
OCL=14735
CL=14735

16 years ago- adjusted my submitted code to work with latest compiler changes
Robert Griesemer [Wed, 3 Sep 2008 00:26:00 +0000 (17:26 -0700)]
- adjusted my submitted code to work with latest compiler changes

R=r
OCL=14734
CL=14734

16 years agoorder of evaluation in function args
Ken Thompson [Wed, 3 Sep 2008 00:12:32 +0000 (17:12 -0700)]
order of evaluation in function args

R=r
OCL=14733
CL=14733

16 years agobug in conv(string, bytearray)
Ken Thompson [Tue, 2 Sep 2008 23:21:30 +0000 (16:21 -0700)]
bug in conv(string, bytearray)

R=r
OCL=14732
CL=14732

16 years agofix bug: was writing off end of array
Rob Pike [Tue, 2 Sep 2008 21:31:31 +0000 (14:31 -0700)]
fix bug: was writing off end of array

R=gri
OCL=14728
CL=14728

16 years agoin golden.out, replace $RUNFILE with '$RUNFILE'
Russ Cox [Tue, 2 Sep 2008 21:26:59 +0000 (14:26 -0700)]
in golden.out, replace $RUNFILE with '$RUNFILE'
and replace pid with PID

R=r
DELTA=4  (2 added, 0 deleted, 2 changed)
OCL=14727
CL=14727

16 years agovector cleanup:
Rob Pike [Tue, 2 Sep 2008 20:16:43 +0000 (13:16 -0700)]
vector cleanup:
- change Delete to Remove
- return deleted element in Remove
- remove range checking (runtime does this for you)

R=gri
OCL=14714
CL=14714

16 years agoupdate tests.
Rob Pike [Tue, 2 Sep 2008 20:08:40 +0000 (13:08 -0700)]
update tests.
fix bug092, which was incorrectly specified

R=gri
OCL=14713
CL=14713

16 years agominor bugs
Ken Thompson [Mon, 1 Sep 2008 21:37:32 +0000 (14:37 -0700)]
minor bugs

R=r
OCL=14702
CL=14702

16 years agofixed labels/break/continue/goto
Ken Thompson [Sat, 30 Aug 2008 03:30:19 +0000 (20:30 -0700)]
fixed labels/break/continue/goto

R=r
OCL=14675
CL=14675

16 years ago- removed 'iota' from the keyword list
Robert Griesemer [Sat, 30 Aug 2008 00:16:47 +0000 (17:16 -0700)]
- removed 'iota' from the keyword list
- added missing operators

R=r
OCL=14672
CL=14672

16 years ago- declaring large fixed arrays is causing runtime crash
Robert Griesemer [Fri, 29 Aug 2008 20:47:29 +0000 (13:47 -0700)]
- declaring large fixed arrays is causing runtime crash

R=ken
OCL=14658
CL=14660

16 years ago- removed need for int() conversion now that x << s has correct type
Robert Griesemer [Fri, 29 Aug 2008 20:33:34 +0000 (13:33 -0700)]
- removed need for int() conversion now that x << s has correct type
- updated golden.out

R=r
DELTA=9  (0 added, 8 deleted, 1 changed)
OCL=14657
CL=14657

16 years agofix type of (1<<x)
Ken Thompson [Fri, 29 Aug 2008 20:24:53 +0000 (13:24 -0700)]
fix type of (1<<x)

R=r
OCL=14656
CL=14656

16 years ago- updated test cases to latest compiler changes
Robert Griesemer [Fri, 29 Aug 2008 20:21:00 +0000 (13:21 -0700)]
- updated test cases to latest compiler changes

R=r
DELTA=185  (59 added, 33 deleted, 93 changed)
OCL=14655
CL=14655

16 years ago- updated and cleaned up vector.go to use new array instructions
Robert Griesemer [Fri, 29 Aug 2008 18:10:23 +0000 (11:10 -0700)]
- updated and cleaned up vector.go to use new array instructions
- added initial test cases (needs to be expanded)

R=r
DELTA=135  (84 added, 30 deleted, 21 changed)
OCL=14654
CL=14654

16 years agoshift operations to new spec
Ken Thompson [Fri, 29 Aug 2008 02:59:42 +0000 (19:59 -0700)]
shift operations to new spec

R=r
OCL=14641
CL=14641

16 years ago- Preliminary draft of what might become a real spec
Robert Griesemer [Fri, 29 Aug 2008 00:47:53 +0000 (17:47 -0700)]
- Preliminary draft of what might become a real spec
- All text taken from go_lang.txt (which is unchanged),
but added a contents section, and sorted the contents
section in a hopefully sensible manner to give it more
structure
- Reordered text to match order of contents section,
did not adjust the language (needs to be done),
but removed sections that were dulicates or invalid

High-level organization of the doc:
- Introduction
- Notation
- Source code representation
- Vocabulary
- Declarations and scope rules
- Types
- Expressions
- Statements
- Function declarations
- Packages
- Program initialization and execution

I hope this new structure will make it much clearer which
pieces are missing and where they need to go. go_lang.txt
has grown somewhat unstructured and new text was added as
we saw fit.

R=r
DELTA=2577  (2577 added, 0 deleted, 0 changed)
OCL=14639
CL=14639

16 years agoget rid of static/dynamic array distinction
Ken Thompson [Thu, 28 Aug 2008 22:17:37 +0000 (15:17 -0700)]
get rid of static/dynamic array distinction

R=r
OCL=14634
CL=14634

16 years agoarrays
Ken Thompson [Thu, 28 Aug 2008 00:28:30 +0000 (17:28 -0700)]
arrays

R=r
OCL=14603
CL=14603

16 years agofix fat copy of overlapping data
Ken Thompson [Fri, 22 Aug 2008 03:49:04 +0000 (20:49 -0700)]
fix fat copy of overlapping data

R=r
OCL=14417
CL=14417

16 years agoclarify pointer forward decls per ian's suggestion
Robert Griesemer [Fri, 22 Aug 2008 00:18:01 +0000 (17:18 -0700)]
clarify pointer forward decls per ian's suggestion

R=r
DELTA=13  (3 added, 7 deleted, 3 changed)
OCL=14406
CL=14406

16 years ago- explained function and method pointers
Robert Griesemer [Thu, 21 Aug 2008 23:55:38 +0000 (16:55 -0700)]
- explained function and method pointers
- removed need for method types and literals
(gri & r)

R=r
DELTA=178  (101 added, 51 deleted, 26 changed)
OCL=14402
CL=14405

16 years agoadded scope rules, removed TODO
Robert Griesemer [Thu, 21 Aug 2008 18:00:26 +0000 (11:00 -0700)]
added scope rules, removed TODO

R=r
DELTA=26  (19 added, 0 deleted, 7 changed)
OCL=14358
CL=14386

16 years agoupdated section on reserved words
Robert Griesemer [Wed, 20 Aug 2008 23:32:00 +0000 (16:32 -0700)]
updated section on reserved words

R=r
DELTA=44  (27 added, 2 deleted, 15 changed)
OCL=14353
CL=14355

16 years agodelete redundant bug.
Rob Pike [Wed, 20 Aug 2008 22:46:05 +0000 (15:46 -0700)]
delete redundant bug.
fix typo.
add scoping bug.

R=gri
OCL=14349
CL=14349

16 years agobugs related to constat types
Robert Griesemer [Wed, 20 Aug 2008 22:43:12 +0000 (15:43 -0700)]
bugs related to constat types

R=r
DELTA=10  (6 added, 4 deleted, 0 changed)
OCL=14348
CL=14348

16 years agoallow predefined identifiers (len, etc.) to be exported.
Rob Pike [Wed, 13 Aug 2008 22:24:55 +0000 (15:24 -0700)]
allow predefined identifiers (len, etc.) to be exported.
(they were not accepted as names by the import parser)

R=ken
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=14159
CL=14159

16 years agoadd test for constants
Rob Pike [Wed, 13 Aug 2008 19:15:24 +0000 (12:15 -0700)]
add test for constants
add bug in constant evaluation (erroneously allowing assignment of float to int)
update golden

R=gri
OCL=14153
CL=14153

16 years agoput i2s, s2i and i2i in convert
Ken Thompson [Wed, 13 Aug 2008 02:13:09 +0000 (19:13 -0700)]
put i2s, s2i and i2i in convert

R=r
OCL=14143
CL=14143

16 years agoupdate bugs
Rob Pike [Wed, 13 Aug 2008 00:07:33 +0000 (17:07 -0700)]
update bugs
exploit the compiler now supporting i2s and i2i and clean up some code
fix up some panics and prints

R=gri
OCL=14141
CL=14141

16 years agoi2s and i2i
Ken Thompson [Tue, 12 Aug 2008 23:36:18 +0000 (16:36 -0700)]
i2s and i2i

R=r
OCL=14140
CL=14140

16 years agoupdate tests
Rob Pike [Tue, 12 Aug 2008 23:11:55 +0000 (16:11 -0700)]
update tests

R=gri
OCL=14137
CL=14137

16 years agoresolve go.y edits
Ken Thompson [Tue, 12 Aug 2008 21:28:58 +0000 (14:28 -0700)]
resolve go.y edits

R=r
OCL=14132
CL=14132

16 years agofixed bugs in const/case
Ken Thompson [Tue, 12 Aug 2008 21:04:03 +0000 (14:04 -0700)]
fixed bugs in const/case

R=r
DELTA=138  (75 added, 12 deleted, 51 changed)
OCL=14129
CL=14131

16 years agofix one syntax error in declaration.
Rob Pike [Tue, 12 Aug 2008 20:21:49 +0000 (13:21 -0700)]
fix one syntax error in declaration.
reformat the bullet list about strings

R=gri
OCL=14128
CL=14128

16 years agouse tabs for indentation consistently
Rob Pike [Tue, 12 Aug 2008 18:38:34 +0000 (11:38 -0700)]
use tabs for indentation consistently

R=gri
OCL=14125
CL=14125

16 years agoNew words regarding constants
Rob Pike [Tue, 12 Aug 2008 18:20:34 +0000 (11:20 -0700)]
New words regarding constants

R=gri,ken
DELTA=64  (42 added, 3 deleted, 19 changed)
OCL=14116
CL=14124

16 years agofix bug depot:
Rob Pike [Tue, 12 Aug 2008 05:07:49 +0000 (22:07 -0700)]
fix bug depot:
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)

R=gri
OCL=14106
CL=14106

16 years agofix two print statements
Rob Pike [Tue, 12 Aug 2008 04:37:46 +0000 (21:37 -0700)]
fix two print statements

R=gri
OCL=14105
CL=14105

16 years agofix a typo in the comments
Rob Pike [Tue, 12 Aug 2008 04:29:11 +0000 (21:29 -0700)]
fix a typo in the comments

R=ken
OCL=14104
CL=14104

16 years ago- changed go-in-go parser to require ()'s for panic and print
Robert Griesemer [Tue, 12 Aug 2008 04:20:42 +0000 (21:20 -0700)]
- changed go-in-go parser to require ()'s for panic and print
- adjusted much of the existing go code
- missing: tests

R=r
DELTA=229  (1 added, 17 deleted, 211 changed)
OCL=14103
CL=14103

16 years ago- allow reserved words as field and method names
Robert Griesemer [Tue, 12 Aug 2008 03:40:37 +0000 (20:40 -0700)]
- allow reserved words as field and method names

R=r
OCL=14102
CL=14102

16 years agoprint() and field names
Ken Thompson [Tue, 12 Aug 2008 02:17:28 +0000 (19:17 -0700)]
print() and field names

R=r
DELTA=86  (61 added, 3 deleted, 22 changed)
OCL=14099
CL=14099

16 years ago- experiments with forward-declaring types of non-imported packages
Robert Griesemer [Tue, 12 Aug 2008 01:44:41 +0000 (18:44 -0700)]
- experiments with forward-declaring types of non-imported packages
- adjusted switch syntax (no repeated case: case: anymore)
- enabled some constant expressions that work now

R=r
OCL=14098
CL=14098

16 years ago- removed fall-through for case: case: in switch statements
Robert Griesemer [Tue, 12 Aug 2008 01:09:31 +0000 (18:09 -0700)]
- removed fall-through for case: case: in switch statements
- added ()'s to all print calls in examples
- augmented rule about use of identifiers

R=r
DELTA=11  (0 added, 1 deleted, 10 changed)
OCL=14097
CL=14097

16 years ago- fix signedness bug in sys.Inf()
Rob Pike [Mon, 11 Aug 2008 22:04:54 +0000 (15:04 -0700)]
- fix signedness bug in sys.Inf()
- add NaN, Inf printing to fmt
- fix a couple of bugs in fmt
- add a test for fmt

R=ken
OCL=14092
CL=14092

16 years agofloating <= and >= compare
Ken Thompson [Mon, 11 Aug 2008 20:53:50 +0000 (13:53 -0700)]
floating <= and >= compare

R=r
DELTA=8  (0 added, 0 deleted, 8 changed)
OCL=14091
CL=14091

16 years agoadd test for maps.
Rob Pike [Mon, 11 Aug 2008 20:32:13 +0000 (13:32 -0700)]
add test for maps.

R=gri
OCL=14090
CL=14090

16 years agoexport large constants
Ken Thompson [Mon, 11 Aug 2008 20:22:04 +0000 (13:22 -0700)]
export large constants

R=r
DELTA=37  (31 added, 4 deleted, 2 changed)
OCL=14089
CL=14089

16 years agocode in bug was wrong; correct and improve. works now.
Rob Pike [Mon, 11 Aug 2008 20:08:16 +0000 (13:08 -0700)]
code in bug was wrong; correct and improve.  works now.

R=gri
OCL=14088
CL=14088

16 years ago- added test case for compiler bug re: exported
Robert Griesemer [Mon, 11 Aug 2008 18:40:19 +0000 (11:40 -0700)]
- added test case for compiler bug re: exported
variables of function pointer type

R=r
OCL=14086
CL=14086

16 years agoupdate tests.
Rob Pike [Mon, 11 Aug 2008 17:10:48 +0000 (10:10 -0700)]
update tests.
fixedbugs/bug012.go is broken again but i left it where it is, with
the golden file not reflecting the breakage so it will be noticed

R=ken,gri
OCL=14073
CL=14073

16 years ago- more steps towards automatic recursive compilation of dependencies
Robert Griesemer [Mon, 11 Aug 2008 16:45:40 +0000 (09:45 -0700)]
- more steps towards automatic recursive compilation of dependencies
- make forward declarations of types match 6g
- better factoring

R=r
OCL=14059
CL=14059

16 years agofixed op=, ++ and -- on maps (bug060)
Ken Thompson [Sun, 10 Aug 2008 23:49:01 +0000 (16:49 -0700)]
fixed op=, ++ and -- on maps (bug060)

R=r
DELTA=22  (21 added, 0 deleted, 1 changed)
OCL=14049
CL=14049

16 years agoallow name-type or pointer-to-named-type as method name (bug046)
Ken Thompson [Sun, 10 Aug 2008 22:09:09 +0000 (15:09 -0700)]
allow name-type or pointer-to-named-type as method name (bug046)

R=r
DELTA=17  (11 added, 3 deleted, 3 changed)
OCL=14048
CL=14048

16 years agofixed unary ^ opcode (bug082)
Ken Thompson [Sun, 10 Aug 2008 21:35:02 +0000 (14:35 -0700)]
fixed unary ^ opcode (bug082)

R=r
DELTA=11  (10 added, 1 deleted, 0 changed)
OCL=14047
CL=14047

16 years agoadding and deleting files
Ken Thompson [Sun, 10 Aug 2008 00:33:35 +0000 (17:33 -0700)]
adding and deleting files

R=r
DELTA=1685  (920 added, 765 deleted, 0 changed)
OCL=14030
CL=14030

16 years agomp fixed arith
Ken Thompson [Sun, 10 Aug 2008 00:29:26 +0000 (17:29 -0700)]
mp fixed arith

R=r
DELTA=149  (80 added, 62 deleted, 7 changed)
OCL=14029
CL=14029

16 years agofix minor bug uncovered by new constant evaluator
Rob Pike [Sat, 9 Aug 2008 21:50:29 +0000 (14:50 -0700)]
fix minor bug uncovered by new constant evaluator

R=gri
OCL=14025
CL=14025

16 years agoforgot a file
Ken Thompson [Sat, 9 Aug 2008 00:15:46 +0000 (17:15 -0700)]
forgot a file

R=r
DELTA=427  (427 added, 0 deleted, 0 changed)
OCL=14017
CL=14017

16 years agomp constants
Ken Thompson [Sat, 9 Aug 2008 00:13:31 +0000 (17:13 -0700)]
mp constants

R=r
DELTA=381  (142 added, 26 deleted, 213 changed)
OCL=14011
CL=14016

16 years ago- removed misleading comment in bug041.go
Robert Griesemer [Fri, 8 Aug 2008 23:12:34 +0000 (16:12 -0700)]
- removed misleading comment in bug041.go
- removed bug042.go - not a bug according to updated spec

R=r
DELTA=43  (5 added, 36 deleted, 2 changed)
OCL=14008
CL=14010

16 years agofix a couple of tests that had shell errors
Rob Pike [Fri, 8 Aug 2008 17:57:23 +0000 (10:57 -0700)]
fix a couple of tests that had shell errors
clean up the golden file a bit to have less meaningless content and be more robust to spurious diffs.
now there is output only for tests that produce output or failure.

R=gri
OCL=14005
CL=14005

16 years agoChange generated acid to indent nested structures properly.
Russ Cox [Fri, 8 Aug 2008 11:25:20 +0000 (04:25 -0700)]
Change generated acid to indent nested structures properly.

Before the change:

acid: M(m0)
g0 00008dd0
morearg 00000000
cret 00000000
curg 2aaaaaaab000
lastg 00000000
Gobuf sched {
SP ffffe5e0
PC 7fff00001ba1
}
...
acid:

After the change:

acid: M(m0)
g0 (G)00008dd0
morearg 00000000
cret 00000000
curg (G)2aaaaaaab000
lastg (G)00000000
Gobuf sched {
SP ffffe5e0
PC 00001ba1
}
...
acid:

R=ken
DELTA=27  (14 added, 2 deleted, 11 changed)
OCL=13802
CL=13998

16 years agofirst primitive cut at resolving missing imports automatically:
Robert Griesemer [Fri, 8 Aug 2008 02:32:22 +0000 (19:32 -0700)]
first primitive cut at resolving missing imports automatically:
if an import file is missing, the corresponding source
is compiled automatically, if found

R=r
OCL=13990
CL=13990

16 years agobug: cannot take len() of a constant string
Robert Griesemer [Fri, 8 Aug 2008 00:56:12 +0000 (17:56 -0700)]
bug: cannot take len() of a constant string

R=r
OCL=13989
CL=13989

16 years agoinclude syscall in default build
Rob Pike [Fri, 8 Aug 2008 00:36:50 +0000 (17:36 -0700)]
include syscall in default build
fix an issue with autolib names by compiling to target location
print a bit more when compiling

R=gri
OCL=13988
CL=13988

16 years agorevert specification of pointer types to current implementation
Robert Griesemer [Fri, 8 Aug 2008 00:15:10 +0000 (17:15 -0700)]
revert specification of pointer types to current implementation
(do not allow explicit type forward declarations) and more clearly
specify resolution

R=r
DELTA=30  (9 added, 7 deleted, 14 changed)
OCL=13967
CL=13987

16 years agofix erroneous code in bugs; reported by iant.
Rob Pike [Thu, 7 Aug 2008 20:27:58 +0000 (13:27 -0700)]
fix erroneous code in bugs; reported by iant.
also rob1.go runs, so fix its status.

R=gri,iant
OCL=13957
CL=13957

16 years ago- implement scanner token stream via channel
Robert Griesemer [Thu, 7 Aug 2008 01:57:37 +0000 (18:57 -0700)]
- implement scanner token stream via channel
- change test_scanner to scan using both methods
- add -pscan flag to Go front-end to choose between conventional
  synchronous or parallel asynchronous scanning

R=r
OCL=13937
CL=13937

16 years agosnapshot of today's changes - more semantic tests
Robert Griesemer [Thu, 7 Aug 2008 00:26:46 +0000 (17:26 -0700)]
snapshot of today's changes - more semantic tests

R=r
OCL=13932
CL=13932

16 years agoreturning from a function that specified a result should cause a run-time
Robert Griesemer [Wed, 6 Aug 2008 17:02:18 +0000 (10:02 -0700)]
returning from a function that specified a result should cause a run-time
failure if no return is actually executed

R=r
OCL=13915
CL=13915

16 years ago- added more semantic checks - more to come
Robert Griesemer [Wed, 6 Aug 2008 01:52:37 +0000 (18:52 -0700)]
- added more semantic checks - more to come
- distinguish float/int literals syntactically
- fixed a tracing bug

R=r
OCL=13906
CL=13906

16 years agobug: package name not visible
Robert Griesemer [Tue, 5 Aug 2008 23:09:49 +0000 (16:09 -0700)]
bug: package name not visible

R=r
OCL=13898
CL=13898

16 years ago- fixed another export bug
Robert Griesemer [Tue, 5 Aug 2008 22:20:58 +0000 (15:20 -0700)]
- fixed another export bug
- more self-verification code

R=r
OCL=13894
CL=13894

16 years agokill trailing white space.
Russ Cox [Tue, 5 Aug 2008 21:21:42 +0000 (14:21 -0700)]
kill trailing white space.
(apparently my first attempt didn't work.)

R=r
OCL=13888
CL=13888

16 years ago* comment, clean up scheduler
Russ Cox [Tue, 5 Aug 2008 21:18:47 +0000 (14:18 -0700)]
* comment, clean up scheduler
* rewrite lock implementation to be correct
  (tip: never assume that an algorithm you found
  in a linux man page is correct.)
* delete unneeded void* arg from clone fn
* replace Rendez with Note
* comment mal better
* use 6c -w, fix warnings
* mark all assembly functions 7

R=r
DELTA=828  (338 added, 221 deleted, 269 changed)
OCL=13884
CL=13886

16 years agoallow pointers as keys in maps, treating them the same as ints - ptr eq not value...
Rob Pike [Tue, 5 Aug 2008 18:14:35 +0000 (11:14 -0700)]
allow pointers as keys in maps, treating them the same as ints - ptr eq not value equality

R=ken,gri
OCL=13879
CL=13879

16 years agoworkaround for compiler bug: len(a) is zero
Rob Pike [Tue, 5 Aug 2008 15:20:34 +0000 (08:20 -0700)]
workaround for compiler bug: len(a) is zero

TBR=iant
OCL=13873
CL=13873