gstreamer/ges/parse.l
Scott D Phillips f1dd6f4226 parse: Don't #include <unistd.h>
It isn't needed and isn't present in non-posix environments like windows
with MSVC or mingw.

https://bugzilla.gnome.org/show_bug.cgi?id=774641
2016-11-18 09:13:53 -03:00

45 lines
760 B
Plaintext

%{
#include "ges-structure-parser.h"
%}
%option noyywrap
%option nounput
%option reentrant
%option extra-type="GESStructureParser *"
%option never-interactive
%option noinput
%option nounistd
CLIP [ ]+\+clip[ ]+
TEST_CLIP [ ]+\+test-clip[ ]+
TRANSITION [ ]+\+transition[ ]+
EFFECT [ ]+\+effect[ ]+
SETTER [ ]+set-[^ ]+[ ]+
%%
\"(\\.|[^"])*\" {
ges_structure_parser_parse_string (yyextra, yytext, FALSE);
}
{CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP} {
ges_structure_parser_parse_symbol (yyextra, yytext);
}
{SETTER} {
ges_structure_parser_parse_setter (yyextra, yytext);
}
[ \t\n]+ {
ges_structure_parser_parse_whitespace (yyextra);
}
. {
/* add everything else */
ges_structure_parser_parse_default (yyextra, yytext);
}
%%