Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chai2010 committed Aug 13, 2024
0 parents commit 19f7028
Show file tree
Hide file tree
Showing 169 changed files with 36,472 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* linguist-language=Go
Empty file added .nojekyll
Empty file.
45 changes: 45 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 2022 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

#
# waBook: Mini Markdown Book
# https://github.com/wa-lang/wabook
#

default:
wabook serve

build:
-rm book
wabook build
-rm book/.gitignore
-rm book/.nojekyll
-rm -rf book/.git
-rm -rf book/talks

make build-talks

build-talks:
mkdir -p ./book/talks
cp -r ./talks/static-fix-prefix ./book/talks/static
cp -r ./talks/go-compiler-intro ./book/talks/go-compiler-intro
cp ./talks/go-compiler-intro.html ./book/talks/go-compiler-intro.html

deploy:
-@make clean
wabook build
-rm book/.gitignore
-rm -rf book/.git
-rm -rf book/examples

cd book && git init
cd book && git add .
cd book && git commit -m "first commit"
cd book && git branch -M gh-pages
cd book && git remote add origin git@github.com:wa-lang/ugo-compiler-book.git
cd book && git push -f origin gh-pages

clean:
-rm -rf ./book

410 changes: 410 additions & 0 deletions appendix/readme.html

Large diffs are not rendered by default.

375 changes: 375 additions & 0 deletions ch1-basic/ch1-01-ugo.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions ch1-basic/ch1-02-mini-compiler.html

Large diffs are not rendered by default.

441 changes: 441 additions & 0 deletions ch1-basic/ch1-03-llvm-ir.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch1-basic/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch10-map/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch11-struct/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch12-method/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch13-closure/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch14-interface/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch15-panic/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch16-reflect/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch17-cgo/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch18-wasm/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch19-type-system/readme.html

Large diffs are not rendered by default.

472 changes: 472 additions & 0 deletions ch2-expr/ch2-01-add-sub.html

Large diffs are not rendered by default.

476 changes: 476 additions & 0 deletions ch2-expr/ch2-02-mul-div.html

Large diffs are not rendered by default.

535 changes: 535 additions & 0 deletions ch2-expr/ch2-03-parser.html

Large diffs are not rendered by default.

610 changes: 610 additions & 0 deletions ch2-expr/ch2-04-parser-v2.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch2-expr/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch20-bootstrap/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch21-lsp/readme.html

Large diffs are not rendered by default.

501 changes: 501 additions & 0 deletions ch3-hello-ugo/ch3-01.html

Large diffs are not rendered by default.

622 changes: 622 additions & 0 deletions ch3-hello-ugo/ch3-02.html

Large diffs are not rendered by default.

791 changes: 791 additions & 0 deletions ch3-hello-ugo/ch3-03.html

Large diffs are not rendered by default.

676 changes: 676 additions & 0 deletions ch3-hello-ugo/ch3-04.html

Large diffs are not rendered by default.

794 changes: 794 additions & 0 deletions ch3-hello-ugo/ch3-05.html

Large diffs are not rendered by default.

592 changes: 592 additions & 0 deletions ch3-hello-ugo/ch3-06.html

Large diffs are not rendered by default.

372 changes: 372 additions & 0 deletions ch3-hello-ugo/readme.html

Large diffs are not rendered by default.

457 changes: 457 additions & 0 deletions ch4-block-and-var/ch4-01.html

Large diffs are not rendered by default.

685 changes: 685 additions & 0 deletions ch4-block-and-var/ch4-02.html

Large diffs are not rendered by default.

677 changes: 677 additions & 0 deletions ch4-block-and-var/ch4-03.html

Large diffs are not rendered by default.

577 changes: 577 additions & 0 deletions ch4-block-and-var/ch4-04.html

Large diffs are not rendered by default.

541 changes: 541 additions & 0 deletions ch4-block-and-var/ch4-05.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch4-block-and-var/readme.html

Large diffs are not rendered by default.

517 changes: 517 additions & 0 deletions ch5-if-for/ch5-01.html

Large diffs are not rendered by default.

663 changes: 663 additions & 0 deletions ch5-if-for/ch5-02.html

Large diffs are not rendered by default.

675 changes: 675 additions & 0 deletions ch5-if-for/ch5-03.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch5-if-for/readme.html

Large diffs are not rendered by default.

514 changes: 514 additions & 0 deletions ch6-func/ch6-01.html

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions ch6-func/ch6-02.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch6-func/readme.html

Large diffs are not rendered by default.

626 changes: 626 additions & 0 deletions ch7-pkgs-files/ch7-01.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch7-pkgs-files/ch7-02.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch7-pkgs-files/ch7-03.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions ch7-pkgs-files/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch8-string/readme.html

Large diffs are not rendered by default.

364 changes: 364 additions & 0 deletions ch9-array/readme.html

Large diffs are not rendered by default.

Binary file added cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/wa-lang/ugo-compiler-book

go 1.17
Binary file added images/wasm-book.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
366 changes: 366 additions & 0 deletions index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 19f7028

Please sign in to comment.