summaryrefslogtreecommitdiff
path: root/src/pdarun.h
Commit message (Collapse)AuthorAgeFilesLines
* moved source files into commit repositoryAdrian Thurston2020-03-141-0/+471
|
* moved the original colm src dir to /colmAdrian Thurston2019-09-081-477/+0
|
* replace eof_sent in input interface with bit in pda_runAdrian Thurston2018-07-101-2/+2
|
* more separation of input and streamAdrian Thurston2018-07-101-1/+0
|
* select between parser/plain stream at compile time, switch to "_"Adrian Thurston2018-07-091-1/+1
| | | | | | | | | Now that we have multiple parser using the same stream it is not responsible to set a pointer to parser from stream and rely on that to decide where to send (or to check if it is a simple stream). Back to making the decision at compile time. Also switching from "stds" to "_".
* some more separation of stream_t and input_tAdrian Thurston2018-07-091-4/+4
|
* separating the input from stream typeAdrian Thurston2018-07-081-4/+4
|
* reusing stream impls when parsing from 'input'Adrian Thurston2018-07-041-1/+0
| | | | | | | | 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.
* balancing pushes and pullsAdrian Thurston2018-06-251-2/+0
|
* added colm_program as an arg to input functionsAdrian Thurston2018-06-251-4/+4
| | | | need this to perform input logging
* starting to separate run time stream impls from the baseAdrian Thurston2018-06-181-1/+1
| | | | | Can't yet make it fully abstract since there are a number of instances direct access inside stream_impl. Need to put those behind some abstract functions.
* some cleanup of types and names in the input subsystemAdrian Thurston2018-06-171-1/+1
|
* removed stopId from parse frag instructionAdrian Thurston2018-05-151-1/+1
|
* unified parse frag and finishAdrian Thurston2018-05-151-4/+4
|
* added an instruction for the final reduce commitAdrian Thurston2018-05-151-0/+3
| | | | | Was doing this in the parse finish instruction. Moving this out is the last change to make the frag and finish parses identical.
* don't use parse finish to pull out parse result, use dedeicated instructionAdrian Thurston2018-05-141-2/+4
| | | | Working towards unifying the parse frag and parse finish instructions.
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+18
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-3/+4
|
* commit shift count needs to be initialized to -1Adrian Thurston2016-03-231-0/+6
| | | | | An initial value of zero for commit shift count means we can erroneously fail a parse when we back up to zero shifts.
* added a fail-parsing flag that allows immediate abort from reduction actionsAdrian Thurston2016-03-011-0/+3
| | | | | This flag causes all alternate parsing paths to be aborted and pda_run to immedately fail. Tested with reduction actions.
* host adapters now have unique names are are accessed with func pointersAdrian Thurston2016-02-191-9/+0
| | | | | This eliminates symbol collisions present when linking multiple colm programs into the same executable.
* clear the data trees as well as parse trees during reductionAdrian Thurston2015-12-021-0/+1
| | | | | This change brings memory consumption in line with a ragel+kelbt parse for large grammars and inputs.
* allow omission of location in reductionsAdrian Thurston2015-11-301-3/+7
| | | | | | | 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-1/+1
| | | | Allows large tokens. Note there are other places this is needed.
* split reducers into their own classAdrian Thurston2015-11-051-2/+5
| | | | Previously selected with a runtime int. Using reduction name as the class name.
* declare lhs and rhs vars before useAdrian Thurston2015-10-071-4/+3
|
* generate the union and size parse tree according to itAdrian Thurston2015-10-051-0/+2
|
* put reducer code in its own file, use local parse tree poolAdrian Thurston2015-10-051-2/+3
|
* added syntax dedicated to reductionsAdrian Thurston2015-10-051-0/+9
| | | | | This avoids interferrence with existing parsing code. Calling the commit/reduce code only if the reduce construct is used.
* put parse tree allocator struct into pda_run as a pointer, allowing overrideAdrian Thurston2015-10-051-0/+2
|
* working on a commit that can execute reduction actionsAdrian Thurston2015-10-041-0/+2
| | | | | | First track if the result is used. If not, we can remove parse trees at commit points. This is also the time to execute reduction actions so we can load as we parse. Not currently enabled (by way of omitting setting of not-used bit).
* large scale symbol renaming in C codecolm-barracuda-v3Adrian Thurston2015-05-221-136/+136
| | | | using _ conventions for C, camelCase of C++
* more application of C naming conventionsAdrian Thurston2015-05-151-35/+35
|
* naming convention improvementsAdrian Thurston2015-05-151-44/+31
|
* improved naming, moved generated parser code to subdir genAdrian Thurston2015-05-101-62/+56
|
* some naming cleanupAdrian Thurston2015-05-101-16/+16
|
* merged FsmRun and PdaRun into pda_run, eliminated typedefAdrian Thurston2015-05-101-52/+49
|
* cleanup of the coroutine codeAdrian Thurston2015-05-101-9/+10
|
* code cleanup and some fixes for iter unwind since splitting unwind/destroyAdrian Thurston2015-05-101-0/+1
|
* work in progress on a contiguous arg space prepared by callerAdrian Thurston2015-03-281-1/+2
| | | | Also fixed the tree downref in exit unwind. Not always a tree.
* some more code improvements in pdarunAdrian Thurston2015-02-071-3/+3
|
* code movement and conventionsAdrian Thurston2015-02-071-12/+11
|
* new backtrack-halt strategy: count shifts and checkpoint on commitAdrian Thurston2015-02-071-0/+2
| | | | | | Rather than count the number of retries present, which turns out to require lots of tests in various places. Just track shifts, regardless of retries. When comitting, store then, then only every backup to this point.
* 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
* some function name improvementsAdrian Thurston2015-01-111-3/+0
|
* various fixes for object semanticsAdrian Thurston2015-01-101-1/+1
|
* object semantics fixes for setting the parser contextAdrian Thurston2015-01-101-1/+1
|
* removed the generic pointer from LangElAdrian Thurston2015-01-051-4/+0
|
* more rough work on object-based listsAdrian Thurston2015-01-041-0/+1
|