Skip to content

Commit

Permalink
[dev.cc] cmd/new5a etc, cmd/internal/asm: initial C → Go conversion
Browse files Browse the repository at this point in the history
This is the raw output of c2go. It needs fixes to make it compile.
Rather than make c2go do a 100% conversion (like we're doing for
liblink and the Go compilers), since this is so trivial I'm going to
make the remaining changes by hand in a followup CL.
This CL makes the next CL's diffs useful.

Also copy unmodified .y files (5a/a.y → new5a/a.y and so on)

The converted 6a/lex.c has been written to new6a/lex.go
but also to internal/asm/asm.go, because I'm going to factor
out some common code rather than convert it four times.

Change-Id: I01d5dfd6a9be3ef6191581560bdddd0ac0e8bc58
Reviewed-on: https://go-review.googlesource.com/3142
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
rsc committed Jan 21, 2015
1 parent 24dfaba commit 9e2f8fd
Show file tree
Hide file tree
Showing 11 changed files with 9,162 additions and 0 deletions.
1,102 changes: 1,102 additions & 0 deletions src/cmd/internal/asm/asm.go

Large diffs are not rendered by default.

804 changes: 804 additions & 0 deletions src/cmd/internal/asm/lexbody.go

Large diffs are not rendered by default.

992 changes: 992 additions & 0 deletions src/cmd/internal/asm/macbody.go

Large diffs are not rendered by default.

741 changes: 741 additions & 0 deletions src/cmd/new5a/a.y

Large diffs are not rendered by default.

491 changes: 491 additions & 0 deletions src/cmd/new5a/lex.go

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions src/cmd/new6a/a.y

Large diffs are not rendered by default.

1,102 changes: 1,102 additions & 0 deletions src/cmd/new6a/lex.go

Large diffs are not rendered by default.

680 changes: 680 additions & 0 deletions src/cmd/new8a/a.y

Large diffs are not rendered by default.

887 changes: 887 additions & 0 deletions src/cmd/new8a/lex.go

Large diffs are not rendered by default.

991 changes: 991 additions & 0 deletions src/cmd/new9a/a.y

Large diffs are not rendered by default.

688 changes: 688 additions & 0 deletions src/cmd/new9a/lex.go

Large diffs are not rendered by default.

0 comments on commit 9e2f8fd

Please sign in to comment.