Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #5

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CompileFlags:
Add: [-std=c17, -Weverything, -Wno-missing-prototypes, -Wno-empty-translation-unit, -Wno-cast-qual]
Add: [-std=c17, -Weverything, -Wno-missing-prototypes, -Wno-empty-translation-unit, -Wno-cast-qual]
54 changes: 27 additions & 27 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"customizations": {
"vscode": {
"extensions": [
// Update `../.vscode/extensions.json` as well.
"aaron-bond.better-comments",
"albert.tabout",
"alexanderte.dainty-one-dark-pro-vscode",
"github.copilot",
"gruntfuggly.todo-tree",
"leonardssh.vscord",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
"pkief.material-icon-theme",
"rreverser.llvm",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-british-english",
"twxs.cmake",
"vadimcn.vscode-lldb",
"wakatime.vscode-wakatime",
"xaver.clang-format",
"yzhang.markdown-all-in-one"
]
}
},
"onCreateCommand": "git submodule update --init --recursive",
"postStartCommand": "sudo apt update && sudo apt install clang-format -y && sudo apt-get -y install ninja-build"
}
"customizations": {
"vscode": {
"extensions": [
// Update `../.vscode/extensions.json` as well.
"aaron-bond.better-comments",
"albert.tabout",
"alexanderte.dainty-one-dark-pro-vscode",
"github.copilot",
"gruntfuggly.todo-tree",
"leonardssh.vscord",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
"pkief.material-icon-theme",
"rreverser.llvm",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-british-english",
"twxs.cmake",
"vadimcn.vscode-lldb",
"wakatime.vscode-wakatime",
"xaver.clang-format",
"yzhang.markdown-all-in-one"
]
}
},
"onCreateCommand": "git submodule update --init --recursive",
"postStartCommand": "sudo apt update && sudo apt install clang-format -y && sudo apt-get -y install ninja-build"
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ cmake*/
.idea
src/main
src/main.ilk
src/main.pdb
src/main.pdb
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
rev: v8.18.0
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
hooks:
- id: clang-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
52 changes: 26 additions & 26 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
// Update `../.devcontainer/devcontainer.json` as well.
"recommendations": [
"aaron-bond.better-comments",
"albert.tabout",
"alexanderte.dainty-one-dark-pro-vscode",
"github.copilot",
"gruntfuggly.todo-tree",
"leonardssh.vscord",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
"pkief.material-icon-theme",
"rreverser.llvm",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-british-english",
"twxs.cmake",
"vadimcn.vscode-lldb",
"wakatime.vscode-wakatime",
"xaver.clang-format",
"yzhang.markdown-all-in-one",
],
"unwantedRecommendations": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"ms-vscode-remote.remote-containers",
]
}
// Update `../.devcontainer/devcontainer.json` as well.
"recommendations": [
"aaron-bond.better-comments",
"albert.tabout",
"alexanderte.dainty-one-dark-pro-vscode",
"github.copilot",
"gruntfuggly.todo-tree",
"leonardssh.vscord",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
"pkief.material-icon-theme",
"rreverser.llvm",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-british-english",
"twxs.cmake",
"vadimcn.vscode-lldb",
"wakatime.vscode-wakatime",
"xaver.clang-format",
"yzhang.markdown-all-in-one",
],
"unwantedRecommendations": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"ms-vscode-remote.remote-containers",
]
}
38 changes: 19 additions & 19 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"[c]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"cmake.preferredGenerators": [
"Ninja",
"Visual Studio 17 2022",
],
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 13,
"editor.formatOnSave": true,
"editor.suggest.localityBonus": true,
"git.enableCommitSigning": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
"workbench.colorTheme": "Dainty – One Dark Pro (chroma 0, lightness 1)",
"workbench.iconTheme": "material-icon-theme",
}
"[c]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"cmake.preferredGenerators": [
"Ninja",
"Visual Studio 17 2022",
],
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 13,
"editor.formatOnSave": true,
"editor.suggest.localityBonus": true,
"git.enableCommitSigning": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
"workbench.colorTheme": "Dainty – One Dark Pro (chroma 0, lightness 1)",
"workbench.iconTheme": "material-icon-theme",
}
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# It uses the same pattern rule for gitignore file
# https://git-scm.com/docs/gitignore#_pattern_format

* @skifli
* @skifli
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Exeme's community aims to to be welcoming and friendly. To make sure this doesn'
> This is *not* a comprehensive list. Rather, take it in the spirit in which it's intended - a guide to to making communication and participation easier in the community.

This code of conduct applies to all spaces managed by the Exeme Project (*not just the Exeme language*). This includes communication systems, forums, emails, issues trackers, and any other spaces the community uses for communication. It applies to all your communication and conduct in these spaces, including things you say, emails, chats, slides, videos, posters, and signs you display in these spaces.

Our standards for acceptable behavior should be upheld by all community members, regardless of their status. Everyone is encouraged to speak up in response to any behavior they believe is inappropriate, threatening, offensive or harmful.

