Refactor identifiers. Intended for c/c++ like symbol identifiers.
Go to file
Ed_ aec095a9f0 did some reorganization, build script changes
Moved header and source to code

Changed all build scripts to just be powershell (preferred)
Added clang format (but forgot that you cannot format zpl because it hangs clang format)

Code changes:
* Removed long names just using short names (there is an issue with the opts_compile...)
* Removed zpl.refactored.h (its generated now when `.\build.ps1 test` is run
* Modified zpl.h to just have the radix sort modification.
2023-03-13 20:17:12 -04:00
.vscode did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
project did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
scripts did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
Test did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
thirdparty did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
.editorconfig fixed up debug logs and fatal asserts. 2023-03-12 22:38:21 -04:00
.gitignore did some reorganization, build script changes 2023-03-13 20:17:12 -04:00
LICENSE Create LICENSE 2023-03-12 21:47:10 -04:00
Readme.md did some reorganization, build script changes 2023-03-13 20:17:12 -04:00

refactor

A code identifier refactoring app. Intended for c/c++ like identifiers.

Parameters :

  • -src : Source file to refactor
  • -dst : Destination file after the refactor (omit to use the same as source)
  • -spec : Specification containing rules to use for the refactor.

Syntax :

  • not Omit word or namespace.
  • word Fixed sized identifier.
  • namespace Variable sized identifiers, mainly intended to redefine c-namespace of an identifier.
  • , is used to delimit arguments to word or namespace.
  • L-Value is the signature to modify.
  • R-Value is the substitute ( only available if rule does not use not keyword )

TODO:

  • Possibly come up with a better name.
  • Cleanup memory usage (it hogs quite a bit for what it does..)
  • Split lines of file and refactor it that way instead (better debug, problably negligable performance loss, worst case can have both depending on build type)
  • Accept multiple files at once -files