Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | moved source files into commit repository | Adrian Thurston | 2020-03-14 | 1 | -0/+2 |
| | |||||
* | moved the original colm src dir to /colm | Adrian Thurston | 2019-09-08 | 1 | -2851/+0 |
| | |||||
* | support _IN_ _EX_ indentation in string accumulators | Adrian Thurston | 2019-05-25 | 1 | -2/+0 |
| | |||||
* | pushing the trim decision to run-time | Adrian Thurston | 2019-05-24 | 1 | -10/+29 |
| | | | | | | | | | The trim and no-trim operators are both now in the expression. In places where we want the print mechanism to decide if it trims or not, we lift the trim operator out of the expression and into the send expression, then pass it to the print and send instructions. This way the stream or input (parser) can control the trim (auto_trim feature) with the expression overriding the default. | ||||
* | allow referencing a tree in reduction actions | Adrian Thurston | 2018-12-17 | 1 | -0/+12 |
| | | | | syntax is $*N | ||||
* | use parser, not input, in the send instructions | Adrian Thurston | 2018-07-09 | 1 | -1/+0 |
| | |||||
* | select between parser/plain stream at compile time, switch to "_" | Adrian Thurston | 2018-07-09 | 1 | -1/+1 |
| | | | | | | | | | Now that we have multiple parser using the same stream it is not responsible to set a pointer to parser from stream and rely on that to decide where to send (or to check if it is a simple stream). Back to making the decision at compile time. Also switching from "stds" to "_". | ||||
* | make the rhs of switch vars available in case clauses | Adrian Thurston | 2018-05-20 | 1 | -1/+5 |
| | |||||
* | added stds, a list of streams, used for bare sends | Adrian Thurston | 2018-05-13 | 1 | -1/+2 |
| | |||||
* | removed XML and postfix print, implemented remaining print with send | Adrian Thurston | 2018-05-07 | 1 | -29/+69 |
| | | | | | | | | Removed the XML and postfix print forms. The functionality is now achieved with xml(), xmlac() and postfix() functions. Now implementing the print and prints using the send expression. All printing is now handled via the send instructions. | ||||
* | replacing the void LEL with a keyword and TYPE_VOID (non-tree) | Adrian Thurston | 2018-05-04 | 1 | -0/+4 |
| | | | | | Using LEL was a hack to make it work quickly, usig a non-tree type is the proper solution. | ||||
* | removed string concatenation from pattern, constructor and string | Adrian Thurston | 2018-03-30 | 1 | -29/+3 |
| | | | | | Only the send accumulator supports string concatenation. Taking this approach avoids ambiguity between a concatenation and a bare send. | ||||
* | allow a prod-name case clause to also have a pattern | Adrian Thurston | 2018-03-11 | 1 | -9/+20 |
| | |||||
* | added a send statement without the send <id> | Adrian Thurston | 2018-03-10 | 1 | -126/+159 |
| | | | | | | | | Added a bare send statement. This statement assumes availibility of send target named 'Output' Removed the expression statment to avoid ambiguity with factor string. Requires copying some factor items to the statment. | ||||
* | allow switching on production numbers | Adrian Thurston | 2018-03-09 | 1 | -22/+29 |
| | | | | | Added a form to case statements that accepts a production name instead of a pattern. | ||||
* | updated Copyright years | Adrian Thurston | 2018-03-04 | 1 | -1/+1 |
| | |||||
* | added a read_reduce statement to call postfix reducer | Adrian Thurston | 2017-07-27 | 1 | -4/+18 |
| | | | | Triggers the generation of the reducer. Accepts a stream. | ||||
* | started on a tree print in postfix notation | Adrian Thurston | 2017-07-20 | 1 | -0/+3 |
| | | | | | Postfix notation can be used as a streaming tree format as both an output and input. | ||||
* | migrated from GPLv2 to MIT license | Adrian Thurston | 2016-12-13 | 1 | -17/+18 |
| | |||||
* | an automated include convention improvement from Peter Reijnders | Adrian Thurston | 2016-12-13 | 1 | -10/+3 |
| | |||||
* | some name improvements in colm grammar | Adrian Thurston | 2016-10-01 | 1 | -20/+20 |
| | |||||
* | auto-trim in print, send and construct, disable with @ | Adrian Thurston | 2016-10-01 | 1 | -3/+12 |
| | | | | | | | | | | | | | | 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. | ||||
* | check include paths when opening includes | Adrian Thurston | 2016-07-28 | 1 | -2/+15 |
| | |||||
* | extract stream file names so we can use them after the colm program is deleted | Adrian Thurston | 2016-03-16 | 1 | -0/+2 |
| | |||||
* | added the $$ operator, which converts tree-to-str with attrs | Adrian Thurston | 2015-12-15 | 1 | -0/+5 |
| | |||||
* | location fix for red action | Adrian Thurston | 2015-11-30 | 1 | -2/+1 |
| | |||||
* | split reducers into their own class | Adrian Thurston | 2015-11-05 | 1 | -4/+7 |
| | | | | Previously selected with a runtime int. Using reduction name as the class name. | ||||
* | allow access to rhs elements by number | Adrian Thurston | 2015-11-01 | 1 | -0/+12 |
| | |||||
* | reduction actions: add loc reference, elim duplicate labels | Adrian Thurston | 2015-10-08 | 1 | -2/+21 |
| | |||||
* | load and generate accessors for $$ and $rhsel | Adrian Thurston | 2015-10-07 | 1 | -2/+7 |
| | |||||
* | collect and emit reduction action items | Adrian Thurston | 2015-10-06 | 1 | -4/+41 |
| | |||||
* | load reduction nonterms | Adrian Thurston | 2015-10-05 | 1 | -3/+14 |
| | |||||
* | added syntax dedicated to reductions | Adrian Thurston | 2015-10-05 | 1 | -3/+14 |
| | | | | | This avoids interferrence with existing parsing code. Calling the commit/reduce code only if the reduce construct is used. | ||||
* | load reduction actions and generate a commit containing them | Adrian Thurston | 2015-10-04 | 1 | -0/+45 |
| | |||||
* | working on a commit that can execute reduction actions | Adrian Thurston | 2015-10-04 | 1 | -17/+30 |
| | | | | | | First track if the result is used. If not, we can remove parse trees at commit points. This is also the time to execute reduction actions so we can load as we parse. Not currently enabled (by way of omitting setting of not-used bit). | ||||
* | allow globals to be declared in namespaces | Adrian Thurston | 2015-08-09 | 1 | -9/+11 |
| | |||||
* | now scoping functions inside the namespaces they are declared in | Adrian Thurston | 2015-08-09 | 1 | -7/+8 |
| | |||||
* | allow switch statements to be wrapped in {}colm-barracuda-v4 | Adrian Thurston | 2015-06-17 | 1 | -1/+2 |
| | | | | Required for unambiguously nesting switch switch statements. | ||||
* | fixed segfault following parse error in included file | Adrian Thurston | 2015-06-12 | 1 | -1/+2 |
| | |||||
* | now creating list and map el structures in the declare pass | Adrian Thurston | 2015-06-07 | 1 | -94/+7 |
| | |||||
* | some nameing cleanup around list and list el | Adrian Thurston | 2015-06-06 | 1 | -3/+3 |
| | |||||
* | replacing list and map with vlist and vmap | Adrian Thurston | 2015-06-06 | 1 | -25/+74 |
| | |||||
* | improved naming, moved generated parser code to subdir gen | Adrian Thurston | 2015-05-10 | 1 | -1/+1 |
| | |||||
* | some naming cleanup | Adrian Thurston | 2015-05-10 | 1 | -1/+1 |
| | |||||
* | brought back the comma to param/arg lists | Adrian Thurston | 2015-05-03 | 1 | -8/+21 |
| | |||||
* | first cut of C extensions | Adrian Thurston | 2015-04-01 | 1 | -0/+21 |
| | |||||
* | code cleanup and movement | Adrian Thurston | 2015-02-15 | 1 | -28/+11 |
| | |||||
* | need to make vlist and vmap elment structs unique | Adrian Thurston | 2015-02-14 | 1 | -26/+53 |
| | |||||
* | implementing vlist functions | Adrian Thurston | 2015-02-14 | 1 | -2/+2 |
| | |||||
* | work on value list and value map, can insert into vmap | Adrian Thurston | 2015-02-13 | 1 | -3/+6 |
| |