* src/ltlparse/ltlscan.ll: Cosmetics.

This commit is contained in:
Alexandre Duret-Lutz 2003-11-06 10:07:01 +00:00
parent 21723da118
commit bc05ceb6b4
2 changed files with 8 additions and 6 deletions

View file

@ -7,7 +7,7 @@
#include "parsedecl.hh"
/* Hack Flex so we read from a string instead of reading from a file. */
# define YY_INPUT(buf, result, max_size) \
#define YY_INPUT(buf, result, max_size) \
do { \
result = (max_size < to_parse_size) ? max_size : to_parse_size; \
memcpy(buf, to_parse, result); \
@ -16,13 +16,13 @@
} while (0);
#define YY_USER_ACTION \
yylloc->columns (yyleng);
yylloc->columns(yyleng);
static const char *to_parse = 0;
static const char* to_parse = 0;
static size_t to_parse_size = 0;
void
flex_set_buffer(const char *buf)
flex_set_buffer(const char* buf)
{
to_parse = buf;
to_parse_size = strlen(to_parse);
@ -33,7 +33,7 @@ flex_set_buffer(const char *buf)
%%
%{
yylloc->step ();
yylloc->step();
%}
"(" return PAR_OPEN;
@ -72,7 +72,7 @@ flex_set_buffer(const char *buf)
return ATOMIC_PROP;
}
/* Atomic propositions can also be inclosed in double quotes. */
/* Atomic propositions can also be enclosed in double quotes. */
\"[^\"]*\" {
yylval->str = new std::string(yytext + 1, yyleng - 2);
return ATOMIC_PROP;