Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | go grammar: added initial (small) testing files and utf8.lm | Adrian Thurston | 2019-12-15 | 7 | -18/+1656 |
| | |||||
* | go grammar: added lexical definitions and semi insertion | Adrian Thurston | 2019-12-13 | 4 | -118/+185 |
| | | | | | Ooof this makes a big output file. May need to do something about it. refs #82 | ||||
* | go grammar: started with the unicode definitions | Adrian Thurston | 2019-12-11 | 8 | -1/+327 |
| | | | | | Generating the utf8 encoded unicode defintitions that are referenced in the Go specification. Can start to build the grammar with these definitions on hand. | ||||
* | added C++ and Python grammars, taken from test suite | Adrian Thurston | 2019-12-01 | 12 | -6/+3260 |
| | | | | | These both need to be updated and tested for code in the wild. They were originally developed to showcase colm features. | ||||
* | moved grammars out to their own dirs | Adrian Thurston | 2019-12-01 | 13 | -23/+40 |
| | | | | | We also want some testing/validation support for each grammar. This dir will get quite messy if we move files. | ||||
* | rust grammar: a proper implementation of raw strings | Adrian Thurston | 2019-11-30 | 1 | -8/+41 |
| | |||||
* | rust grammar: handle floats specified with just a trailing dot | Adrian Thurston | 2019-11-30 | 1 | -1/+8 |
| | | | | let a = 0. + 1.- 2.3; | ||||
* | rust grammar: partial impl of floats | Adrian Thurston | 2019-11-29 | 1 | -2/+10 |
| | |||||
* | allow backtick literals to have an end quote. | Adrian Thurston | 2019-11-28 | 1 | -50/+50 |
| | | | | | | | | | | | | | | Rather than exclude ? + and *, exclude ` from literals and allow backtick literals to be end quoted. Allows us to follow the literal with an operator without using a space between the two, which is very unnatural. Can write: [`,`?]. If we forget to the end quote it we end up with literal that (probably) does not exist. It should generate an error, rather than silently give us something we don't want. Note that ] is still excluded from literals in positions 2+. | ||||
* | revert mod to rust grammar to take advantage of ? excluded from ` lits | Adrian Thurston | 2019-11-28 | 1 | -47/+47 |
| | | | | | | This reverts some aspects of bb02b4be1b9db09c27cbd11df28a89e5b1ed332f. There were some other changes in this commit we want to keep, so it was undone manually. | ||||
* | ragel pcre: collecting verbs, atomic group, catpure reset, and backref | Adrian Thurston | 2019-11-17 | 1 | -19/+139 |
| | |||||
* | rust grammar: right-recursive statement list kills performance | Adrian Thurston | 2019-11-14 | 1 | -2/+6 |
| | | | | This adds to the argument for issue #74. | ||||
* | rust grammar: removed an ambiguity that really slows down parsing | Adrian Thurston | 2019-11-14 | 1 | -2/+1 |
| | | | | | Ambiguity between [ a.b( c ) ] and [ a.b ] ( c ) was causing unnecessary backtracking. | ||||
* | ragel pcre: handling backrefs and octals | Adrian Thurston | 2019-11-12 | 1 | -0/+79 |
| | |||||
* | ragel pcre: parsing and storing quantifiers | Adrian Thurston | 2019-11-12 | 1 | -17/+124 |
| | |||||
* | ragel pcre: added some basic literal forms | Adrian Thurston | 2019-11-11 | 1 | -3/+59 |
| | |||||
* | rust: take advantage of exclusion of ? from pos 2+ of literals | Adrian Thurston | 2019-11-07 | 2 | -100/+67 |
| | | | | Can now write `,? to mean an optional comma. | ||||
* | rust grammar: various fixes | Adrian Thurston | 2019-11-05 | 1 | -8/+14 |
| | |||||
* | rust grammar: various improvements | Adrian Thurston | 2019-11-04 | 1 | -16/+122 |
| | |||||
* | rust grammar: various improvements | Adrian Thurston | 2019-11-03 | 2 | -44/+107 |
| | | | | Now testing on cranelift. | ||||
* | rust grammar: traits, enums, various fixes | Adrian Thurston | 2019-10-31 | 1 | -16/+108 |
| | |||||
* | added DNS grammar in Ragel | Adrian Thurston | 2019-10-28 | 3 | -1/+704 |
| | |||||
* | PCRE grammar in colm | Adrian Thurston | 2019-10-27 | 3 | -5/+596 |
| | |||||
* | start of a PCRE parser in C/Ragel | Adrian Thurston | 2019-10-27 | 3 | -3/+513 |
| | | | | | | Basic structure is there, needs to be filled in. So far it handles sub-expressions, lookarounds, acaccepts characters a-z and optinos c and i. Most of what is done so far is tree building. | ||||
* | rust grammar: work on various parts of the grammar | Adrian Thurston | 2019-10-22 | 1 | -64/+280 |
| | | | | | | Added or improved macro definitions, generics, tuple types, generics, closures, visibitlity, type param bounds, modules, where clauses, byte strings, method params, struct expressions, and more. | ||||
* | rust grammar: building out more of the grammar | Adrian Thurston | 2019-10-20 | 1 | -16/+177 |
| | | | | now testing on rust in the wild | ||||
* | rust grammar: work on patterns, methods, paths, loops | Adrian Thurston | 2019-10-18 | 4 | -84/+223 |
| | |||||
* | rust grammar: expanded use_declarataion to include {} and * | Adrian Thurston | 2019-10-17 | 1 | -5/+49 |
| | |||||
* | rust grammar: added else blocks and rudimentary float | Adrian Thurston | 2019-10-07 | 1 | -12/+29 |
| | |||||
* | rust grammar: lifetime goes between & and mut in type ref | Adrian Thurston | 2019-10-03 | 1 | -2/+3 |
| | |||||
* | rust grammar: some improvements to generics | Adrian Thurston | 2019-10-03 | 1 | -23/+119 |
| | |||||
* | improvements to statement and expression to better match grammar | Adrian Thurston | 2019-10-02 | 1 | -53/+62 |
| | | | | | | | | Previous version was made to work based on example code. This version is based off the grammar in the rust-lang book and handles expressions with blocks, which do not require semis in a statement list (did not handle this before), and also the expression without block at the end of a statement list, without requiring a semi (handled this before). | ||||
* | rust grammar: some work on match expressions | Adrian Thurston | 2019-10-02 | 1 | -8/+62 |
| | |||||
* | rust grammar: let needs a pattern on lhs | Adrian Thurston | 2019-10-01 | 1 | -2/+43 |
| | |||||
* | moved rust grammar to /grammar | Adrian Thurston | 2019-10-01 | 3 | -0/+327 |