## Detailed guidance
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ For example, see the top of [**src/main.c**](https://github.com/exeme-project/ex

### Other Files

Every file type uses a variation of the above license text (*MIT License*) with similar formatting.
Every file type uses a variation of the above license text (*MIT License*) with similar formatting.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

- [Roadmap](#roadmap)

TODO.
TODO.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The design folder contains all documentation related to the design of the Exeme

## [**Error Codes Index**](error-codes-index/README.md)

This file contains a list of all error codes, and their descriptions. Whenever the compiler emits an error, it will also emit the error code. The documentation relating to the error code can be found in this folder, and a further explanation as well as guides on how to fix it can be found here.
This file contains a list of all error codes, and their descriptions. Whenever the compiler emits an error, it will also emit the error code. The documentation relating to the error code can be found in this folder, and a further explanation as well as guides on how to fix it can be found here.
2 changes: 1 addition & 1 deletion docs/design/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ fn main() {
The *`import`* declaration is used to import packages. The *`import`* declaration is a top-level declaration, and must be the first declaration in a file (after the optional package declaration). In this example it imports the *`io`* subpackage from the *`std`* package.

> [!NOTE]\
> To find out more about packages, see **[`packages/README.md`](packages/README.md)**.
> To find out more about packages, see **[`packages/README.md`](packages/README.md)**.
2 changes: 1 addition & 1 deletion docs/design/namespaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ fn main() {

## Generic Notes

* Whenever you import a package, the compiler will automatically assign the imported code to a namespace with the same name as the package.
* Whenever you import a package, the compiler will automatically assign the imported code to a namespace with the same name as the package.
4 changes: 2 additions & 2 deletions docs/design/packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To use a package, use the **`import`** keyword followed by the package identifie

> [!IMPORTANT]\
> Use `.` to represent folders in the package identifier. For example, if you have a package called **`github`** with a sub-package called **`auth`**, you would use **`github.auth`** to import the **`auth`** package.
>
>
> When you import a package, it automatically is assigned its own namespace. Please note that this is based on the package's name, and is irrespective of whether it is a subpackage. For example, if you import the **`github.auth`** package, it will be assigned the namespace **`auth`**, not **`github_auth`**.
>
> The standard library takes precedence over user-defined packages. For example if there is a package in a sub-folder of the current folder called **`std`**, it will not be imported if you use **`import "std"`**.
Expand Down Expand Up @@ -95,4 +95,4 @@ require (
extern fn auth() {
; ...
}
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0001.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ a = ¬
^ error[L0001]: unknown character
```

[^1]: Unknown means it is not recognised as the start to a lexer token.
[^1]: Unknown means it is not recognised as the start to a lexer token.
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0002.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ a *=* 1 # Known token is *=, but *=* is not a known token.
--> main.exl
1 | a *=* 1
^ error[L0002]: unexpected continuation of token '*='
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0003.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ b = "b # Unterminated string literal
```
--> main.exl
1 | a = 'a
^^ error[L0003]: unterminated character literal
^^ error[L0003]: unterminated character literal
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0004.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ a = '\a'
--> main.exl
1 | a = '\a'
^^ error[L0004]: invalid escape sequence
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0005.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ a = 'ab'
--> main.exl
1 | a = 'ab'
^^ error[L0005]: multi-character char literal
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0006.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ a = 1.a
--> main.exl
1 | a = 1.a
^ error[L0006]: invalid character for float
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/L0007.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ a = 1.1.1
--> main.exl
1 | a = 1.1.1
^ error[L0007]: too many decimal points for float
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/P0001.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ a b = 1
^ error[P0001]: expected 1 parser token before assignment, got 2
```

[^1]: n == 0 || n > 1
[^1]: n == 0 || n > 1
2 changes: 1 addition & 1 deletion docs/error-codes-index/P0002.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ The parser expects a parser token of type `{x}` before / after a(n) `{y}` token.
--> main.exl
1 | 1 = 1
^ error[P0002]: expected parser token of type 'identifier' before assignment, got 'integer'
```
```
2 changes: 1 addition & 1 deletion docs/error-codes-index/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ This page lists all the error codes emitted by the Exeme compiler.
## Parser

* [P0001](P0001.md)
* [P0002](P0002.md)
* [P0002](P0002.md)
2 changes: 1 addition & 1 deletion lib/std-exl/std.exl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class str {
self._char_buf = NULL;
self.length = 0;
}
}
}
2 changes: 1 addition & 1 deletion lib/std-llvm-ir/std.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ define void @str_SEP___init__(%str* %self, i8* %string) nounwind {
store i64 0, i64* %2 ; store 0

ret void
}
}
2 changes: 1 addition & 1 deletion links.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ https://www.pauladamsmith.com/blog/2015/01/how-to-get-started-with-llvm-c-api.ht

https://blog.exaloop.io/python-llvm/

https://github.com/exeme-project/exeme-lang/tree/b5680f31a7558fe7868b08a88fca2e5da1ba82ed/docs
https://github.com/exeme-project/exeme-lang/tree/b5680f31a7558fe7868b08a88fca2e5da1ba82ed/docs
2 changes: 1 addition & 1 deletion programs/complex.exl
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ b

;= A
multi-line
comment =;
comment =;
2 changes: 1 addition & 1 deletion programs/main.exl
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ func isPrime(n: i32) -> bool {

func main() {
out(isPrime(100))
}
}
2 changes: 1 addition & 1 deletion programs/test.exl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
func a(a: a)
func a(a: a)
Loading