summaryrefslogtreecommitdiff
path: root/src/pdacodegen.cc
Commit message (Collapse)AuthorAgeFilesLines
* correct prodNum as we combine productions to implement [...]Adrian Thurston2020-04-141-1/+2
| | | | refs #112
* making exported vars available from C codeAdrian Thurston2020-04-101-0/+22
| | | | | | Addes an array of exports to runtime data. Also declares each export as an integer. The value of the export can be passed to colm_get_gloal(). They are named colm_export_<export-name>. refs #116.
* moved source files into commit repositoryAdrian Thurston2020-03-141-0/+698
|
* moved the original colm src dir to /colmAdrian Thurston2019-09-081-698/+0
|
* some more separation of stream_t and input_tAdrian Thurston2018-07-091-1/+1
|
* reusing stream impls when parsing from 'input'Adrian Thurston2018-07-041-0/+1
| | | | | | | | 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.
* pass prg to colm_tree_upref and maintian first struct idAdrian Thurston2018-06-151-0/+1
|
* added stds, a list of streams, used for bare sendsAdrian Thurston2018-05-131-0/+2
|
* allocate a unique struct id for streamsAdrian Thurston2018-05-051-0/+1
|
* use disjoint sets for struct and lang-el identifiersAdrian Thurston2018-05-041-0/+1
| | | | | | | Using disjoint sets allows us to verify at runtime that we are not mixing trees and structs. Some of this is still left over from when we used trees for streams and lists and things. Need to build up some internal consistency checks.
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* added a read_reduce statement to call postfix reducerAdrian Thurston2017-07-271-1/+1
| | | | Triggers the generation of the reducer. Accepts a stream.
* added a reducer that can read the streaming postfix formatAdrian Thurston2017-07-251-0/+2
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+19
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-8/+2
|
* 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-0/+18
| | | | | This eliminates symbol collisions present when linking multiple colm programs into the same executable.
* added an option, -b, for specifying the name of the program objectAdrian Thurston2015-11-271-1/+1
| | | | | This also triggers the omission of C adapter funcs, which need to be present only once in a binary that includes a colm code.
* cleanup and simplification, generic elements and variousAdrian Thurston2015-06-131-1/+0
|
* large scale symbol renaming in C codecolm-barracuda-v3Adrian Thurston2015-05-221-165/+165
| | | | using _ conventions for C, camelCase of C++
* more application of C naming conventionsAdrian Thurston2015-05-151-1/+1
|
* naming convention improvementsAdrian Thurston2015-05-151-6/+6
|
* improved naming, moved generated parser code to subdir genAdrian Thurston2015-05-101-15/+15
|
* some naming cleanupAdrian Thurston2015-05-101-6/+6
|
* implementing vlist functionsAdrian Thurston2015-02-141-5/+6
|
* vmap find: only upref result if it is a tree typeAdrian Thurston2015-02-141-2/+4
|
* work on value list and value map, can insert into vmapAdrian Thurston2015-02-131-1/+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
* set the argv_el id when creating the structsAdrian Thurston2015-01-111-0/+1
|
* removed the generic pointer from LangElAdrian Thurston2015-01-051-1/+0
|
* cleanup in generics, using a single unique generic mapAdrian Thurston2015-01-041-1/+0
|
* converted the global object to a structAdrian Thurston2014-12-251-0/+1
|
* can get/set vals in structsAdrian Thurston2014-12-201-34/+25
|
* downref trees when deleting a structAdrian Thurston2014-12-201-0/+20
|
* added structElInfo to the runtime dataAdrian Thurston2014-12-201-0/+14
| | | | Storing size and can add trees offsets for downreffing on free.
* renamed parsedata.h -> compiler.hAdrian Thurston2014-12-121-1/+1
|
* find the list element pointers instead assuming they are the first itemAdrian Thurston2014-12-071-3/+4
|
* print the func we are returning to in IN_RETAdrian Thurston2014-11-051-1/+6
|
* removed GPL license file and stripped GPL headersAdrian Thurston2014-10-221-17/+0
|
* removed trees and iters from frame info,Adrian Thurston2014-01-081-48/+0
| | | | Using unified locals array now.
* include the LocalInfo array in FrameInfoAdrian Thurston2013-12-221-0/+24
|
* find local iterators and add them to frame infoAdrian Thurston2013-12-211-2/+28
| | | | The iterators are orderd by scope depth. This will allow a stack unwind.
* renamed colm dir to srcAdrian Thurston2013-06-081-0/+640
| | | | | | 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.
* revert "moved 'colm' dir to 'src'"Adrian Thurston2012-08-011-653/+0
| | | | | | | | | | | Colm includes a library component with headers installed to a private dir inside include: $prefix/include/colm. We need our headers to reference each other using this colm prefix. This needs to be true for compiling our source and also for compiling external programs. It is conventient to have all the source in a directory called colm and then to use -I <source-root> when building colm. We use $prefix/include when building external programs. This reverts commit 247904a84430b8c9151fa6afb68f01b60afb92c9.
* moved 'colm' dir to 'src'Adrian Thurston2012-07-011-0/+653