summaryrefslogtreecommitdiff
path: root/src/ctinput.cc
Commit message (Collapse)AuthorAgeFilesLines
* replace eof_sent in input interface with bit in pda_runAdrian Thurston2018-07-101-4/+0
|
* some cleanup of eof interfaceAdrian Thurston2018-07-101-12/+5
| | | | | Still have two bools concerning eof. Can't unify these yet ... need break down the two concepts to try to unify.
* more separation of input and streamAdrian Thurston2018-07-101-51/+37
|
* separating the input from stream typeAdrian Thurston2018-07-081-5/+5
|
* some improvements to the the stream funcsAdrian Thurston2018-07-071-42/+40
|
* some better organization of the stream funcsAdrian Thurston2018-07-061-15/+24
|
* converted ctinput.cc to C conventions to match input.cAdrian Thurston2018-07-061-92/+57
|
* skip arg to get_parse_block needs to be a pointerAdrian Thurston2018-07-041-12/+12
| | | | | | 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.
* use stream_impl_ct directlyAdrian Thurston2018-07-021-8/+60
| | | | Don't put it behind a stream_impl_seq
* added colm_program as an arg to input functionsAdrian Thurston2018-06-251-15/+15
| | | | need this to perform input logging
* added location information to stream interfacesAdrian Thurston2018-06-181-0/+7
| | | | | 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 funcsAdrian Thurston2018-06-181-2/+21
|
* added close_stream to stream funcsAdrian Thurston2018-06-181-2/+2
|
* added print_tree to stream funcsAdrian Thurston2018-06-181-2/+2
| | | | | Selects between file and collect. Will want to also ensure only called on a "data" stream_impl.
* added stream funcs for collect and flushAdrian Thurston2018-06-181-0/+4
|
* some org of stream_funcsAdrian Thurston2018-06-181-9/+23
|
* moved stream destructor code to respective callbacksAdrian Thurston2018-06-181-2/+2
|
* use a define to declare multiple stream funcsAdrian Thurston2018-06-181-20/+22
| | | | | Using this technique so we don't need to cast individual functions and don't lose type checking on the signatures.
* added destructor to stream functionsAdrian Thurston2018-06-181-0/+10
|
* removed unused prg and sp args from consume_data stream funcAdrian Thurston2018-06-181-4/+2
|
* specialize stream impl for compile-time parsingAdrian Thurston2018-06-171-21/+38
|
* cast stream funcs so we can specialize stream_impl structsAdrian Thurston2018-06-171-12/+12
|
* declare types for the stream funcsAdrian Thurston2018-06-171-46/+0
| | | | | | | Going to experiment with specializing the stream_impl struct to compile-time and run-time uses. Will cast the functions to so we don't need to ever cast the args. This makes for some convenient code, but we lose compiler support in checking the signature of the stream functions.
* 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-6/+7
|
* prep code for managing stream name in the stream destructorAdrian Thurston2016-03-021-2/+2
| | | | | | | 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.
* dynamically size runbufs from extract_tokenAdrian Thurston2015-11-121-3/+4
| | | | Allows large tokens. Note there are other places this is needed.
* put parse tree allocator struct into pda_run as a pointer, allowing overrideAdrian Thurston2015-10-051-1/+1
|
* fix for putting back to the compile-time input streamsAdrian Thurston2015-06-271-2/+17
| | | | Need to be able to cross back over buffer boundaries.
* removed the fd-based IO funcs, just using FILE structsAdrian Thurston2015-06-211-4/+4
| | | | | IO should be buffered for performance, we do many small prints when we iterate trees.
* large scale symbol renaming in C codecolm-barracuda-v3Adrian Thurston2015-05-221-43/+43
| | | | using _ conventions for C, camelCase of C++
* naming convention improvementsAdrian Thurston2015-05-171-1/+1
|
* more application of C naming conventionsAdrian Thurston2015-05-151-10/+10
|
* naming convention improvementsAdrian Thurston2015-05-151-29/+32
|
* merged FsmRun and PdaRun into pda_run, eliminated typedefAdrian Thurston2015-05-101-4/+5
|
* cleanup of the coroutine codeAdrian Thurston2015-05-101-1/+1
|
* always emit the host-call functionAdrian Thurston2015-04-011-5/+0
|
* first cut of C extensionsAdrian Thurston2015-04-011-0/+5
|
* code movement and conventionsAdrian Thurston2015-02-071-2/+3
|
* function name cleanupAdrian Thurston2015-01-271-2/+2
|
* 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 parsedata.h -> compiler.hAdrian Thurston2014-12-121-1/+1
|
* removed GPL license file and stripped GPL headersAdrian Thurston2014-10-221-17/+0
|
* downref embedded streams when they are consumedAdrian Thurston2014-07-161-2/+3
|
* some code cleanup: Form and constructor arg orderAdrian Thurston2014-01-051-4/+4
|
* trying out name "Form" for abstract syntax tree typesAdrian Thurston2013-12-301-4/+4
|
* dead code removal, name name improvementsAdrian Thurston2013-12-291-3/+3
|
* some dead code removal and name improvementsAdrian Thurston2013-12-291-5/+5
|
* renamed colm dir to srcAdrian Thurston2013-06-081-0/+497
| | | | | | 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.