This repository was archived by the owner on Jun 27, 2022. It is now read-only.
Development Release v0.1.dev5 #61
Luna-Klatzer
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
v0.1.dev5 - 2021-11-09
Fourth Development Version, which fixes a license error (
MITinstead ofGPL-3.0) and updated the pypi.org READMEChangelog
Added
initialise_default_pathsinparac.constto initialise the set the constvariables DEFAULT_LOG_PATH, DEFAULT_BUILD_PATH and DEFAULT_DIST_PATH. This
allows for more customisation for the defaults paths in Para-C and avoids
the default paths being wrong after changing the working directory while running.
errorsinBaseErrorListenerfor storing received errors duringthe parsing process (Both for the Pre-Processor and Compiler).
ParaCSyntaxErrorwith proper implementation of error logs.ParaCSyntaxErrorCollectionfor storing multiple SyntaxErrorsand report them at once when initialised.
get_input_stream_from_ctx,get_original_textandget_original_text_from_token.errors and display them.
util/pathtools.pyensure_pathlib_path, which will convertthe passed value to a pathlib.Path, if it's not already one. It will also
resolve all sys-links.
logic_streamtoListenerand updated methods to allow for properfuture implementation of the logic stream.
append_antlr_ctxto the ABC ClassLogicStreamand itsimplementation.
program_ctxto allFileRunContextimplementationclasses.
Changed
type identifier[],which can utilise list functionality, but also practically stay normal arrays at the same time if not resized. For
more info see the lang document.
./src/pytestto raise errors.build-exe.pyand rewrote structure to allow runtime in the root directory.pathlib.Pathand convert to it if isa different type (str, bytes).
validate_file_endingtohas_valid_file_endingand fixed a minor bug replacing theallcall (all file endings must be true) toany, meaning now only one needs to be true, whichis the correct and intended way of handling this.
compiler-versiontag inparac-config.jsontoparac-version_Alignastoalignas_Alignoftoalignof_Atomictoatomic_Booltobool_Complextocomplex_Imaginarytoimaginary_Noreturntonoreturn_Static_asserttostatic_assert__Thread_localtothread_localconst.SEPARATORand updatedget_relative_file_nameto properlyapply to the change
RuntimeError(Mismatching file_names) inget_relative_file_nameParacCompiler.validate_syntax()and removed theadditional usage of a listener to walk through the files, even though
a simple parse was enough for validating the syntax.
parac_clitoparac_ext_cliand published it to pypientry_cli.pyhere, and moved the function toparac-ext-clihere. This function can now be called
using
cli_run(); This means that the main repo and module can only be runas module, and the CLI is a fully separate entity.
Removed
list<t>type from the Grammar file.WORK_DIRinparac.constand implemented dynamic fetching to allow forworkdir changes while running.
cleanup_path_str()andcheck_valid_path_name()fromutil/pathtools.py.entryPointSpecifierin ParaC.g4__extension____builtin_va_arg__builtin_offsetof_Generic(Might be added later again with new syntax)__inline____stdcall__declspec__attribute____asm__typeof__version oftypeoffrom the grammar file (ParaC.g4)gotoas it is not supported in the Para-C logic (ParaC.g4)boolfromParacCompiler.validate_syntax()as it isunnecessary with the raised exception when encountering a SyntaxError
This discussion was created from the release Development Release v0.1.dev5.
All reactions