summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* lift all source code into src/ dirinto-srcAdrian Thurston2020-10-18135-1/+47688
|
* replced bare send syntax whith << and <- formsAdrian Thurston2020-07-182-4/+9
| | | | | | 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.
* 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.
* 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-126-49/+136
| | | | | | | | 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.
* use a static link with libcolm.a when running out of the source treeAdrian Thurston2020-03-221-2/+4
| | | | | | | | | | 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
* moved source files into commit repositoryAdrian Thurston2020-03-1498-6/+59322
|
* added config.h.in~ to gitignoreAdrian Thurston2020-01-311-0/+1
|
* cmake: restore projectKonstantin Podsvirov2019-10-233-0/+22
|
* the config.h file now goes to srcAdrian Thurston2019-09-092-0/+10
| | | | | | | | Any piece of the system may need to use config.h. Put that in /src and add -Isrc to CPPFLAGS. The colm package uses defs.h for configuration. It gets installed because some public headers depend on it.
* moved the original colm src dir to /colmAdrian Thurston2019-09-0892-58489/+0
|
* merging aapl src dirs: added CmpStr and CmpString to colm/aaplAdrian Thurston2019-09-084-11/+11
| | | | | | | | CmpStr is defined in colm/*.h so we need to also move it aside when we add it to aapl. With this commit there are no more diffs between the aapl src dirs, with the exception of a three files added to the aapl-repos package. Will use this as the definitive version.
* cmake export from project directoryKonstantin Podsvirov2019-08-062-9/+8
|
* cmake export from build treeKonstantin Podsvirov2019-07-242-0/+3
|
* support _IN_ _EX_ indentation in string accumulatorsAdrian Thurston2019-05-257-50/+65
|
* pushing the trim decision to run-timeAdrian Thurston2019-05-248-36/+139
| | | | | | | | | The trim and no-trim operators are both now in the expression. In places where we want the print mechanism to decide if it trims or not, we lift the trim operator out of the expression and into the send expression, then pass it to the print and send instructions. This way the stream or input (parser) can control the trim (auto_trim feature) with the expression overriding the default.
* added a get option to retrieve auto_trim from bytecodeAdrian Thurston2019-05-235-26/+44
|
* added and auto_trim flag to stream anad inputAdrian Thurston2019-05-227-4/+64
| | | | | When set to true, all tree prints to the stream or sends to the input will result in a trim. Achieved by passing trim to the generic print.
* version bump to 0.13.0.7Adrian Thurston2019-05-141-1/+1
|
* patch for cmake - colmKram2019-05-011-1/+1
|
* can't send parse errors to cerr as textAdrian Thurston2019-03-011-2/+3
| | | | Fix from Wictor Lund.
* allow referencing a tree in reduction actionsAdrian Thurston2018-12-175-9/+78
| | | | syntax is $*N
* use -Wl,--no-undefined only on linuxAdrian Thurston2018-12-131-1/+5
| | | | refs #253
* disabled the experimental postfix reduceAdrian Thurston2018-12-131-2/+3
| | | | | | | | Considered using this as a means of transmitting parsed frontend to common reducer in Ragel ... way too error prone though. May revive later on, however the C++ wrapper for FILE is not standard. refs #251
* don't use reported line as index when tracking line lenthsAdrian Thurston2018-12-122-9/+17
| | | | | Starting line may not always be 1, for example when we split a stream. Want the freedom to report arbitrary lines.
* make tree_to_str available in the libraryAdrian Thurston2018-12-123-19/+21
|
* transfer locations once we find some dataAdrian Thurston2018-12-121-3/+4
| | | | | If we don't wait for data we may get the location at the end of an empty stream.
* stream: track line lengths and use to restore during push backAdrian Thurston2018-12-122-4/+39
|
* make it optional to clean trees as we reduceAdrian Thurston2018-12-124-4/+14
| | | | | Was always freeing trees after each reduction action. Can now turn this off and have the trees underneath what we have reduced available.
* make location file name and column available in Colm codeAdrian Thurston2018-12-027-24/+86
|
* use rpath for linking when running from installedAdrian Thurston2018-07-151-1/+2
| | | | | Was doing this for source based invocations, will also do for installed invocations.
* removed the buffers from structs, not needed anymoreAdrian Thurston2018-07-141-14/+0
| | | | | | These where there to allow for structs to be treated like trees during the split, without crashing, but likely resulting in an unstable system. Served their purpose, now gone.
* some optimization of undo_commit: don't always create runbufsAdrian Thurston2018-07-131-4/+21
|
* don't create an empty run buf every time we hit stream endAdrian Thurston2018-07-132-26/+11
|
* fix for optimized append wherby we were not respecting run_buf->offsetAdrian Thurston2018-07-133-46/+74
|
* some improvements to the (still broken) optimized appendAdrian Thurston2018-07-133-42/+90
| | | | Split up the optimized append between input struct and stream.
* delegate splitting to the stream_impl classAdrian Thurston2018-07-133-62/+72
|
* various input cleanup, removed line info from input_impl_seqAdrian Thurston2018-07-123-179/+121
|
* split stream funcs out of input.cAdrian Thurston2018-07-124-574/+621
|
* some work on optimized input append, still disabledAdrian Thurston2018-07-121-35/+84
|
* split SOURCE type into SOURCE for opened files and ACCUM for RT textAdrian Thurston2018-07-122-72/+73
|
* some function name changes, added disabled optimizationsAdrian Thurston2018-07-121-71/+101
|
* freeing leaked bufs from input.cAdrian Thurston2018-07-112-21/+38
|
* replace eof_sent in input interface with bit in pda_runAdrian Thurston2018-07-107-25/+18
|
* some cleanup of eof interfaceAdrian Thurston2018-07-104-27/+13
| | | | | Still have two bools concerning eof. Can't unify these yet ... need break down the two concepts to try to unify.
* eof funcs can come out of stream interfaceAdrian Thurston2018-07-102-52/+27
|
* eos_sent can be removed from input/streamAdrian Thurston2018-07-101-2/+0
|
* improvements to free bytecodes, bytecode def cleanupAdrian Thurston2018-07-104-36/+23
|