Skip to content

Commit

Permalink
Some restructuring around the concepts and projects chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-o committed Sep 21, 2024
1 parent 41eebd1 commit 0fad879
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
20 changes: 15 additions & 5 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
# Summary

[Getting Started](getting_started.md)

# Foreword

- [Getting Started](getting_started.md)

---

# A Glimpse of C3

- [General Overview](general/general.md)
- [Hello World!](general/hello_world.md)
- [Modules and Generics](general/modules.md)

---

- [Examples](examples.md)
# Concepts and Projects

- [Concepts](concepts.md)
- [Using stdio]()
- [Filesystem]()
- [Echo Client/Server]()
- [Calculator Evaluator](./projects/calculator.md)
- [Writing an Allocator]()
- [Compiletime, Macros and Reflection]()

- [Projects](projects.md)
- [Echo TCP Client/Server]()
- [Writing an Allocator]()
- [Calculator Evaluator](./projects/calculator.md)
12 changes: 12 additions & 0 deletions src/concepts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Concepts

> 🚧 Not all topics are written yet and are a work in progress
From here, we will be covering specific topics in C3. These can range from common operations, to data structures and standard library usage. This is to give more examples on how these features and functions are used. This is in no way a deep dive into these, but enough to hopefully kickstart learning C3's ecosystem.

> For most of these examples, we will slowly go over each part and then do a code dump at the end. If you're using a project to run these examples, you can use `c3c run` or `c3c build`. Otherwise you can compile and run a file with `c3c compile-run --run-once <thefile>.c3`.
Topics we will cover:
- [Using stdio](): reading and writing to the console with stdio
- [The Filesystem](): reading and writing files
- [Compiletime, Macros and Reflection]()
4 changes: 1 addition & 3 deletions src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ From here, we will be covering specific topics in C3. These can range from commo

Topics we will cover:
- [Using stdio](): reading and writing to the console with stdio
- [The Filesystem](): reading and writing files
- [TCP Server](): a basic echo TCP client and server
- [Evaluating a basic expression](./projects/calculator.md): create a small parser and evaluator for a calculator
- [The Filesystem](): reading and writing files
12 changes: 12 additions & 0 deletions src/projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Projects

> 🚧 Not all topics are written yet and are a work in progress
This is a showcase of small projects you could create in C3. These examples are meant to serve as a "real world" usage of the language.

> For most of these examples, we will slowly go over each part and then do a code dump at the end. If you're using a project to run these examples, you can use `c3c run` or `c3c build`. Otherwise you can compile and run a file with `c3c compile-run --run-once <thefile>.c3`.
Projects:
- [TCP Server](): a basic echo TCP client and server
- [Writing an Allocator](): write a basic allocator that you can use to handle memory
- [Evaluating a basic expression](./projects/calculator.md): create a small parser and evaluator for a calculator

0 comments on commit 0fad879

Please sign in to comment.