Skip to content

Commit f14ebf3

Browse files
committed
Fix broken links and default dark theme
1 parent 3dcf34d commit f14ebf3

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

book/book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ version = "0.1"
99
[output.html]
1010
google-analytics = "UA-168768722-1"
1111
additional-css = ["theme/custom.css"]
12+
preferred-dark-theme = "Rust"
1213

1314
[output.html.search]
1415
enable = true

book/src/01_calculator/exercise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ To get most out of this chapter, it is recommended to at least try the first exe
44

55
1. Add support for multiplication and division to the calculator and allow computations on floating numbers `f32`. Can you include standard operator precedence?
66
2. JIT with [cranelift-simplejit](https://docs.rs/cranelift-simplejit/0.64.0/cranelift_simplejit/)
7-
3. JIT with [gcc-jit](http://swgillespie.me/gccjit.rs/gccjit/)
7+
3. JIT with [gcc-jit](https://github.com/swgillespie/gccjit.rs)

book/src/01_calculator/grammar_lexer_parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This grammar basically defines the syntax and semantics where
2727
* unary or binary expressions are made of `Term` and `Operator` (`"+"` and `"-"`)
2828
* the only *atom* is integer `Int`
2929

30-
Given our grammar, we will use [pest](https://pest.rs/) which is a powerful *parser generator* of PEG grammars. (For more details on pest, checkout the [pest book](https://pest.rs/book/))
30+
Given our grammar, we will use [pest](https://bitbegin.github.io/pest-rs/) which is a powerful *parser generator* of PEG grammars. (For more details on pest, checkout the [pest book](https://bitbegin.github.io/pest-rs/book/)
3131

3232
`pest` *derives* the parser `CalcParser::parse` from our grammar
3333

book/src/01_calculator/jit_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ We will use [inkwell](https://github.com/TheDan64/inkwell) which provides a safe
1010

1111
### Alternatives
1212

13-
Other code generators that you can use (see the [exercises](./exercise.md)) in this book (not at mature as LLVM) are [cratelift-simpljit](https://docs.rs/cranelift-simplejit/0.64.0/cranelift_simplejit/index.html) and [gcc-jit](http://swgillespie.me/gccjit.rs/gccjit/).
13+
Other code generators that you can use (see the [exercises](./exercise.md)) in this book (not at mature as LLVM) are [cratelift-simpljit](https://docs.rs/cranelift-simplejit/0.64.0/cranelift_simplejit/index.html) and [gcc-jit](https://github.com/swgillespie/gccjit.rs).

book/src/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The following are my guidelines
3535
Here is the outline of the contents
3636
3737
* [Crash Course on Computing](./crash_course.md) which we briefly set up the definitions and foundations
38-
* We create our first programming language `Calc` that supports simple integer addition and subtraction. The simplicity allows us to touch a lot of important topics. We will use [PEG](https://en.wikipedia.org/wiki/Parsing_expression_grammar) to define our grammar, [pest](https://pest.rs) to generate our `CalcParser` and explain what AST is and interpreting the AST means. Next, we will introduce JIT compilation and use [inkwell](https://github.com/TheDan64/inkwell) to JIT compile our `Calc` language from its AST. To show an alternative compilation approach, we will create a Virtual Machine and a Runtime environment and discuss its features. Finally, we will write a simple REPL for our `Calc` language and test out different execution paths.
38+
* We create our first programming language `Calc` that supports simple integer addition and subtraction. The simplicity allows us to touch a lot of important topics. We will use [PEG](https://en.wikipedia.org/wiki/Parsing_expression_grammar) to define our grammar, [pest](https://bitbegin.github.io/pest-rs/) to generate our `CalcParser` and explain what AST is and interpreting the AST means. Next, we will introduce JIT compilation and use [inkwell](https://github.com/TheDan64/inkwell) to JIT compile our `Calc` language from its AST. To show an alternative compilation approach, we will create a Virtual Machine and a Runtime environment and discuss its features. Finally, we will write a simple REPL for our `Calc` language and test out different execution paths.
3939
* TODO: We will introduce `Jeslang` (a statically typed language) and gradually work our way up from `Calc` language to create `Jeslang` together
4040
* TODO: Object system and object oriented programming
4141
* TODO: Functional language

0 commit comments

Comments
 (0)