| 1 |
Kelbt 0.15 - Jan 22, 2012 |
| 2 |
========================= |
| 3 |
-Eliminated type-punned pointer warnings GCC emits for generated code. |
| 4 |
|
| 5 |
Kelbt 0.14 - Oct 1, 2009 |
| 6 |
======================== |
| 7 |
-Added the -I option for specifying directories to look in for included files. |
| 8 |
-Added the location of the including file to the list of locations to search for |
| 9 |
included files. |
| 10 |
-Applied patch from David Keller: Hardcoded "Token" string should be Token(). |
| 11 |
-Fixed many of the test cases. Added missing includes and the <ParserName>_tk |
| 12 |
prefix to _eof. |
| 13 |
|
| 14 |
Kelbt 0.13 - Oct 6, 2008 |
| 15 |
======================== |
| 16 |
-The uses statement can now reference nonterminals before they are defined. |
| 17 |
-Fixed a typo in an 'undefined type' error message. |
| 18 |
-Fixed graphviz generation. |
| 19 |
-Check rhs references for undo and final blocks, not just try blocks. |
| 20 |
-Now tracking the number of reductions that an token causes. |
| 21 |
-Use causeReduce counting to maintain a queue of un-translated tokens. When |
| 22 |
pulling off the queue tokens are translated. When causeReduce drops to zero |
| 23 |
during backtracking the token is put back onto the queue and un-translated. |
| 24 |
This balances translation with un-translation. |
| 25 |
-Fixed distclean target. |
| 26 |
-Production names and language element names should be const char*. |
| 27 |
-Updated scanner to Ragel 6.X. |
| 28 |
-Now fixing the ordering timestamps after advancing reductions. When |
| 29 |
transferring a reduction copy in the min time from the source transitions. |
| 30 |
Also remove gaps. This does not affect parsing, but improves graphviz |
| 31 |
output. |
| 32 |
-Gave the eof token a better name: <parser_name>_tk_eof. Allows multiple |
| 33 |
parsers in the same program and prevents clashes with "eof" which seems to |
| 34 |
be common. |
| 35 |
-Updated email address. |
| 36 |
-Fixed const correctness problems. |
| 37 |
|
| 38 |
Kelbt 0.12 - May 1, 2007 |
| 39 |
======================== |
| 40 |
-Don't emit empty switch blocks for trial, undo and final actions. |
| 41 |
-Ignore write statements that are not at the root of the include stack. |
| 42 |
-Added an option (-l) for turning off the writing of line directives. |
| 43 |
-Improved error messages. |
| 44 |
-A commit is now always a full commit of the stack. It induces any remaining |
| 45 |
final actions and cleans up the stack. Motivation: it should be possible to |
| 46 |
reliably control when final actions are executed. In the previous scheme |
| 47 |
reliable control was not possible because if retries existed ahead of the |
| 48 |
scoped commit then the number of retries would not drop to zero and the final |
| 49 |
actions would not be executed. Further, no important practical uses for the |
| 50 |
scoped commit have surfaced. That is, there are no examples of needing to |
| 51 |
commit a production while preserving earlier alternatives. Therefore the added |
| 52 |
complexity of the scoped commit feature is not justified. |
| 53 |
-The malloc used by the final action execution/commit code has been eliminated |
| 54 |
and replaced with a pointer mechanism. |
| 55 |
-Added a class keyword for nonterminals and the token type. The keyword goes |
| 56 |
directly in front of the nonterm/type/token name. Constructors and |
| 57 |
destructors are invoked for nonterminal class types and the token type when |
| 58 |
it is a class. |
| 59 |
nonterm class Foo {}; |
| 60 |
type class Foo {}; |
| 61 |
token uses class MyToken; |
| 62 |
-Added the "write finish" statement which invokes destructors for the items |
| 63 |
still on the stack. |
| 64 |
-Blocks of LangEls are now tracked and freed in the finish code. |
| 65 |
-Kelbt now uses Ragel's import feature instead of repeating the definition of |
| 66 |
tokens inside the section parser. |
| 67 |
-The branch point printing function (-i) now prints dot sets to give you a |
| 68 |
sense of where in the grammar the conflicts are. |
| 69 |
-Added the shortest statement. This changes the default action ordering from |
| 70 |
a longest-match strategy to a shortest-match strategy. To make this work |
| 71 |
reliably the nonterminal which is to be made into a shortest match should be |
| 72 |
wrapped in a fresh nonterminal which is then specified using the shortest |
| 73 |
statement. This syntax will likely be improved in the future. |
| 74 |
shortest lifted_list; |
| 75 |
lifted_list: list; |
| 76 |
list: list item; |
| 77 |
list: ; |
| 78 |
-Did some cleanup of the syntax highlighting. Removed junk left over from the |
| 79 |
port of the ragel syntax file a long time ago. |
| 80 |
-Fixed an missing variable initialization. This eliminates errors reported by |
| 81 |
valgrind. |
| 82 |
-Added an install target to the makefiles. |
| 83 |
|
| 84 |
Kelbt 0.11 - Feb 12, 2007 |
| 85 |
========================= |
| 86 |
-The commit and final block execution code now uses malloc to allocate an |
| 87 |
array of pointers instead of using a variable-sized array on the stack, |
| 88 |
which is not portable C. |
| 89 |
-Applied more fixes to cxxprep from Gilles J. Seguin. |
| 90 |
-Updated to the latest aapl. |
| 91 |
|
| 92 |
Kelbt 0.10 - Jan 27, 2007 |
| 93 |
========================= |
| 94 |
-Applied fixes to cxxprep from Gilles J. Seguin. |
| 95 |
-Adopted Ragel's write statement style of generating code. The types of |
| 96 |
statements are: |
| 97 |
write instance_data; - the runtime data used by the parser. |
| 98 |
write token_defs; - pound defines for the tokens. |
| 99 |
write types; - data structures representing language elements. |
| 100 |
write data; - static data used by the parser. |
| 101 |
write init; - initialization code. |
| 102 |
write exec; - the parse loop. |
| 103 |
-The access statement was added. It can be used to specify where the instance |
| 104 |
data is located. For example, inside a structure: |
| 105 |
access parser->; |
| 106 |
-Removed return statements from the exec loop. Errors and regular exits now |
| 107 |
just drop out at the bottom of exec. |
| 108 |
-The generated code has been made compatible with C. |
| 109 |
-Added a C test. |
| 110 |
-The generated data structures and static data elements now have their names |
| 111 |
prefixed with the parser name. |
| 112 |
-The "token uses" statement was added. This allows the user to change the |
| 113 |
name of the data structure which contains token data. It defaults to |
| 114 |
"Token". |
| 115 |
token uses ParserToken; |
| 116 |
-Implemented single-line parser specifications. This is useful mostly for |
| 117 |
write statements. |
| 118 |
-Fixes to line directive writing were made. |
| 119 |
|
| 120 |
Kelbt 0.9 - Jan 22, 2007 |
| 121 |
======================== |
| 122 |
-Fix to initialization code: the sentinel at the top of the stack needs |
| 123 |
to have its pointers initialized. |
| 124 |
|
| 125 |
Kelbt 0.8 - Jan 16, 2007 |
| 126 |
======================== |
| 127 |
-Added a priority mechanism for tweaking control of the parser. Priorities |
| 128 |
are associated with characters in productions and these take precedence over |
| 129 |
the default ordered choice strategy. The ordered choice strategy is also an |
| 130 |
'innermost' strategy where all the possibilities within a non-terminal take |
| 131 |
precedence over any characters which follow the non-terminal. Priorities let |
| 132 |
one override this in particular cases. |
| 133 |
-Line directives are now generated for inline code blocks which are passed |
| 134 |
through to the output file. |
| 135 |
-Access to the non-terminal element and the right hand side elements of the |
| 136 |
production being reduced now works properly in final actions. |
| 137 |
|
| 138 |
Kelbt 0.7 - Dec 8, 2006 |
| 139 |
======================= |
| 140 |
-Added a credits file. |
| 141 |
-Kelbt no longer generates code which writes 'parse error' when parsing |
| 142 |
fails. This can be done by the caller of parseLangEl after looking at the |
| 143 |
return value. |
| 144 |
-The scanner is now a class. It tracks the current line and guards against |
| 145 |
passing tokens to the parser if no parser name has been given. |
| 146 |
-Separated the parsing of the 'parser' and 'include' statements from the |
| 147 |
scanner. |
| 148 |
|
| 149 |
Kelbt 0.6 - Dec 2, 2006 |
| 150 |
======================= |
| 151 |
-Replaced the Flex scanner with a Ragel scanner. |
| 152 |
-Replaced the Bison parser with a Kelbt-0.5 parser. Kelbt is now |
| 153 |
self-hosting. Error handling is now broken and must be added back. |
| 154 |
-The code was cleaned up: a large amount of code left over from the initial |
| 155 |
fork from Ragel was removed. |
| 156 |
-Bug fix: when the retry point is at the root of the stack, meaning it is the |
| 157 |
only real element, we cannot consult the transition that the sentinel |
| 158 |
element below it took because that transition does not exist. There is no |
| 159 |
state and no type associated with the sentinel. This case is now caught and |
| 160 |
uses the start state directly. |
| 161 |
|
| 162 |
Kelbt 0.5 - Nov 18, 2006 |
| 163 |
======================== |
| 164 |
-Fixed production-based commits which became broken when the state table |
| 165 |
construction was improved in the previous version. |
| 166 |
-The commit, execFinal and final functions were moved into the main |
| 167 |
processing loop. The execFinal that was called in finish() is now called |
| 168 |
from the main loop by setting a commit on the final shift of the eof |
| 169 |
transition which completes the parse. |
| 170 |
-The specified parser name is now used as the name of parser class when the |
| 171 |
functions are generated. |
| 172 |
-The startState variable was moved to the static table data section. The |
| 173 |
mutable parser data is no longer static. |
| 174 |
-The struct block was removed, as it is now depreciated. |
| 175 |
-Can no longer compile test cases with -pedantic and -ansi due to variable |
| 176 |
length arrays on stack. |
| 177 |
|
| 178 |
Kelbt 0.4 - Oct 30, 2006 |
| 179 |
======================== |
| 180 |
-A considerable amount of code cleanup and was done. This includes removal of |
| 181 |
unused code, simplification of data structures and rewrites of LR state |
| 182 |
table construction functions. The unnecessary complexity was because kelbt |
| 183 |
was derived from a version of a keller which supported right-regular |
| 184 |
parsing. Along with the cleanup comes a speedup in LR table construction. |
| 185 |
-An improvement was made to the ordering algorithm. When it's time to assign |
| 186 |
an ordering to a reduction after recursing down a production, the old way |
| 187 |
was to find the expand-to state of the production and assign an ordering to |
| 188 |
any transition which had a reduction of the production. The problem here is |
| 189 |
that it assumes that every transition that has the reduction can follow that |
| 190 |
instance of the production. In reality this is not true. There may be some |
| 191 |
transitions that have the reduction, but which come from a different |
| 192 |
instance of the production. Now we make sure that we assign a time only to |
| 193 |
reductions on characters which can follow the production instance. We do |
| 194 |
this by computing the characters on the fly. This gives a more accurate |
| 195 |
ordering. |
| 196 |
|
| 197 |
Kelbt 0.3 - Aug 8, 2006 |
| 198 |
======================= |
| 199 |
-Fixed a bug in LALR(1) state table construction which caused reductions |
| 200 |
actions for some middle-recursive grammars to not be added. For example this |
| 201 |
grammar fails to set a reduce of A-2 on the ')' character. |
| 202 |
S: A; |
| 203 |
S: B; |
| 204 |
A: '(' A ')'; |
| 205 |
A: '(' 'x' ')'; |
| 206 |
B: '(' B ')'; |
| 207 |
B: '(' 'x' ')'; |
| 208 |
|
| 209 |
Kelbt 0.2 - Aug 1, 2006 |
| 210 |
======================= |
| 211 |
-Fixed the rejection command: It now immediately shifts the nonterminal being |
| 212 |
rejected before jumping to the parse error handling. Previously this |
| 213 |
nonterminal would get lost and would muck things up. |
| 214 |
-Added a test showing variable length list processing. |
| 215 |
-The cxxprep example can use the aapl in the root kelbt package. |
| 216 |
|
| 217 |
Kelbt 0.1 - Jun 26, 2006 |
| 218 |
======================== |
| 219 |
-Initial release. |