summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lift all source code into src/ dirinto-srcAdrian Thurston2020-10-18137-8/+10
|
* cgil: rust, catch and emit loop labels with 'l: while ... syntaxAdrian Thurston2020-10-131-4/+16
|
* if using loop labels for breaking, don't put the label at the end alsoAdrian Thurston2020-10-131-2/+3
| | | | This isn't tolerated in rust codegen, but other langs handled it ok.
* some renaming of jobs and steps in github workflowAdrian Thurston2020-10-131-4/+4
|
* removed ragel examples left over from time repos were oneAdrian Thurston2020-10-1026-3231/+0
|
* rust uints don't have trailing 'u' on themAdrian Thurston2020-10-101-1/+1
|
* replced bare send syntax whith << and <- formsAdrian Thurston2020-07-186-185/+191
| | | | | | Elimintates associated ambiguity between extending statements and starting a new one. Bare send was a nice idea, but it is too much for the language to bear.
* added production redefinition testsAdrian Thurston2020-05-116-1/+146
|
* dist fixAdrian Thurston2020-05-091-3823/+1
|
* thinning out the test case set in rlhc.dAdrian Thurston2020-05-053822-1781086/+0
|
* added clean-local targets to remove workin dirsAdrian Thurston2020-05-055-0/+14
|
* bump version to 0.14.1colm-0.14.1Adrian Thurston2020-04-171-4/+4
|
* allow colm-command (-w) to be a full pathAdrian Thurston2020-04-141-3/+7
| | | | Don't try and compute the path to the command when it is already specified.
* include prefix in SED_SUBST, somehow got lostAdrian Thurston2020-04-141-0/+1
|
* correct prodNum as we combine productions to implement [...]Adrian Thurston2020-04-143-6/+12
| | | | refs #112
* renamed DefList and LelDefList to the more accurate ProdList, LelProdListAdrian Thurston2020-04-1215-112/+112
|
* first cut of a redefine statementAdrian Thurston2020-04-127-51/+138
| | | | | | | | Redefine happens during declaration. The existing langEl is removed from the map and a newly-declared lel replaces it. If the new list of productions references [...] the productions from the previous lel are moved into the new one, in its place. A copy would be preferrable, as move may require some fixup, but move gives an initial functional implementation. refs #112
* making exported vars available from C codeAdrian Thurston2020-04-104-0/+62
| | | | | | Addes an array of exports to runtime data. Also declares each export as an integer. The value of the export can be passed to colm_get_gloal(). They are named colm_export_<export-name>. refs #116.
* minor dist fixesAdrian Thurston2020-03-281-1/+1
|
* split longest-match structs into components that live here and in ragelAdrian Thurston2020-03-278-239/+177
|
* trimming down parsedata.h and parsetree.hAdrian Thurston2020-03-227-1177/+121
| | | | | These files belong in ragel, however there are some structs we need to keep here. Trim these files down to the bare so we can tease out what we need.
* inputdata.h is an easy remove from libfsmAdrian Thurston2020-03-2215-386/+10
|
* use a static link with libcolm.a when running out of the source treeAdrian Thurston2020-03-223-4/+6
| | | | | | | | | | A dynamic link is proving complicated on OSX. When the package is configured to install to a new install location, but make install hasn't happened yet the link fails This may indicate we are not getting the code we think we are. We can eschew all these risks with a static link and reserve dynamic linking for when we are running from the installed location. This patch also includes some testing fixes
* updated github workflow for basic package name colm, added -e to test/dist.shAdrian Thurston2020-03-212-5/+5
|
* removed version.h from libfsm, updated the dist testAdrian Thurston2020-03-216-32/+15
|
* removal of some files only belonging in ragel, install libfsm to include/libfsmAdrian Thurston2020-03-1616-3572/+16
|
* some cleanup of the configure.ac scriptAdrian Thurston2020-03-151-49/+31
|
* moved source files into commit repositoryAdrian Thurston2020-03-14106-258/+233
|
* moved ragel/ to libfsm/Adrian Thurston2020-03-1490-3/+2
|
* moved rlhc (now calling it cgil) to it's own placeAdrian Thurston2020-03-1418-8/+12
| | | | cgil: Code Gen Intermediate Language
* removing ragel source code, makefile definitions releated to ragelAdrian Thurston2020-03-1414-13043/+9
|
* removed ragel docs, old makefiles, todo, vim, etcAdrian Thurston2020-03-1461-13191/+2
|
* remove the ragel tests, export runtests for use by ragelAdrian Thurston2020-03-08176-28128/+3
|
* forked off ragel, keeping libfsm and rlhc in colm repositoryAdrian Thurston2020-03-0878-4386/+54
| | | | | Split off ragel, leaving behind libfsm and the rlhc code. Intend to use both of those components in colm.
* test suite: various updates to allow running on OSXAdrian Thurston2020-03-078-10/+16
|
* Merge pull request #107 from computerquip/standalone-executablesAdrian D. Thurston2020-02-243-3/+32
|\ | | | | add flag to support standalone executables
| * add flag to support standalone executablesZachary Lund2020-02-153-3/+32
|/
* osx linker will not accept -rpath=X, must use a space (achieved with a comma)Adrian Thurston2020-01-311-1/+1
|
* eliminate usage of --transform from tar -cf commandAdrian Thurston2020-01-311-2/+3
| | | | | | | | Rather than using the --transform argument to tar to remove the .pack extension from the individual files when creating the tarball, simply rename the files after unpacking. The individual files will then live in the tarball with the .pack extension, but that's okay. The --transform argument is not available on osx tar.
* added config.h.in~ to gitignoreAdrian Thurston2020-01-311-0/+1
|
* use glibtoolize on darwinAdrian Thurston2020-01-311-1/+9
|
* colm: modified calling convention for colm wrapperAdrian Thurston2020-01-0918-177/+194
| | | | | | | | Changed the calling convention for colm-wrap (formerly colm-pack) so that we can substitute the colm program, once packing is implemented there. Makes the new wrapper args compatible with the existing args for the colm binary. refs #85
* ragel: don't send \n before closing }%%Adrian Thurston2020-01-0913-13/+13
| | | | | Sending a newline means a missing ; results in the error getting attributed to the next line. refs #103
* colm: use a string's location (if present) when pushing to an inputAdrian Thurston2020-01-096-44/+46
| | | | refs #103
* colm: added outdent check on literal concatenationsAdrian Thurston2020-01-092-45/+97
| | | | | | | | | | | | | | | | The colm language has an ambiguity between literal concatenations and distinct statements, where the first ends in string/accum/cons/pat and the second is a bare send. For example: match P "a b c d" "e f g h" Warn on some of these by checking for an outdent (relative to the first component) on top level concatenations. If the user does not outdent between separate intended statements we cannot help with this check. refs #95
* colm: eliminated the range-crosses-zero hack needed when alphtype was signedAdrian Thurston2020-01-082-29/+4
| | | | | | | In 900189a4d23f0180970f22479f44377973a2d330 we added an option to hack the parsing of hex literals to allow ranges that cross zero. This was necessary when alphtype was signed. Moving to an unsigned type eliminates the need for this.
* colm: using an unsigned char as alph type in scannerAdrian Thurston2020-01-0815-96/+122
| | | | | | | | | | | | | Switching to unsigned so we can reference chars with the high bit set in the way that is common when discussing utf and unicode: using hex chars. Negative values are really uncomfortable and don't lend themselves to specifying ranges. This change is for the parser and stream/input code only. The collected tree data still uses char, which makes it convenient to extract the data from a top-down or bottom-up load. If we change the tree type we need to cast the pointers all over the loading code. refs #104 refs #97 refs #81
* colm: removed flags field from the kid structAdrian Thurston2020-01-082-7/+9
| | | | | We eliminated the use of this field some time ago, but never removed the field from the struct.
* suppress unused variable warning for when --disable-debug is usedAdrian Thurston2020-01-071-3/+13
|
* eliminated unused var warning when sizeof(int) != sizeof(long)Adrian Thurston2020-01-051-0/+2
| | | | refs #97