Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | various refcount fixes | Adrian Thurston | 2021-01-03 | 1 | -2/+2 |
| | | | | | | - added downref when undoing a tree push - using correct opcode for undoing pushing stream - added an upref when sending back ignored trees | ||||
* | moved source files into commit repository | Adrian Thurston | 2020-03-14 | 1 | -0/+759 |
| | |||||
* | moved the original colm src dir to /colm | Adrian Thurston | 2019-09-08 | 1 | -740/+0 |
| | |||||
* | added a get option to retrieve auto_trim from bytecode | Adrian Thurston | 2019-05-23 | 1 | -10/+14 |
| | |||||
* | added and auto_trim flag to stream anad input | Adrian Thurston | 2019-05-22 | 1 | -0/+10 |
| | | | | | 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. | ||||
* | make location file name and column available in Colm code | Adrian Thurston | 2018-12-02 | 1 | -2/+2 |
| | |||||
* | don't create an empty run buf every time we hit stream end | Adrian Thurston | 2018-07-13 | 1 | -20/+0 |
| | |||||
* | fix for optimized append wherby we were not respecting run_buf->offset | Adrian Thurston | 2018-07-13 | 1 | -1/+1 |
| | |||||
* | some improvements to the (still broken) optimized append | Adrian Thurston | 2018-07-13 | 1 | -39/+25 |
| | | | | Split up the optimized append between input struct and stream. | ||||
* | delegate splitting to the stream_impl class | Adrian Thurston | 2018-07-13 | 1 | -11/+9 |
| | |||||
* | various input cleanup, removed line info from input_impl_seq | Adrian Thurston | 2018-07-12 | 1 | -119/+50 |
| | |||||
* | split stream funcs out of input.c | Adrian Thurston | 2018-07-12 | 1 | -573/+2 |
| | |||||
* | some work on optimized input append, still disabled | Adrian Thurston | 2018-07-12 | 1 | -35/+84 |
| | |||||
* | split SOURCE type into SOURCE for opened files and ACCUM for RT text | Adrian Thurston | 2018-07-12 | 1 | -69/+69 |
| | |||||
* | some function name changes, added disabled optimizations | Adrian Thurston | 2018-07-12 | 1 | -71/+101 |
| | |||||
* | freeing leaked bufs from input.c | Adrian Thurston | 2018-07-11 | 1 | -21/+37 |
| | |||||
* | replace eof_sent in input interface with bit in pda_run | Adrian Thurston | 2018-07-10 | 1 | -2/+0 |
| | |||||
* | some cleanup of eof interface | Adrian Thurston | 2018-07-10 | 1 | -10/+4 |
| | | | | | 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 interface | Adrian Thurston | 2018-07-10 | 1 | -44/+27 |
| | |||||
* | more separation of input and stream | Adrian Thurston | 2018-07-10 | 1 | -109/+47 |
| | |||||
* | removed parser from input, initting with input takes pointer to input_t | Adrian Thurston | 2018-07-09 | 1 | -6/+2 |
| | |||||
* | separating the input from stream type | Adrian Thurston | 2018-07-08 | 1 | -14/+40 |
| | |||||
* | some improvements to the the stream funcs | Adrian Thurston | 2018-07-07 | 1 | -43/+37 |
| | |||||
* | some better organization of the stream funcs | Adrian Thurston | 2018-07-06 | 1 | -5/+14 |
| | |||||
* | skip arg to get_parse_block needs to be a pointer | Adrian Thurston | 2018-07-04 | 1 | -9/+9 |
| | | | | | | Previously, all the pushed back text went to the top-level stream and it was okay to not persist between data calls. Since we started pushing back to the sub-streams we need to persist this using a pointer in the interface. | ||||
* | don't recurse into source streams when unsetting eof sent flag | Adrian Thurston | 2018-07-04 | 1 | -6/+6 |
| | |||||
* | reusing stream impls when parsing from 'input' | Adrian Thurston | 2018-07-04 | 1 | -2/+8 |
| | | | | | | | | 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 directly | Adrian Thurston | 2018-07-02 | 1 | -1/+1 |
| | | | | Don't put it behind a stream_impl_seq | ||||
* | when undoing consume of tree there might be some empty source bufs | Adrian Thurston | 2018-07-02 | 1 | -36/+60 |
| | | | | | Also added a type to the stream_impl impls so we can verify we have the right thing. | ||||
* | again more input push/pop balance fixes | Adrian Thurston | 2018-06-27 | 1 | -37/+94 |
| | |||||
* | more input push/pop balance fixes | Adrian Thurston | 2018-06-27 | 1 | -179/+136 |
| | |||||
* | balancing pushes and pulls | Adrian Thurston | 2018-06-25 | 1 | -13/+18 |
| | |||||
* | some simplification of tree functions | Adrian Thurston | 2018-06-25 | 1 | -26/+11 |
| | |||||
* | only need the type in the seq_buf and it doesn't need 'data' | Adrian Thurston | 2018-06-25 | 1 | -66/+52 |
| | |||||
* | removed the data section from the top level run buf type | Adrian Thurston | 2018-06-25 | 1 | -89/+2 |
| | | | | data is entirely contained to the sub-types | ||||
* | added colm_program as an arg to input functions | Adrian Thurston | 2018-06-25 | 1 | -55/+55 |
| | | | | need this to perform input logging | ||||
* | stash the head when consuming a tree and pop it when undoing | Adrian Thurston | 2018-06-25 | 1 | -7/+6 |
| | |||||
* | limit the undoing of consumed data | Adrian Thurston | 2018-06-25 | 1 | -15/+38 |
| | | | | | | When undoing the consume of make sure we don't send back more than we took out. Once we hit the limit then move backwards to the previous stream, which we now stash. | ||||
* | split the run_buf into two structs, one for seq, one for data | Adrian Thurston | 2018-06-23 | 1 | -62/+70 |
| | | | | Detangling the different types of stream. | ||||
* | can now simplify stream_impl_seq (top level stream) | Adrian Thurston | 2018-06-18 | 1 | -11/+0 |
| | |||||
* | added location information to stream interfaces | Adrian Thurston | 2018-06-18 | 1 | -0/+4 |
| | | | | | Last of the interface making, allows us to strip down stream_impl into just funcs pointer, making it entirely abstract. | ||||
* | wrapped eof_sent in stream funcs | Adrian Thurston | 2018-06-18 | 1 | -0/+26 |
| | |||||
* | collect and file operations only need to be in stream_impl_data | Adrian Thurston | 2018-06-18 | 1 | -13/+9 |
| | |||||
* | added close_stream to stream funcs | Adrian Thurston | 2018-06-18 | 1 | -0/+15 |
| | |||||
* | added print_tree to stream funcs | Adrian Thurston | 2018-06-18 | 1 | -0/+20 |
| | | | | | Selects between file and collect. Will want to also ensure only called on a "data" stream_impl. | ||||
* | added stream funcs for collect and flush | Adrian Thurston | 2018-06-18 | 1 | -3/+31 |
| | |||||
* | some org of stream_funcs | Adrian Thurston | 2018-06-18 | 1 | -27/+33 |
| | |||||
* | removing some direct access to stream_impl | Adrian Thurston | 2018-06-18 | 1 | -8/+7 |
| | |||||
* | moved stream destructor code to respective callbacks | Adrian Thurston | 2018-06-18 | 1 | -47/+41 |
| | |||||
* | use a define to declare multiple stream funcs | Adrian Thurston | 2018-06-18 | 1 | -46/+49 |
| | | | | | Using this technique so we don't need to cast individual functions and don't lose type checking on the signatures. |