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
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
CLIP [ ]+\+clip[ ]+
|
2015-04-03 15:38:53 +00:00
|
|
|
TEST_CLIP [ ]+\+test-clip[ ]+
|
2019-10-29 17:03:14 +00:00
|
|
|
TRANSITION [ ]+\+transition[ ]+
|
|
|
|
EFFECT [ ]+\+effect[ ]+
|
|
|
|
TITLE [ ]+\+title[ ]+
|
2021-01-12 18:55:52 +00:00
|
|
|
TRACK [ ]+\+track[ ]+
|
2021-01-15 12:27:31 +00:00
|
|
|
KEYFRAME [ ]+\+keyframes[ ]+
|
2015-02-19 12:15:25 +00:00
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
SETTER [ ]+set-[^ ]+[ ]+
|
|
|
|
|
|
|
|
STRING \"(\\.|[^"])*\"
|
|
|
|
/* A value string, as understood by gst_structure_from_string
|
|
|
|
* Characters are from GST_ASCII_IS_STRING
|
|
|
|
* NOTE: character set is *not* supposed to be locale dependent */
|
|
|
|
VALUE {STRING}|([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+/:.-]+)
|
2015-02-19 12:15:25 +00:00
|
|
|
|
2015-02-19 07:51:20 +00:00
|
|
|
%%
|
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
={VALUE} {
|
|
|
|
ges_structure_parser_parse_value (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
|
|
|
{STRING} {
|
2015-02-19 07:51:20 +00:00
|
|
|
ges_structure_parser_parse_string (yyextra, yytext, FALSE);
|
|
|
|
}
|
|
|
|
|
2021-01-15 12:27:31 +00:00
|
|
|
{KEYFRAME}|{TRACK}|{CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP}|{TITLE} {
|
2015-02-19 07:51:20 +00:00
|
|
|
ges_structure_parser_parse_symbol (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
{SETTER} {
|
|
|
|
ges_structure_parser_parse_setter (yyextra, yytext);
|
2015-02-19 12:15:25 +00:00
|
|
|
}
|
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
[ \t\n]+ {
|
2015-02-19 07:51:20 +00:00
|
|
|
ges_structure_parser_parse_whitespace (yyextra);
|
|
|
|
}
|
|
|
|
|
2019-10-29 17:03:14 +00:00
|
|
|
. {
|
2015-02-19 07:51:20 +00:00
|
|
|
/* add everything else */
|
|
|
|
ges_structure_parser_parse_default (yyextra, yytext);
|
|
|
|
}
|
|
|
|
|
|
|
|
%%
|