summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #124 from Grommish/prAdrian Thurston2021-01-181-0/+9
|\ | | | | Correct for cross-compiling
| * Correct for cross-compilingDonald Hoskins2020-12-231-0/+9
| | | | | | | | Signed-off-by: Donald Hoskins <grommish@gmail.com>
* | version bump 0.14.60.14.6Adrian Thurston2021-01-181-1/+1
| |
* | fix vm_pop_type for big-endian systemsAdrian Thurston2021-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change the pop to cast the pointer and take the value using a pointer to the requested type, then return that tmp. Previously we were taking the value using the tree type, then casting the value. During the cast of the value the high bits are dropped, and that's where the value actually lives, when on a big-endian system. Didn't notice the problem on little-endian systems because it happens to work fine there. Fixes #126.
* | version bump 0.14.50.14.5Adrian Thurston2021-01-031-2/+2
| |
* | various refcount fixesAdrian Thurston2021-01-038-54/+151
|/ | | | | | - added downref when undoing a tree push - using correct opcode for undoing pushing stream - added an upref when sending back ignored trees
* version bump to 0.14.40.14.4Adrian Thurston2020-12-231-1/+1
|
* removed duplicate version COLM_VERSIONAdrian Thurston2020-12-233-10/+5
| | | | | This was left over from the time colm and ragel were in one repos. Now just use VERSION and PUBDATE.
* include version in libfsm library install pathAdrian Thurston2020-12-231-1/+1
|
* added with_ignore(tree) iteratorAdrian Thurston2020-12-238-12/+73
| | | | | | | | | | | | This is identical to the basic tree iterator, except it visits ignore tokens. This makes it possible to rewrite comments, albeit, primitively. Constructors for tokens don't work right. Though we can set the data field. The following code can be used to turn comments into newlines: for I1: comment in with_ignore(Flux) { I1.data = "\n" }
* version bump to 0.14.30.14.3Adrian Thurston2020-12-091-4/+4
|
* updated expected output after bugfix in astring formattingAdrian Thurston2020-12-091-1/+1
|
* don't use InputLoc in GenAction so we can keep it trivial.Adrian Thurston2020-12-093-4/+5
|
* casting template type pointers to void* before passing to memmove funcsAdrian Thurston2020-12-097-35/+38
| | | | | | | More recent compilers will now warn about moving and copying non-trivial types, due to the potential for internal pointers. This is a risk the libraries always had, and it is expected to not put those things into the containers. Casting to void* removes the new warnings and better expresses what the code is doing.
* added config.h.in~ to git ignore listAdrian Thurston2020-12-091-0/+1
|
* need to re-issue va_start before the second vsnprintfAdrian Thurston2020-12-091-0/+1
|
* use fopencookie to avoid leaking FILE structsAdrian Thurston2020-12-083-8/+85
| | | | | | | If we use fdopen for stdin/out/err we cannot close it to free the file struct without also closing the file descriptor. If fopencookie is available, use that to wrap the file descriptor, but allow closing without closing the fd. This is useful when embedding in long running programs.
* dump_contents is only used when DEBUG is enabledAdrian Thurston2020-12-071-0/+2
| | | | Wrap dump_contents in #ifdef DEBUG.
* don't leak the stream_impl::line_len arrayAdrian Thurston2020-12-071-0/+4
|
* version bump to 0.14.20.14.2Adrian Thurston2020-11-251-4/+4
|
* 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