2 changed files with 162 additions and 5 deletions
@ -0,0 +1,152 @@
|
||||
Index: ragel/ragel.h
|
||||
--- ragel/ragel.h.orig 2005-12-17 04:50:57 +0100
|
||||
+++ ragel/ragel.h 2005-12-27 18:57:00 +0100
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
+#include <string>
|
||||
#include "config.h"
|
||||
|
||||
#define PROGNAME "ragel"
|
||||
Index: rlcodegen/fsmcodegen.cpp
|
||||
--- rlcodegen/fsmcodegen.cpp.orig 2005-12-21 07:15:28 +0100
|
||||
+++ rlcodegen/fsmcodegen.cpp 2005-12-27 18:57:00 +0100
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "fsmcodegen.h"
|
||||
#include "redfsm.h"
|
||||
#include "gendata.h"
|
||||
+#include <climits>
|
||||
#include <sstream>
|
||||
|
||||
/* Determine if a string is only whitespace. Code blocks that are only
|
||||
Index: rlcodegen/gendata.cpp
|
||||
--- rlcodegen/gendata.cpp.orig 2005-12-22 08:04:14 +0100
|
||||
+++ rlcodegen/gendata.cpp 2005-12-27 18:57:00 +0100
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "fgotocodegen.h"
|
||||
#include "ipgotocodegen.h"
|
||||
|
||||
+#include <climits>
|
||||
#include <iostream>
|
||||
|
||||
using std::endl;
|
||||
Index: rlcodegen/xmlparse.y
|
||||
--- rlcodegen/xmlparse.y.orig 2005-12-22 08:04:14 +0100
|
||||
+++ rlcodegen/xmlparse.y 2005-12-27 18:57:00 +0100
|
||||
@@ -175,7 +175,7 @@
|
||||
else
|
||||
sourceFileName = fileNameAttr->value;
|
||||
openOutput( sourceFileName );
|
||||
- }
|
||||
+ };
|
||||
|
||||
AttributeList:
|
||||
AttributeList Attribute {
|
||||
@@ -190,7 +190,7 @@
|
||||
XML_Word '=' XML_Literal {
|
||||
attrKey = $1;
|
||||
attrValue = $3;
|
||||
- }
|
||||
+ };
|
||||
|
||||
HostOrDefList:
|
||||
HostOrDefList HostOrDef |
|
||||
@@ -204,7 +204,7 @@
|
||||
'<' '/' TAG_host '>' {
|
||||
if ( outputFormat == OutCCode || outputFormat == OutDCode )
|
||||
*outStream << xmlData.data;
|
||||
- }
|
||||
+ };
|
||||
|
||||
TagHostHead:
|
||||
'<' TAG_host AttributeList '>' {
|
||||
@@ -216,14 +216,14 @@
|
||||
if ( outputFormat == OutCCode || outputFormat == OutDCode )
|
||||
lineDirective( *outStream, sourceFileName, line );
|
||||
}
|
||||
- }
|
||||
+ };
|
||||
|
||||
TagRagelDef:
|
||||
RagelDefHead
|
||||
RagelDefItemList
|
||||
'<' '/' TAG_ragel_def '>' {
|
||||
cgd->generate();
|
||||
- }
|
||||
+ };
|
||||
|
||||
RagelDefHead:
|
||||
'<' TAG_ragel_def AttributeList '>' {
|
||||
@@ -303,7 +303,7 @@
|
||||
else {
|
||||
warning() << "unrecognized write option" << endl;
|
||||
}
|
||||
- }
|
||||
+ };
|
||||
|
||||
|
||||
TagAlphType:
|
||||
@@ -361,7 +361,7 @@
|
||||
'<' '/' TAG_start_state '>' {
|
||||
unsigned long startState = strtoul( xmlData.data, 0, 10 );
|
||||
cgd->setStartState( startState );
|
||||
- }
|
||||
+ };
|
||||
|
||||
TagEntryPoints:
|
||||
'<' TAG_entry_points AttributeList '>'
|
||||
@@ -370,7 +370,7 @@
|
||||
Attribute *errorAttr = $3->find( "error" );
|
||||
if ( errorAttr != 0 )
|
||||
cgd->setForcedErrorState();
|
||||
- }
|
||||
+ };
|
||||
|
||||
EntryPointList:
|
||||
EntryPointList TagEntry |
|
||||
@@ -462,7 +462,7 @@
|
||||
cgd->initTransList( curState, length );
|
||||
curTrans = 0;
|
||||
}
|
||||
- }
|
||||
+ };
|
||||
|
||||
TransList:
|
||||
TransList TagTrans |
|
||||
@@ -531,7 +531,7 @@
|
||||
/* Nothing */ {
|
||||
/* Start with empty list. */
|
||||
$$ = new InlineList;
|
||||
- }
|
||||
+ };
|
||||
|
||||
InlineItem:
|
||||
TagText |
|
||||
@@ -564,7 +564,7 @@
|
||||
'<' '/' TAG_text '>' {
|
||||
$$ = new InlineItem( InputLoc(), InlineItem::Text );
|
||||
$$->data = strdup(xmlData.data);
|
||||
- }
|
||||
+ };
|
||||
|
||||
TagGoto:
|
||||
'<' TAG_goto '>'
|
||||
@@ -772,7 +772,7 @@
|
||||
cgd->initActionTableList( length );
|
||||
curActionTable = 0;
|
||||
}
|
||||
- }
|
||||
+ };
|
||||
|
||||
ActionTableList:
|
||||
ActionTableList TagActionTable |
|
||||
@@ -806,7 +806,7 @@
|
||||
}
|
||||
|
||||
curActionTable += 1;
|
||||
- }
|
||||
+ };
|
||||
|
||||
%%
|
||||
|
||||
Loading…
Reference in new issue