Commit Graph
2375 Commits
Author SHA1 Message Date
Chris HORLER 65cec8d9df exp2py: bump package version number and replace SCL references in README and setup.cfg 2022-09-28 21:59:58 +01:00
Chris HORLER c4704f4b06 exp2py: tests SCL -> stepcode 2022-09-28 21:58:44 +01:00
Chris HORLER cad07e6e16 exp2py: change file header StepClassLibrary (SCL) to STEPCODE project 2022-09-28 21:46:10 +01:00
Chris HORLER 82f0ac4fbd exp2py: change SCL package to stepcode package 2022-09-28 21:16:51 +01:00
bitbybit3d 28783de62b fix target_compile_definitions misspelling 2022-09-26 23:05:39 +01:00
Clifford Yapp 7dbda20be0 Remove base library from stepcode
Move specific pieces of logic still in use next to the individual parts
of the code that use them, and eliminate base from the code.
2022-09-26 20:52:17 +01:00
Clifford Yapp fdf271c888 Merge pull request #448 from stepcode/update_dev_guidelines
update contributing guidelines to allow more flexibility when accepti…
2022-09-25 15:21:15 -04:00
John Smith 8e9a68968c Changed Python SCL setup.cfg name to "stepcode-scl" so the package can be deployed to pypi.
The current package name, SCL, is too similar to existing pypi package names that the repository will not allow it to be committed. This change does not affect internal package name, which remains "SCL", just the name used to fetch the package from the pypi repository.

After this change is committed and posted to pypi, users will be able to fetch the package with `pip install stepcode-scl`.
2022-09-25 16:43:00 +01:00
Chris HORLER 520e7a3789 update contributing guidelines to allow more flexibility when accepting PRs 2022-09-25 16:24:30 +01:00
Clifford Yapp 4bab26918d strcpy -> strncpy 2022-06-11 20:14:25 +01:00
Clifford Yapp efd353858e Use strncpy to transfer nm to name 2022-06-11 20:14:25 +01:00
Clifford Yapp 9b15e1c697 Make a variety of adjustments to string printing, free temporary copy of EXPRto_String output. 2022-06-11 20:14:25 +01:00
Clifford Yapp 64873b4dd7 Use strncat to copy name to buf 2022-06-11 20:14:25 +01:00
Clifford Yapp 28c5d26429 As with BUFSIZ, make sure MAX_LEN buffers have room to null terminate. 2022-06-11 20:14:25 +01:00
Clifford Yapp 43231cdbc9 Set default types, note a bad problem with how sc_hash is set up. 2022-06-11 20:14:25 +01:00
Clifford Yapp 7209a3e75d Use free on fileList[index] 2022-06-11 20:14:25 +01:00
Clifford Yapp 88e512c92c Use strncpy to copy path to buf 2022-06-11 20:14:25 +01:00
Clifford Yapp 09deafbe23 Use strncpy to initialize schName and newName 2022-06-11 20:14:25 +01:00
Clifford Yapp 830e29fb80 Add more initializers 2022-06-11 20:14:25 +01:00
Clifford Yapp 3c17e71b63 Make sure we have item, and don't continue after we delete it. 2022-06-11 20:14:25 +01:00
Clifford Yapp 1d46986e80 Passing back the internal pointer to a std::string is evidently a Bad Idea - just send back a std::string. 2022-06-11 20:14:25 +01:00
Clifford Yapp ca1d62719a If we need to allocate an EntityNode, clean it up. 2022-06-11 20:14:25 +01:00
Clifford Yapp a6bea3572e Delete temporary element after use 2022-06-11 20:14:25 +01:00
Clifford Yapp ae933edba5 Add destructor, use array delete 2022-06-11 20:14:25 +01:00
Clifford Yapp 93c79df2df Initialize, fix variable types. 2022-06-11 20:14:25 +01:00
Clifford Yapp 3e9fe17fcd Delete _headerInstances in destructor 2022-06-11 20:14:25 +01:00
Clifford Yapp 874dca8499 Add destructor for CmdMgr 2022-06-11 20:14:25 +01:00
Clifford Yapp c7bd9fa995 Use array deletes, clean up temporary objects. 2022-06-11 20:14:25 +01:00
Clifford Yapp 4446d02063 Adjust name of example header as well 2022-06-11 17:41:58 +01:00
Clifford Yapp 97c3d193a1 sc_cf.h -> config.h
Remove unused sc_cf_cmake.h.in, rename sc_cf.h to the more standard name
"config.h", don't call the generator twice
2022-06-11 17:41:58 +01:00
Clifford Yapp 65e0f704fd Using newer standards, remove sc_stdbool.h 2022-06-11 17:41:13 +01:00
Clifford Yapp d36c0dde5b Add initializers for TYPEis entities 2022-06-11 17:40:25 +01:00
Clifford Yapp 8ed3d2fe33 Fix output for SC_TRACE_FPRINTF option (used for debugging - reports where generated code in exp2cxx output comes from.) 2022-06-11 17:40:25 +01:00
Clifford Yapp 61d34a352c Add some default initializers in the generated C++ code. 2022-06-11 17:40:25 +01:00
Clifford Yapp 6c9a2582c6 Use calloc to initialize the names array. 2022-06-11 17:33:24 +01:00
Clifford Yapp 0fd354cb39 Make sure BUFSIZ buffers have room for NULL
In case we do end up with buffers with contents at the BUFSIZ limit,
make sure we leave room to set a null termination char.  Not always
clear where these buffers might get used or re-used, so just bump their
size across the board.
2022-06-11 17:33:24 +01:00
Chris HORLER fd8b7e3a6b exp2py: reduce TYPE output to class level pass statement for simple types 2022-06-11 14:18:23 +01:00
Chris HORLER 0be8f439ef exp2py: add initial OP_GROUP support 2022-06-11 14:18:23 +01:00
Chris HORLER 8a8ea3e23a exp2py: fix comparisons with None 2022-06-11 14:18:23 +01:00
Chris HORLER 70b5d0d0af exp2py: expressions are held in a 2-tree, processed recursively
* set OP_UNKNOWN on LHS
  * test for OP_DOT and OP_GROUP when processing identifier_
