This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
45 changed files
with
473 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ __pycache__/ | |
out/ | ||
|
||
\.vscode/ | ||
\.pytest_cache/ | ||
|
||
site/ | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Pytest | ||
echo "Running pre-commit hooks" | ||
pytest -vv -p no:cacheprovider | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Tests must pass before committing" | ||
exit 1 | ||
fi | ||
#### | ||
|
||
# Pycodestyle | ||
pycodestyle src/* --ignore=E501 | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Tests must pass before committing" | ||
exit 1 | ||
fi | ||
#### | ||
|
||
# Prevent master commit | ||
branch="$(git rev-parse --abbrev-ref HEAD)" | ||
|
||
if [ "$branch" = "master" ]; then | ||
echo "You can't commit directly to master branch" | ||
exit 1 | ||
fi | ||
#### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
# TODO | ||
|
||
## Fixes | ||
- [x] Fix **break** and **continue** not branching if the parent block is not the loop | ||
- [x] Fix constant declaration not allowing types | ||
- [ ] Fix Type declaration not expecting square brackets (for lists) | ||
- [ ] Fix input function | ||
- [x] Should not allow declaring the type to an existing variable | ||
- [ ] Fix not being able to return user-defined structs and classes | ||
- [ ] Fix not being able to overload operators on user-defined structs and classes | ||
- [x] Fix Python error on empty input | ||
- [ ] Unicode doesn't work on Windows platforms | ||
- [ ] Fix string and list type declaration not working | ||
- [ ] Fix base unary operators being applied before user defined ones | ||
|
||
## Improvements | ||
- [ ] Allow any type for lists/tuples (currently only int) | ||
- [ ] Allow any type for range (currently only int) | ||
- [x] Allow any type for casting | ||
- [x] Change casting syntax | ||
- [ ] Allow more operators on different types such as strings | ||
- [ ] Improve warning messages | ||
- [ ] Add indentation related errors | ||
- [ ] Add docs for as and is | ||
- [x] Add docs for as and is | ||
- [ ] Remove clang as a dependency | ||
- [x] Change from anonymous structs to identified (to allow proper struct types) | ||
- [ ] Move error messages from source files to typechecker | ||
- [ ] Fix array types not working and empty lists | ||
- [ ] Catch struct/class used parameters that are not initialized | ||
- [ ] Add support for functions with same name but different parameters | ||
|
||
## Features | ||
- [ ] Implement Null (maybe) | ||
- [ ] Implement Null (maybe someday) | ||
- [ ] Implement Tuples | ||
- [ ] Implement Dictionary | ||
- [ ] Implement Empty lists | ||
- [ ] Implement 'in' as a boolean result | ||
- [ ] Implement anonymous functions | ||
- [x] Implement alias | ||
- [ ] Implement Closure | ||
- [ ] Implement string interpolation | ||
- [ ] Implement Enums | ||
- [x] Implement unsigned numbers | ||
- [x] Implement operator overloading | ||
- [ ] Implement defer keyword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
halo==0.0.22 | ||
llvmlite==0.26.0 | ||
llvmlite==0.27.0 | ||
docopt==0.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# Setup Git Hooks | ||
cd .git/hooks/ | ||
ln -s -f ../../.hooks/pre-commit.sh ./pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.