Skip to content

Commit

Permalink
imported peg-0.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
gpakosz committed Jul 22, 2013
1 parent 2a21444 commit 7938c9d
Show file tree
Hide file tree
Showing 7 changed files with 622 additions and 325 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ distribute them any way you like.

## Version history

* **0.1.12** ([zip](../../archive/0.1.12.zip), [tar.gz](../../archive/0.1.12.tar.gz)) — 2013-07-20
Use BSD-licensed `getopt()` in Windows build.
Verbose mode handles Variable nodes.
* **0.1.11** ([zip](../../archive/0.1.11.zip), [tar.gz](../../archive/0.1.11.tar.gz)) — 2013-06-03
Add error actions via `"~"` operator.
Support declaration of local variables at the top level of semantic actions.
Expand Down
2 changes: 1 addition & 1 deletion src/leg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A recursive-descent parser generated by peg 0.1.11 */
/* A recursive-descent parser generated by peg 0.1.12 */

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/peg.peg-c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* A recursive-descent parser generated by peg 0.1.11 */
/* A recursive-descent parser generated by peg 0.1.12 */

#include <stdio.h>
#include <stdlib.h>
Expand Down
3 changes: 2 additions & 1 deletion src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK.
*
* Last edited: 2012-05-15 23:29:12 by piumarta on emilia
* Last edited: 2013-07-20 12:47:35 by piumarta on margaux1
*/

#include <stdio.h>
Expand Down Expand Up @@ -310,6 +310,7 @@ static void Node_fprint(FILE *stream, Node *node)
switch (node->type)
{
case Rule: fprintf(stream, " %s", node->rule.name); break;
case Variable: fprintf(stream, " %s:", node->variable.name); break;
case Name: fprintf(stream, " %s", node->name.rule->rule.name); break;
case Dot: fprintf(stream, " ."); break;
case Character: fprintf(stream, " '%s'", node->character.value); break;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define PEG_MAJOR 0
#define PEG_MINOR 1
#define PEG_LEVEL 11
#define PEG_LEVEL 12
Loading

0 comments on commit 7938c9d

Please sign in to comment.