Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NiTiSon committed Sep 19, 2024
1 parent 3d8b0dc commit ea3bacd
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 17 deletions.
23 changes: 23 additions & 0 deletions docs/guidelines/coding-style.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
icon: material/code-braces
description: Hi
---
# Coding style

Consistent code style is good practice to keep code more readable across whole project, that makes it more readable and makes it easier to collaborate within a development team or contributors.

## Language guidelines
+ Prefer modern features and constructions than older ones
+ Use latest language version (whenever it possible)
+ Use language keywords for data types instead of them full name:
+ `u32` but not `std::numerics::UInt32` nor `UInt32`

## Prefer *fast* boolean operators
+ Use fast `&&` and `||` boolean operators instead of `&` and `|` operators

## Style prefer
+ Use [K&R](https://en.wikipedia.org/wiki/Indentation_style#K&R) style for braces
+ Prefer tabulation than spaces
+ If spaces is used: use 4 spaces for indentation
+ Store prefered indentation style to `.editorconfig` file of your project
+ Do not make too long lines
4 changes: 4 additions & 0 deletions docs/guidelines/naming-guideline.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
icon: material/format-font
---

# Naming guidelines

!!! warning
Expand Down
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ hide:
- toc
---

# Home

!!! warning

Site still in developing...
Expand Down
3 changes: 3 additions & 0 deletions docs/runtime/bytecode/break.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
icon: material/cog-box
---
# `break` instruction
Signals the NLR to inform debugger that a break point is been reached

Expand Down
3 changes: 3 additions & 0 deletions docs/runtime/bytecode/nope.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
icon: material/cog-box
---
# `nope` instruction
Does nothing

Expand Down
8 changes: 0 additions & 8 deletions docs/runtime/bytecode/pop.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/runtime/bytecode/push.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
icon: material/cog-box
---
# `push` instructions
Push instructions are pushing values onto stack for future using

Expand Down
9 changes: 9 additions & 0 deletions docs/runtime/bytecode/store.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
icon: material/cog-box
---
# `store` instructions

!!! warning

Site still in developing...
Please wait
5 changes: 0 additions & 5 deletions docs/runtime/list_of_all_bytecodes.md

This file was deleted.

8 changes: 6 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ extra:
nav:
- index.md
- Runtime:
- runtime/versions/zero.md
- runtime/list_of_all_bytecodes.md
- Bytecodes:
- runtime/bytecode/nope.md
- runtime/bytecode/break.md
- runtime/bytecode/push.md
- runtime/bytecode/store.md
- Guidelines:
- guidelines/coding-style.md
- guidelines/naming-guideline.md

0 comments on commit ea3bacd

Please sign in to comment.