2015-02-19 07:51:20 +00:00
|
|
|
%{
|
|
|
|
#include "ges-structure-parser.h"
|
|
|
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
%option noyywrap
|
|
|
|
%option nounput
|
|
|
|
%option reentrant
|
|
|
|
%option extra-type="GESStructureParser *"
|
|
|
|
%option never-interactive
|
|
|
|
%option noinput
|
2016-11-17 18:35:50 +00:00
|
|
|
%option nounistd
|
2015-02-19 07:51:20 +00:00
|
|
|
|
2015-03-13 12:02:30 +00:00
|
|
|
CLIP [ ]+\+clip[ ]+
|
2015-04-03 15:38:53 +00:00
|
|
|
TEST_CLIP [ ]+\+test-clip[ ]+
|
2015-03-13 12:02:30 +00:00
|
|
|
TRANSITION [ ]+\+transition[ ]+
|
|
|
|
EFFECT [ ]+\+effect[ ]+
|
2018-03-30 21:17:13 +00:00
|
|
|
TITLE [ ]+\+title[ ]+
|
2015-02-19 12:15:25 +00:00
|
|
|
|
2015-02-25 17:01:38 +00:00
|
|
|
SETTER [ ]+set-[^ ]+[ ]+
|
2015-02-19 12:15:25 +00:00
|
|
|
|
2015-02-19 07:51:20 +00:00
|
|
|
%%
|
|
|
|
|
|
|
|
\"(\\.|[^"])*\" {
|
|
|
|
ges_structure_parser_parse_string (yyextra, yytext, FALSE);
|
|
|
|
}
|
|
|
|
|
2018-03-30 21:17:13 +00:00
|
|
|
{CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP}|{TITLE} {
|
2015-02-19 07:51:20 +00:00
|
|
|
ges_structure_parser_parse_symbol (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
2015-02-19 12:15:25 +00:00
|
|
|
{SETTER} {
|
|
|
|
ges_structure_parser_parse_setter (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
2015-02-19 07:51:20 +00:00
|
|
|
[ \t\n]+ {
|
|
|
|
ges_structure_parser_parse_whitespace (yyextra);
|
|
|
|
}
|
|
|
|
|
|
|
|
. {
|
|
|
|
/* add everything else */
|
|
|
|
ges_structure_parser_parse_default (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
|
|
|
%%
|