-
Notifications
You must be signed in to change notification settings - Fork 0
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
Compiler subsystem #26
Commits on Jan 21, 2021
-
This commit adds the compiler subpackage to implement issue #25. The compiler subpackage currently contains abstract base classes and will receive implementations later.
Configuration menu - View commit details
-
Copy full SHA for a697e8c - Browse repository at this point
Copy the full SHA a697e8cView commit details -
The RegexParser is a Parser implementation identifying the start and end of a code section with regular expressions. This is the standart implementation modified to implement issue #25.
Configuration menu - View commit details
-
Copy full SHA for d280444 - Browse repository at this point
Copy the full SHA d280444View commit details -
multiple improvements to compiler abc
- add CompileError for exceptions during compiling - replace Mapping in Code.execute with Dict because exec needs a dict - move line offset handling from CodeBuilder to Parser - replace name and loader with ModuleSpec
Configuration menu - View commit details
-
Copy full SHA for a0e98e3 - Browse repository at this point
Copy the full SHA a0e98e3View commit details -
fix RegexParser, improve CompileError
This commit changes RegexParser to comply to the new abc. Furthermore, CompileError is changed to show the section which failed.
Configuration menu - View commit details
-
Copy full SHA for d740e95 - Browse repository at this point
Copy the full SHA d740e95View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc926c7 - Browse repository at this point
Copy the full SHA dc926c7View commit details -
add generic code implementation to compiler
This commit adds the current implementation of code objects to the compiler subpackage. This requires to raise the minimal python version to 3.8 as stated in issue #25.
Configuration menu - View commit details
-
Copy full SHA for b55eee9 - Browse repository at this point
Copy the full SHA b55eee9View commit details -
remove pypy3 from tested versions
This is necessary because the generic code implementation requires the CodeType.replace method, which is available in python 3.8+.
Configuration menu - View commit details
-
Copy full SHA for 5d7d217 - Browse repository at this point
Copy the full SHA 5d7d217View commit details
Commits on Jan 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e98570a - Browse repository at this point
Copy the full SHA e98570aView commit details -
This commit adds a facade to the compiler subsystem as mentioned in issue #25.
Configuration menu - View commit details
-
Copy full SHA for 3874e2b - Browse repository at this point
Copy the full SHA 3874e2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 685b5ed - Browse repository at this point
Copy the full SHA 685b5edView commit details
Commits on Jan 23, 2021
-
This commits adds the dedenting feature as a decorator as mentioned in issue #25.
Configuration menu - View commit details
-
Copy full SHA for 04d0366 - Browse repository at this point
Copy the full SHA 04d0366View commit details -
Configuration menu - View commit details
-
Copy full SHA for c88e286 - Browse repository at this point
Copy the full SHA c88e286View commit details -
Configuration menu - View commit details
-
Copy full SHA for b83d3ac - Browse repository at this point
Copy the full SHA b83d3acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 600f927 - Browse repository at this point
Copy the full SHA 600f927View commit details -
To allow for better testing, the code for detecting code lines is moved into a seperate method.
Configuration menu - View commit details
-
Copy full SHA for 80daf79 - Browse repository at this point
Copy the full SHA 80daf79View commit details -
move the tracking of the section number into the parser
Before this commit, every builder kept track the section number themself, resulting in redundancy and susceptibility to errors. This commit modifies compiler.CodeBuilder.add_* to accept the current section number.
Configuration menu - View commit details
-
Copy full SHA for e37d469 - Browse repository at this point
Copy the full SHA e37d469View commit details -
Configuration menu - View commit details
-
Copy full SHA for e74531b - Browse repository at this point
Copy the full SHA e74531bView commit details -
add bytecode code implementation
This commit adds a implementation of compiler.Code in python bytecode as mentioned in issue #25. It is implemented using a generator and currently slower than the generic implementation to allow for variables to be passed to .execute. If MAKE_FUNCTION gets faster or the compiler subsystem gets changed it may be faster.
Configuration menu - View commit details
-
Copy full SHA for 99cab7f - Browse repository at this point
Copy the full SHA 99cab7fView commit details
Commits on Jan 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 047505c - Browse repository at this point
Copy the full SHA 047505cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aab53f - Browse repository at this point
Copy the full SHA 8aab53fView commit details
Commits on Jan 25, 2021
-
Improve typing of compiler subpackage
This commit replaces a few type hints in the compiler subpackage with generics. This allows detaching a CodeBuilderDecorator which was detached from another CodeBuilderDecorator and fixes the result of CodeBuilder.copy() not having the same type as his 'parent'.
Configuration menu - View commit details
-
Copy full SHA for 65d5a08 - Browse repository at this point
Copy the full SHA 65d5a08View commit details
Commits on Jan 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 19440c7 - Browse repository at this point
Copy the full SHA 19440c7View commit details
Commits on Jan 27, 2021
-
replace CompileError with SyntaxError and correct lineno
To allow for better error discovery, this commit replaces CompileError with a normal SyntaxError with the correct line number set.
Configuration menu - View commit details
-
Copy full SHA for 16e5402 - Browse repository at this point
Copy the full SHA 16e5402View commit details -
Configuration menu - View commit details
-
Copy full SHA for e52b8eb - Browse repository at this point
Copy the full SHA e52b8ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac669b7 - Browse repository at this point
Copy the full SHA ac669b7View commit details -
refactor GenericCodeBuilder to allow for Python 3.7+
To allow for Python version 3.7 to be used, GenericCodeBuilder now uses the ast module instead of CodeType.replace.
Configuration menu - View commit details
-
Copy full SHA for 5db5224 - Browse repository at this point
Copy the full SHA 5db5224View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9319966 - Browse repository at this point
Copy the full SHA 9319966View commit details -
This commit updates the workflow to not run MyPy on pypy-3.7 because it is not supported.
Configuration menu - View commit details
-
Copy full SHA for ae70c67 - Browse repository at this point
Copy the full SHA ae70c67View commit details -
Configuration menu - View commit details
-
Copy full SHA for efdee0b - Browse repository at this point
Copy the full SHA efdee0bView commit details