summaryrefslogtreecommitdiff
path: root/src/tree.c
Commit message (Collapse)AuthorAgeFilesLines
* assert we are not upreffing or downreffing structsAdrian Thurston2018-06-151-0/+2
|
* pass prg to colm_tree_upref and maintian first struct idAdrian Thurston2018-06-151-17/+18
|
* don't use parse finish to pull out parse result, use dedeicated instructionAdrian Thurston2018-05-141-1/+2
| | | | Working towards unifying the parse frag and parse finish instructions.
* removed some commented-out codeAdrian Thurston2018-05-051-27/+4
|
* replacing the void LEL with a keyword and TYPE_VOID (non-tree)Adrian Thurston2018-05-041-8/+0
| | | | | Using LEL was a hack to make it work quickly, usig a non-tree type is the proper solution.
* updated Copyright yearsAdrian Thurston2018-03-041-1/+1
|
* split tree print code out to it's own fileAdrian Thurston2017-07-201-650/+0
|
* started on a tree print in postfix notationAdrian Thurston2017-07-201-0/+78
| | | | | Postfix notation can be used as a streaming tree format as both an output and input.
* minor fixes: a missing cast, no comma at enum end, no redefined typedefsPeter Reijnders2016-12-191-1/+1
|
* migrated from GPLv2 to MIT licenseAdrian Thurston2016-12-131-17/+19
|
* an automated include convention improvement from Peter ReijndersAdrian Thurston2016-12-131-12/+5
|
* auto-trim in print, send and construct, disable with @Adrian Thurston2016-10-011-0/+3
| | | | | | | | | | | | | | Now automatically trimming when building trees and printing. This is consistent with the $ operator. Rationale is to standardize on the most commonly desired behaviour and provide options for the less-needed. Also much less likely to result in surprising output. There are many cases where test inputs won't have any surrounding ignores, making it easy to forget a trim is required. Then the occasional tree with surrounding ignores will give an undesired result. Better to standardize on trim, making the default behaviour more consistent. The trim can be turned off with the @ operator in front of an expression.
* added the $$ operator, which converts tree-to-str with attrsAdrian Thurston2015-12-151-4/+16
|
* when tokens come from strings, init with a default locationAdrian Thurston2015-11-131-1/+1
|
* load and generate accessors for $$ and $rhselAdrian Thurston2015-10-071-0/+9
|
* increment and decrement absolute indentation on _IN_ and _EX_ typescolm-barracuda-v5Adrian Thurston2015-06-281-12/+35
| | | | | We can send these out when we are sending to a stream, or we can embed these types in parsers.
* testing some indentation-normalization codeAdrian Thurston2015-06-211-0/+37
| | | | | Want to be able to reformat indentation during code generation. This first bit of code will just flatten. Need to add indentation level tracking.
* removed the fd-based IO funcs, just using FILE structsAdrian Thurston2015-06-211-29/+28
| | | | | 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-465/+465
| | | | using _ conventions for C, camelCase of C++
* naming convention improvementsAdrian Thurston2015-05-171-85/+85
|
* more application of C naming conventionsAdrian Thurston2015-05-151-275/+249
|
* naming convention improvementsAdrian Thurston2015-05-151-10/+10
|
* improved naming, moved generated parser code to subdir genAdrian Thurston2015-05-101-19/+19
|
* merged FsmRun and PdaRun into pda_run, eliminated typedefAdrian Thurston2015-05-101-1/+1
|
* code cleanup and some fixes for iter unwind since splitting unwind/destroyAdrian Thurston2015-05-101-6/+6
|
* some warning fixes, CFLAGS default needs to be higher in configure.acAdrian Thurston2015-04-031-57/+7
|
* removing casting from push/pop callsAdrian Thurston2015-03-221-17/+17
|
* some cleanup in the type macrosAdrian Thurston2015-03-211-13/+13
|
* renamed push and pop to push_tree and pop_treeAdrian Thurston2015-03-201-34/+34
|
* implemented str.prefix and str.suffixAdrian Thurston2015-03-011-15/+0
|
* cleanup, including removal of map and list element poolsAdrian Thurston2015-02-151-1/+11
|
* code cleanup and movementAdrian Thurston2015-02-151-7/+0
|
* first cut of value-based ints, test cases passAdrian Thurston2015-01-271-49/+45
|
* function name cleanupAdrian Thurston2015-01-271-47/+0
|
* construct an input when creating a parserAdrian Thurston2015-01-241-0/+1
| | | | | No longer need a separate input construct step for parsers. Just create when constructing the parser.
* 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
* some cleanup in the pointerAdrian Thurston2015-01-181-21/+9
|
* some function and type renamingAdrian Thurston2015-01-181-4/+4
|
* object-based maps: insert and find implementationAdrian Thurston2015-01-171-17/+18
|
* work on object-based listsAdrian Thurston2015-01-051-58/+4
|
* removed the generic pointer from LangElAdrian Thurston2015-01-051-64/+47
|
* work on using embedded list element pointersAdrian Thurston2015-01-041-21/+22
|
* push towards embedded list elementsAdrian Thurston2015-01-041-1/+1
|
* turning list elements into allocated objectsAdrian Thurston2015-01-041-3/+2
|
* more rough work on object-based listsAdrian Thurston2015-01-041-20/+6
|
* cleanup in generics, using a single unique generic mapAdrian Thurston2015-01-041-0/+4
|
* some prep for detaching generics from lang elementsAdrian Thurston2015-01-031-23/+10
|
* made list and map into structsAdrian Thurston2015-01-021-52/+8
|
* start using stream and parser structsAdrian Thurston2015-01-021-4/+2
|
* make stream and parser overlay structAdrian Thurston2015-01-021-35/+9
|