Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
bc05ceb6
Commit
bc05ceb6
authored
Nov 06, 2003
by
Alexandre Duret-Lutz
Browse files
* src/ltlparse/ltlscan.ll: Cosmetics.
parent
21723da1
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
bc05ceb6
2003-11-06 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlparse/ltlscan.ll: Cosmetics.
* configure.ac: Bump version to 0.0k.
2003-11-03 Alexandre Duret-Lutz <adl@src.lip6.fr>
...
...
src/ltlparse/ltlscan.ll
View file @
bc05ceb6
...
...
@@ -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
i
nclosed
in
double
quotes
.
*
/
/
*
Atomic
propositions
can
also
be
e
nclosed
in
double
quotes
.
*
/
\
"[^\"
]*
\"
{
yylval-
>
str
=
new
std:
:string
(
yytext
+
1
,
yyleng
-
2
)
;
return
ATOMIC_PROP
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment