summaryrefslogtreecommitdiff
path: root/src/tree.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed the fd-based write, had wrong interpretation of return valAdrian Thurston2013-12-241-4/+5
|
* movement of code from tree.c to iter.cAdrian Thurston2013-12-241-314/+1
|
* some code movement to iter.cAdrian Thurston2013-12-231-43/+0
|
* make stack unwinding work in presence of reverse iteratorsAdrian Thurston2013-12-211-0/+1
|
* implemented the downref of local itersAdrian Thurston2013-12-211-0/+1
| | | | | Works for tree iters. Relies on the type field being set in the iterator only while it is allocated, making idempotency possible.
* return nil from open if file open failsAdrian Thurston2013-12-191-1/+5
|
* added the cast operatorAdrian Thurston2013-12-151-0/+88
| | | | | | | The cast operator converts a tree to another type by copying over tokdata, ignore tokens, and children. The new tree has the type of the target of the cast. Attributes are cleared (# determined by target type). The production number is set to -1.
* renamed colm dir to srcAdrian Thurston2013-06-081-0/+2529
| | | | | | 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-2498/+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.
* added .tree member and .eof() function to parserAdrian Thurston2012-07-281-0/+14
| | | | | The .tree is for fetching the built tree. The .eof() function is an alias of finish(), which is a little more precise with respect to functionality.
* moved 'colm' dir to 'src'Adrian Thurston2012-07-011-0/+2484