Rob Pike
27d95f1372
use /bin/ed to avoid compatibility issues with plan 9 ed
...
SVN=121611
2008-06-08 17:02:01 -07:00
Ken Thompson
36bfd2a906
floating point
...
SVN=121607
2008-06-08 16:11:14 -07:00
Ken Thompson
8200a0b088
optional semicolons
...
SVN=121604
2008-06-08 12:48:37 -07:00
Ken Thompson
f7753f1687
more code generation - mostly shift and multiply
...
SVN=121585
2008-06-07 15:21:02 -07:00
Ken Thompson
181ad4743c
more div/mod
...
SVN=121577
2008-06-06 21:21:54 -07:00
Ken Thompson
d83b994da6
div and mod operators
...
SVN=121576
2008-06-06 20:43:29 -07:00
Ken Thompson
feb1c77f9c
cafebabe
...
SVN=121574
2008-06-06 19:16:18 -07:00
Ken Thompson
b6218e6907
'\Ucafebabe'
...
SVN=121562
2008-06-06 17:42:03 -07:00
Ken Thompson
609cf0c3a7
fixed \\ secape in strings
...
SVN=121553
2008-06-06 17:08:21 -07:00
Ken Thompson
a93099cd8c
SVN=121547
2008-06-06 17:01:33 -07:00
Ken Thompson
6b8bd3556a
nonaddressable = functioncall
...
code gen error
SVN=121541
2008-06-06 16:49:35 -07:00
Ken Thompson
d1493d1edc
checked into both gc and runtime by mistake
...
SVN=121498
2008-06-06 15:01:50 -07:00
Ken Thompson
498ed50061
code gen bug calling i2s
...
SVN=121497
2008-06-06 15:01:02 -07:00
Ken Thompson
e372be9e76
code gen bug in ++ and --
...
SVN=121476
2008-06-06 13:54:59 -07:00
Ken Thompson
fa259ff89c
fix different ANON flag between
...
darwin and linux
SVN=121371
2008-06-05 21:02:55 -07:00
Ken Thompson
959f9fb3d4
goos garch
...
SVN=121368
2008-06-05 19:53:15 -07:00
Ken Thompson
bbb2073223
goos garch
...
SVN=121367
2008-06-05 19:38:39 -07:00
Ken Thompson
8527f49e24
goos and goarch
...
SVN=121349
2008-06-05 16:57:26 -07:00
Ken Thompson
e2c3ec3173
goos goarch
...
SVN=121348
2008-06-05 16:56:23 -07:00
Ken Thompson
28429aaaa6
goos and goarch
...
SVN=121346
2008-06-05 16:55:06 -07:00
Ken Thompson
2b77d87fca
goos and goarch
...
SVN=121345
2008-06-05 16:54:34 -07:00
Rob Pike
5624e34494
rearrange tree to reflect design based on $GOROOT $GOOS $GOARCH
...
SVN=121291
2008-06-05 14:20:24 -07:00
Ken Thompson
f4ccabdea6
stuff
...
SVN=121190
2008-06-04 16:44:48 -07:00
Rob Pike
df8ac28975
initial runtime code checkin
...
SVN=121183
2008-06-04 15:52:48 -07:00
Ken Thompson
f1880579ef
loaded problem getting main from a library
...
SVN=121175
2008-06-04 15:33:59 -07:00
Ken Thompson
6633be6a86
fix loader problem loading main from a library
...
SVN=121174
2008-06-04 15:32:47 -07:00
Ken Thompson
3adcf6fa0e
touch to make later modified date
...
SVN=121172
2008-06-04 15:08:59 -07:00
Rob Pike
6b4d69e5f0
move old code into 'old' directory
...
add src/test dir
SVN=121166
2008-06-04 14:46:07 -07:00
Rob Pike
0cafb9ea3d
Add compiler source to new directory structure
...
SVN=121164
2008-06-04 14:37:38 -07:00
Rob Pike
7fbe486b1a
use new conversion syntax to simplify test
...
SVN=118019
2008-05-07 17:34:51 -07:00
Rob Pike
37b8eb4648
fix double declaration of g
...
SVN=118016
2008-05-07 17:32:58 -07:00
Rob Pike
38c083c1ca
Require names for return values for functions with complex return types.
...
SVN=117346
2008-05-01 00:01:45 -07:00
Rob Pike
b806ba4d88
Add description of how compiling and linking handle dependencies.
...
SVN=115807
2008-04-15 16:43:06 -07:00
Rob Pike
8cdb71017a
remove noisy print
...
SVN=114939
2008-04-03 16:59:46 -07:00
Rob Pike
b749038246
Add a rudimentary vector container to ameliorate the inability to allocate dynamic arrays.
...
SVN=114931
2008-04-03 16:38:21 -07:00
Rob Pike
01764a30fe
make digits a string instead of an array of bytes.
...
use string* to pass it around.
SVN=114795
2008-04-02 21:32:39 -07:00
Ken Thompson
5d6eba80f8
generate an error if the foreward
...
declaration of a func does not exactly
match the actual (or another foreward)
declaration. the reason is that when
there are 2 declarations of a function,
the names of the parameters are taken
from the first. thus
func x(a int);
followed by
func x(b int) { ... }
will have the parameter named "a" and
"b" will be undefined.
SVN=114788
2008-04-02 20:23:01 -07:00
Ken Thompson
87278c26e2
bug36
...
fixed error in symbol table in
the second forward declaration of
a function.
SVN=114572
2008-04-01 12:48:20 -07:00
Ken Thompson
e73674b291
code to assign nil to an interface
...
without conversions
SVN=114453
2008-03-31 19:19:37 -07:00
Ken Thompson
5918f80f1a
bug31
...
failed to correctly convert from pointer
to interface in a return statement.
moved ANY from a special type in
chan/map to a basic type.
SVN=114350
2008-03-31 11:50:47 -07:00
Ken Thompson
c69d54e7cd
bug28
...
fix code generation bug in
second index of string slice.
SVN=114255
2008-03-29 16:27:12 -07:00
Ken Thompson
0b62cb61ca
fix bug30
...
automatic declaration leaking
from one function to another
SVN=114252
2008-03-29 15:37:38 -07:00
Ken Thompson
c5c8268a78
SVN=114213
2008-03-28 15:08:58 -07:00
Ken Thompson
2181098189
SVN=114204
2008-03-28 13:56:47 -07:00
Ken Thompson
cb87526ce3
SVN=114202
2008-03-28 13:41:41 -07:00
Rob Pike
42d7850608
Basic formatted I/O library plus one support lib.
...
SVN=113977
2008-03-27 00:06:21 -07:00
Brian Kernighan
d82b11e4a4
last-minute fix: convert to ANSI C
...
R=dmr
DELTA=3 (2 added, 0 deleted, 1 changed)
1988-04-01 02:03:04 -05:00
Brian Kernighan
0744ac9691
convert to Draft-Proposed ANSI C
...
R=dmr
DELTA=5 (2 added, 0 deleted, 3 changed)
1988-04-01 02:02:04 -05:00
Brian Kernighan
0bb0b61d6a
convert to C
...
R=dmr
DELTA=6 (0 added, 3 deleted, 3 changed)
1974-01-20 01:02:03 -04:00
Brian Kernighan
7d7c6a97f8
hello, world
...
R=ken
DELTA=7 (7 added, 0 deleted, 0 changed)
1972-07-18 19:05:45 -05:00