Made the grammer fit the README description more and it seems to work the same. Tests in other projects confirmed, but may need to watch it.
This commit is contained in:
parent
88bc6f9123
commit
9e6038dd7d
2 changed files with 7 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
namespace lel {
|
||||
|
||||
|
||||
#line 40 "lel_parser.rl"
|
||||
#line 41 "lel_parser.rl"
|
||||
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ static const int Parser_error = 0;
|
|||
static const int Parser_en_main = 1;
|
||||
|
||||
|
||||
#line 43 "lel_parser.rl"
|
||||
#line 44 "lel_parser.rl"
|
||||
|
||||
bool Parser::parse(std::string input) {
|
||||
reset();
|
||||
|
@ -101,7 +101,7 @@ bool Parser::parse(std::string input) {
|
|||
cs = Parser_start;
|
||||
}
|
||||
|
||||
#line 54 "lel_parser.rl"
|
||||
#line 55 "lel_parser.rl"
|
||||
|
||||
#line 94 "lel_parser.cpp"
|
||||
{
|
||||
|
@ -246,7 +246,7 @@ _again:
|
|||
_out: {}
|
||||
}
|
||||
|
||||
#line 55 "lel_parser.rl"
|
||||
#line 56 "lel_parser.rl"
|
||||
|
||||
bool good = pe - p == 0;
|
||||
if(good) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue