Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added with_ignore(tree) iterator | Adrian Thurston | 2020-12-23 | 1 | -0/+10 |
| | | | | | | | | | | | | This is identical to the basic tree iterator, except it visits ignore tokens. This makes it possible to rewrite comments, albeit, primitively. Constructors for tokens don't work right. Though we can set the data field. The following code can be used to turn comments into newlines: for I1: comment in with_ignore(Flux) { I1.data = "\n" } | ||||
* | correct prodNum as we combine productions to implement [...] | Adrian Thurston | 2020-04-14 | 1 | -5/+9 |
| | | | | refs #112 | ||||
* | renamed DefList and LelDefList to the more accurate ProdList, LelProdList | Adrian Thurston | 2020-04-12 | 1 | -8/+8 |
| | |||||
* | first cut of a redefine statement | Adrian Thurston | 2020-04-12 | 1 | -1/+29 |
| | | | | | | | | Redefine happens during declaration. The existing langEl is removed from the map and a newly-declared lel replaces it. If the new list of productions references [...] the productions from the previous lel are moved into the new one, in its place. A copy would be preferrable, as move may require some fixup, but move gives an initial functional implementation. refs #112 | ||||
* | moved source files into commit repository | Adrian Thurston | 2020-03-14 | 1 | -0/+1623 |
| | |||||
* | moved the original colm src dir to /colm | Adrian Thurston | 2019-09-08 | 1 | -1623/+0 |
| | |||||
* | added and auto_trim flag to stream anad input | Adrian Thurston | 2019-05-22 | 1 | -1/+8 |
| | | | | | When set to true, all tree prints to the stream or sends to the input will result in a trim. Achieved by passing trim to the generic print. | ||||
* | make location file name and column available in Colm code | Adrian Thurston | 2018-12-02 | 1 | -10/+44 |
| | |||||
* | improvements to free bytecodes, bytecode def cleanup | Adrian Thurston | 2018-07-10 | 1 | -8/+8 |
| | |||||
* | use FN_ prefix for functions, space is diff from IN_ | Adrian Thurston | 2018-07-10 | 1 | -46/+46 |
| | |||||
* | reusing stream impls when parsing from 'input' | Adrian Thurston | 2018-07-04 | 1 | -1/+38 |
| | | | | | | | | 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. | ||||
* | unified parse frag and finish | Adrian Thurston | 2018-05-15 | 1 | -81/+83 |
| | |||||
* | added stds, a list of streams, used for bare sends | Adrian Thurston | 2018-05-13 | 1 | -0/+9 |
| | |||||
* | merged the WC and WV versions of parse instructions | Adrian Thurston | 2018-05-11 | 1 | -2/+2 |
| | |||||
* | removed print statements, using only the send statement | Adrian Thurston | 2018-05-07 | 1 | -7/+0 |
| | |||||
* | made the postfix print into a function | Adrian Thurston | 2018-05-06 | 1 | -0/+4 |
| | |||||
* | added xml() and xmlac(), which which collect xml to strings | Adrian Thurston | 2018-05-06 | 1 | -0/+8 |
| | | | | | Going to eliminate the specialized print forms, instead opting for functions. Later on we can make these lazy. | ||||
* | added gets() to parser, which returns the stream | Adrian Thurston | 2018-05-05 | 1 | -0/+3 |
| | |||||
* | replacing the void LEL with a keyword and TYPE_VOID (non-tree) | Adrian Thurston | 2018-05-04 | 1 | -2/+1 |
| | | | | | Using LEL was a hack to make it work quickly, usig a non-tree type is the proper solution. | ||||
* | updated Copyright years | Adrian Thurston | 2018-03-04 | 1 | -1/+1 |
| | |||||
* | started on a tree print in postfix notation | Adrian Thurston | 2017-07-20 | 1 | -0/+1 |
| | | | | | 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/+19 |
| | |||||
* | an automated include convention improvement from Peter Reijnders | Adrian Thurston | 2016-12-13 | 1 | -3/+4 |
| | |||||
* | implemented a const-string define option -Ename=val | Adrian Thurston | 2016-07-28 | 1 | -18/+59 |
| | |||||
* | new stream objects can now collect text, accessible with ->tree (str type) | Adrian Thurston | 2016-03-07 | 1 | -0/+15 |
| | | | | | This is much faster than send to a line parser and then extracting the tree just to convert it to txt. | ||||
* | allow globals to be declared in namespaces | Adrian Thurston | 2015-08-09 | 1 | -18/+18 |
| | |||||
* | now scoping functions inside the namespaces they are declared in | Adrian Thurston | 2015-08-09 | 1 | -46/+80 |
| | |||||
* | moved MethodMap into NameScope, converted some ptrs to objs | Adrian Thurston | 2015-08-08 | 1 | -9/+8 |
| | |||||
* | cleanup in the list and map types | Adrian Thurston | 2015-06-14 | 1 | -5/+0 |
| | |||||
* | cleanup and simplification, generic elements and various | Adrian Thurston | 2015-06-13 | 1 | -5/+0 |
| | |||||
* | some cleanup around the unified list and map generics | Adrian Thurston | 2015-06-08 | 1 | -99/+30 |
| | |||||
* | giving list and map the original (non-vlist) funcs and fields | Adrian Thurston | 2015-06-07 | 1 | -4/+35 |
| | | | | This change allows us to iterate list and maps using next/prev pointers. | ||||
* | now creating list and map el structures in the declare pass | Adrian Thurston | 2015-06-07 | 1 | -8/+4 |
| | |||||
* | replacing list and map with vlist and vmap | Adrian Thurston | 2015-06-06 | 1 | -0/+3 |
| | |||||
* | more of the vlist implementation .. moved all test cases to vlist | Adrian Thurston | 2015-06-05 | 1 | -0/+22 |
| | |||||
* | naming convention improvements | Adrian Thurston | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | warning elim, and impl of vlist files _R only | Adrian Thurston | 2015-04-05 | 1 | -3/+28 |
| | |||||
* | first cut of C extensions | Adrian Thurston | 2015-04-01 | 1 | -0/+27 |
| | |||||
* | added global versions of the uord and sord funcs | Adrian Thurston | 2015-03-21 | 1 | -0/+25 |
| | |||||
* | added global versions of atoi, atoo, suffix and prefix | Adrian Thurston | 2015-03-21 | 1 | -0/+16 |
| | | | | These are easier to use as globals, rather than members on string. | ||||
* | added exit_hard function, which just calls the system exit | Adrian Thurston | 2015-03-21 | 1 | -1/+4 |
| | | | | | | The exit() function will unwind the stack and attempt a graceful exit. Since the stack unwinding is not 100% funcitonal this sometimes causes segfaults. The hard exit will not segfault, but forces the process to terminate. | ||||
* | added string.atoo (octal version of atoi) | Adrian Thurston | 2015-03-14 | 1 | -0/+3 |
| | | | | Need to clean up these function names and make them global. | ||||
* | various minor cleanup in bytecode | Adrian Thurston | 2015-03-01 | 1 | -2/+2 |
| | |||||
* | implemented str.prefix and str.suffix | Adrian Thurston | 2015-03-01 | 1 | -0/+6 |
| | |||||
* | need to make vlist and vmap elment structs unique | Adrian Thurston | 2015-02-14 | 1 | -4/+4 |
| | |||||
* | implementing vlist functions | Adrian Thurston | 2015-02-14 | 1 | -10/+10 |
| | |||||
* | vmap find: only upref result if it is a tree type | Adrian Thurston | 2015-02-14 | 1 | -2/+5 |
| | |||||
* | cleanup of the GenericType struct | Adrian Thurston | 2015-02-13 | 1 | -36/+36 |
| | |||||
* | implemented vmap find | Adrian Thurston | 2015-02-13 | 1 | -1/+1 |
| | |||||
* | work on value list and value map, can insert into vmap | Adrian Thurston | 2015-02-13 | 1 | -2/+60 |
| |