summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* specify the min/max for char for both signed and unsignedarm-host-typesAdrian Thurston2021-10-301-1/+1
|
* use the 'signed' prefix when specifying the size of the signed typesAdrian Thurston2021-10-301-4/+4
|
* use SCHAR_MIN and SCHAR_MAX for signed char host typeAdrian Thurston2021-10-301-1/+1
|
* decide char signedness based on value of CHAR_MINAdrian Thurston2021-10-301-12/+12
|
* remove github action workflow, nowhere to run at presentAdrian Thurston2021-10-241-38/+0
|
* allow the base expression in deref and offset to be an expressionAdrian Thurston2021-09-2114-50/+63
| | | | | | Previously allowed only identifier as the base. This is necessary to use the generated DATA() as the base in these expressions, which can be modified by access and therefore must be an expression.
* bump version to 0.14.70.14.7Adrian Thurston2021-02-091-2/+2
|
* fix: make string pointers from locals, not temp stringsAdrian Thurston2021-02-071-2/+5
| | | | fixes #127
* moved creation of version.h and src/include/colm to configureAdrian Thurston2021-02-072-70/+12
|
* build fixes: gen/if[123].cc must depend on gen/if[123].hAdrian Thurston2021-02-061-3/+3
|
* remove all dependence on BUILT_SOURCESAdrian Thurston2021-01-312-30/+97
| | | | | Still running into issues on gentoo with BUILT_SOURCES. Instead make all the necessary dependencies explicit, using the source code files.
* 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
|