2022-06-11 14:18:23 +01:00
Chris HORLER 06ee050fb2 exp2py: add "property" to reserved words 2022-06-11 14:18:23 +01:00
Chris HORLER 472bd4cb12 exp2py: fix some indentation errors found in for and while loops 2022-06-11 14:18:23 +01:00
Chris HORLER fed696dc63 exp2py: raise NotImplementedError when appropriate 2022-06-11 14:18:23 +01:00
Chris HORLER 35da61660b exp2py: update repo gitignore to ignore all __pycache__ folders 2022-06-11 14:18:23 +01:00
Chris HORLER 0ef7755151 exp2py: first steps to fix output order and dependency logic 2022-06-11 14:18:23 +01:00
Chris HORLER 7aa4309848 exp2py: use relative imports for SCL library 2022-06-11 14:18:23 +01:00
Chris HORLER 3c21bf00ac Part21 Legacy Parser
* optimisations
    - remove list copy and try clauses
    - stop using token iterator
    - tab modules (for ply optimised mode)
    - add missing t_error function (for ply optimised mode)
  * useability
    - add option to only parse the header then exit
  * fixes
    - fix ComplexEntity creation, and simpify / correct AST creation
2022-06-11 14:18:23 +01:00
Chris HORLER 0f303d5c06 Part21 alternative Lexer / Parser specification
populates an sqlite database
2022-06-11 14:18:23 +01:00
Chris HORLER cfbd07306d prototype re2c based LL(3) Part21 parser 2022-06-11 14:18:23 +01:00
Chris HORLER cd8efa604f exploration of sqlite3 plugin (based on json1.c) for allowing high performance predicates, intended as a layer between ORM and direct database manipulation 2022-06-11 14:18:23 +01:00