summaryrefslogtreecommitdiff
path: root/src/program.c
Commit message (Collapse)AuthorAgeFilesLines
* moved source files into commit repositoryAdrian Thurston2020-03-141-0/+333
|
* moved the original colm src dir to /colmAdrian Thurston2019-09-081-337/+0
|
* make it optional to clean trees as we reduceAdrian Thurston2018-12-121-0/+6
| | | | | Was always freeing trees after each reduction action. Can now turn this off and have the trees underneath what we have reduced available.
* use parser, not input, in the send instructionsAdrian Thurston2018-07-091-1/+1
|
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* Add CMake projectKonstantin Podsvirov2018-01-291-0/+2
| | | | | | | | | | | | | Now implemented: - Bootstrap `colm` program from sources; - Install target `colm::coml` and `colm::libcolm` via CMake's `colm` package. Shadow build support via CMake. Tested with MSYS2 and MinGW-w64 on Windows and with GCC on Linux. Detected issue when sizeof(word_t) < sizeof(void*).
* allow program args to be passed in with lengthsAdrian Thurston2017-02-011-1/+7
| | | | In this mode we can pass in binary data.
* removed obsolete include alloca.hAdrian Thurston2017-01-141-1/+0
| | | | patch from Peter Reijnders
* minor fixes: a missing cast, no comma at enum end, no redefined typedefsPeter Reijnders2016-12-191-1/+1
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+19
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-6/+5
|
* added colm_error for extracting the error stringAdrian Thurston2016-08-231-0/+11
|
* added a function for retrieving the reducer contextAdrian Thurston2016-08-011-0/+5
|
* manage file name allocations and allow them to be exportedAdrian Thurston2016-03-091-0/+20
| | | | | | | File names used in locations need to live beyond a program delete, but allocating them when exporting locations is too costly. Instead manage them in the colm program and allow them to be exported so they can live beyond the colm program. Will do something similar with the token text.
* host adapters now have unique names are are accessed with func pointersAdrian Thurston2016-02-191-1/+1
| | | | | This eliminates symbol collisions present when linking multiple colm programs into the same executable.
* allow omission of location in reductionsAdrian Thurston2015-11-301-0/+2
| | | | | | | There is code in here for omission of location and data in reductions. Unfortunately we cannot enable the omission of data unless we make changes to the backtracking. In the current implementation we push the token data with an mcopy from the data in the token.
* dynamically size runbufs from extract_tokenAdrian Thurston2015-11-121-2/+2
| | | | Allows large tokens. Note there are other places this is needed.
* stash reduction class in programAdrian Thurston2015-11-051-0/+5
|
* put parse tree allocator struct into pda_run as a pointer, allowing overrideAdrian Thurston2015-10-051-2/+2
|
* large scale symbol renaming in C codecolm-barracuda-v3Adrian Thurston2015-05-221-60/+60
| | | | using _ conventions for C, camelCase of C++
* naming convention improvementsAdrian Thurston2015-05-171-17/+17
|
* more application of C naming conventionsAdrian Thurston2015-05-151-28/+27
|
* some naming cleanupAdrian Thurston2015-05-101-6/+6
|
* fixes for host-code function calls, added a couple test casesAdrian Thurston2015-04-031-50/+0
| | | | | | Calls into colm programs was broken since recent changes to calling conventions. Fixed and added a test case. Also added a test case for C extensions to colm programs.
* renamed push and pop to push_tree and pop_treeAdrian Thurston2015-03-201-7/+7
|
* cleanup, including removal of map and list element poolsAdrian Thurston2015-02-151-15/+0
|
* code cleanup and movementAdrian Thurston2015-02-151-12/+2
|
* first cut of value-based ints, test cases passAdrian Thurston2015-01-271-11/+11
|
* function name improvements in bytecodeAdrian Thurston2015-01-231-1/+1
|
* revert "removed GPL license file and stripped GPL headers"Adrian Thurston2015-01-231-0/+17
| | | | | | | | | | This reverts commit f04d3ede7dbb6d3edd6a9865ebf88c5e6d82f18e. Conflicts: src/codegen.cc src/ctinput.cc src/exports.cc src/fsmcodegen.cc
* renamed argv0 to arg0, fixed the leakAdrian Thurston2015-01-101-1/+1
|
* made list and map into structsAdrian Thurston2015-01-021-15/+0
|
* start using stream and parser structsAdrian Thurston2015-01-021-2/+0
|
* don't downref the global streams, they are now structsAdrian Thurston2014-12-281-4/+0
|
* don't double free the global, add argv to parent as struct fieldAdrian Thurston2014-12-251-7/+0
|
* more function cleanup in struct fieldsAdrian Thurston2014-12-251-3/+3
|
* some function renaming, global is now struct typeAdrian Thurston2014-12-251-1/+1
|
* converted the global object to a structAdrian Thurston2014-12-251-23/+8
|
* some renaming and cleanupAdrian Thurston2014-12-251-10/+10
|
* downref trees when deleting a structAdrian Thurston2014-12-201-0/+4
|
* free the non-tree heap items on program exitAdrian Thurston2014-12-201-0/+11
|
* split tree free into tree and object freeAdrian Thurston2014-11-091-9/+14
|
* removed GPL license file and stripped GPL headersAdrian Thurston2014-10-221-17/+0
|
* stack block pop: utilize the full space of the blockAdrian Thurston2014-01-211-4/+5
|
* renamed colm dir to srcAdrian Thurston2013-06-081-0/+378
| | | | | | Renamed 'colm' dir to 'src'. To allow colm to work out of the installed location or the source tree, while the installed includes reference <colm/include.h>, a symlink to '..' is placed at src/include/colm.
* revert "moved 'colm' dir to 'src'"Adrian Thurston2012-08-011-261/+0
| | | | | | | | | | | Colm includes a library component with headers installed to a private dir inside include: $prefix/include/colm. We need our headers to reference each other using this colm prefix. This needs to be true for compiling our source and also for compiling external programs. It is conventient to have all the source in a directory called colm and then to use -I <source-root> when building colm. We use $prefix/include when building external programs. This reverts commit 247904a84430b8c9151fa6afb68f01b60afb92c9.
* munmap (free) the stack, relevant to long-lived programsAdrian Thurston2012-07-311-22/+24
|
* pass program arguments to colmRunProgram instead of colmNewProgram.Adrian Thurston2012-07-311-37/+42
| | | | | Idea with this is to make it possible to re-use an allocated program for more than one invocation.
* moved 'colm' dir to 'src'Adrian Thurston2012-07-011-0/+254