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-03-13 12:02:30 +00:00
|
|
|
CLIP [ ]+\+clip[ ]+
|
|
|
|
TRANSITION [ ]+\+transition[ ]+
|
|
|
|
EFFECT [ ]+\+effect[ ]+
|
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);
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
%%
|