summaryrefslogtreecommitdiff
path: root/src/compiler.cc
Commit message (Collapse)AuthorAgeFilesLines
* renamed DefList and LelDefList to the more accurate ProdList, LelProdListAdrian Thurston2020-04-121-12/+12
|
* moved source files into commit repositoryAdrian Thurston2020-03-141-0/+1263
|
* moved the original colm src dir to /colmAdrian Thurston2019-09-081-1247/+0
|
* can't send parse errors to cerr as textAdrian Thurston2019-03-011-2/+3
| | | | Fix from Wictor Lund.
* separating the input from stream typeAdrian Thurston2018-07-081-3/+3
|
* reusing stream impls when parsing from 'input'Adrian Thurston2018-07-041-0/+2
| | | | | | | | To detect parsing from a top level input and to avoid appending it to a parser's top level (thus creating a tree), added a new type for input so we can replace the parser's top level. This change forces us to a two level structure where stream seq is at the top and stream data underneath. Requires us to hack the destructor so that we don't multiple delete the stream impl.
* use stream_impl_ct directlyAdrian Thurston2018-07-021-9/+1
| | | | Don't put it behind a stream_impl_seq
* added colm_program as an arg to input functionsAdrian Thurston2018-06-251-2/+2
| | | | need this to perform input logging
* some cleanup of types and names in the input subsystemAdrian Thurston2018-06-171-1/+1
|
* allow switching on production numbersAdrian Thurston2018-03-091-1/+3
| | | | | Added a form to case statements that accepts a production name instead of a pattern.
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+19
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-13/+6
|
* extract stream file names so we can use them after the colm program is deletedAdrian Thurston2016-03-161-0/+9
|
* prep code for managing stream name in the stream destructorAdrian Thurston2016-03-021-3/+3
| | | | | | | Requires strduping static names, and also copying names when stealing location information when a stream is pushed onto a stream. Can't yet delete (strings need after colm program is deleted). Need a solution for delated delete of a program's strings.
* host adapters now have unique names are are accessed with func pointersAdrian Thurston2016-02-191-6/+5
| | | | | This eliminates symbol collisions present when linking multiple colm programs into the same executable.
* allow omission of location in reductionsAdrian Thurston2015-11-301-2/+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.
* added an option, -b, for specifying the name of the program objectAdrian Thurston2015-11-271-2/+3
| | | | | This also triggers the omission of C adapter funcs, which need to be present only once in a binary that includes a colm code.
* load and generate accessors for $$ and $rhselAdrian Thurston2015-10-071-143/+0
|
* collect and emit reduction action itemsAdrian Thurston2015-10-061-3/+22
|
* generate the union and size parse tree according to itAdrian Thurston2015-10-051-2/+35
|
* put reducer code in its own file, use local parse tree poolAdrian Thurston2015-10-051-3/+31
|
* traverse both parse tree and real tree during reduceAdrian Thurston2015-10-051-5/+10
|
* added syntax dedicated to reductionsAdrian Thurston2015-10-051-3/+4
| | | | | This avoids interferrence with existing parsing code. Calling the commit/reduce code only if the reduce construct is used.
* load reduction actions and generate a commit containing themAdrian Thurston2015-10-041-0/+69
|
* set debug realms when parsing patterns and replacementsAdrian Thurston2015-06-271-0/+2
|
* large scale symbol renaming in C codecolm-barracuda-v3Adrian Thurston2015-05-221-7/+7
| | | | using _ conventions for C, camelCase of C++
* more application of C naming conventionsAdrian Thurston2015-05-151-10/+10
|
* naming convention improvementsAdrian Thurston2015-05-151-4/+4
|
* some naming cleanupAdrian Thurston2015-05-101-1/+1
|
* merged FsmRun and PdaRun into pda_run, eliminated typedefAdrian Thurston2015-05-101-2/+2
|
* cleanup of the coroutine codeAdrian Thurston2015-05-101-2/+2
|
* code cleanup and some fixes for iter unwind since splitting unwind/destroyAdrian Thurston2015-05-101-18/+24
|
* added stack pointer to the extension func arg listAdrian Thurston2015-04-031-2/+2
|
* always emit the host-call functionAdrian Thurston2015-04-011-37/+38
|
* first cut of C extensionsAdrian Thurston2015-04-011-0/+48
|
* generalized loopCleanup code to a stack unwind code vectorAdrian Thurston2015-03-221-1/+0
| | | | | Going to use this for general stack unwinding at return, iterator destroy and possibly exceptions as well.
* code movement and conventionsAdrian Thurston2015-02-071-1/+1
|
* first cut of value-based ints, test cases passAdrian Thurston2015-01-271-2/+0
|
* function name cleanupAdrian Thurston2015-01-271-3/+3
|
* 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-2/+2
|
* fixes for the pattern and constructor parsersAdrian Thurston2015-01-101-2/+3
|
* don't allocate a constructor for parse statementsAdrian Thurston2015-01-041-10/+7
| | | | Just need a consItemList for the list of items we are going to parse.
* no longer allocating a langEl to genericsAdrian Thurston2015-01-041-10/+14
| | | | enerics are now structs. Also added the TYPE_GERERIC unique type.
* make stream and parser overlay structAdrian Thurston2015-01-021-1/+2
|
* parser converted to struct typeAdrian Thurston2015-01-021-1/+1
| | | | Got a basic compile/run working with a struct-based parser object.
* rolling over to struct type for streamAdrian Thurston2014-12-281-2/+1
|
* started converting stream to object typeAdrian Thurston2014-12-261-7/+5
|
* converted the global object to a structAdrian Thurston2014-12-251-0/+2
|