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
|
|
|
|
|
2015-02-19 12:15:25 +00:00
|
|
|
CLIP [ ]+--clip[ ]+|[ ]+-c[ ]+
|
|
|
|
TRANSITION [ ]+--transition[ ]+|[ ]+-t[ ]+
|
|
|
|
EFFECT [ ]+--effect[ ]+|[ ]+-e[ ]+
|
|
|
|
|
2015-02-19 18:16:44 +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);
|
|
|
|
}
|
|
|
|
|
2015-02-19 12:15:25 +00:00
|
|
|
{CLIP}|{TRANSITION}|{EFFECT} {
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
%%
|