summaryrefslogtreecommitdiff
path: root/src/reduce.cc
Commit message (Collapse)AuthorAgeFilesLines
* generate unescape only if neededAdrian Thurston2018-05-181-2/+13
|
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* fixed CmpReduceActionsAdrian Thurston2018-03-041-1/+1
| | | | | | Error in compare, which resulted in an improper sort, but no manifesting bug since the items out of order are placed into a switch statement with no fallthrough.
* declare reduction_info array staticAdrian Thurston2018-01-221-1/+1
|
* organization in reduce code generationAdrian Thurston2017-07-301-215/+230
|
* organizing the reduce code generatorAdrian Thurston2017-07-291-99/+160
|
* added a read_reduce statement to call postfix reducerAdrian Thurston2017-07-271-5/+9
| | | | Triggers the generation of the reducer. Accepts a stream.
* read-reduce: unescape token data to get proper pass throuhAdrian Thurston2017-07-261-1/+26
|
* added a reducer that can read the streaming postfix formatAdrian Thurston2017-07-251-30/+227
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+18
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-18/+4
|
* use tree_child in the reduction commitAdrian Thurston2016-03-231-1/+1
| | | | Otherwise ignores and attributes will put the walks out of sync.
* host adapters now have unique names are are accessed with func pointersAdrian Thurston2016-02-191-10/+10
| | | | | 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/+3
| | | | | 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-10/+108
| | | | | | | 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.
* reducer: cursor through rhs elements instead of starting from zeroAdrian Thurston2015-11-221-20/+90
|
* added line directives reduction code generatorAdrian Thurston2015-11-211-1/+8
|
* stash reduction class in programAdrian Thurston2015-11-051-7/+1
|
* split reducers into their own classAdrian Thurston2015-11-051-55/+75
| | | | Previously selected with a runtime int. Using reduction name as the class name.
* allow access to rhs elements by numberAdrian Thurston2015-11-011-31/+57
|
* allow multiple reducersAdrian Thurston2015-10-211-3/+11
| | | | selection is currently manual using a numberical identifier
* some bug fixes in construction of the reducerAdrian Thurston2015-10-201-0/+1
|
* reduction actions: add loc reference, elim duplicate labelsAdrian Thurston2015-10-081-18/+119
|
* declare lhs and rhs vars before useAdrian Thurston2015-10-071-33/+86
|
* load and generate accessors for $$ and $rhselAdrian Thurston2015-10-071-0/+219