ges-launch: Add support for +test-clip
[platform/upstream/gstreamer.git] / ges / parse.l
1 %{
2 #include "ges-structure-parser.h"
3
4 %}
5
6 %option noyywrap
7 %option nounput
8 %option reentrant
9 %option extra-type="GESStructureParser *"
10 %option never-interactive
11 %option noinput
12
13 CLIP            [ ]+\+clip[ ]+
14 TEST_CLIP       [ ]+\+test-clip[ ]+
15 TRANSITION      [ ]+\+transition[ ]+
16 EFFECT          [ ]+\+effect[ ]+
17
18 SETTER          [ ]+set-[^ ]+[ ]+
19
20 %%
21
22 \"(\\.|[^"])*\"  {
23                 ges_structure_parser_parse_string (yyextra, yytext, FALSE);
24 }
25
26 {CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP}   {
27                 ges_structure_parser_parse_symbol (yyextra, yytext);
28 }
29
30 {SETTER}         {
31         ges_structure_parser_parse_setter (yyextra, yytext);
32 }
33
34 [ \t\n]+        {
35                 ges_structure_parser_parse_whitespace (yyextra);
36 }
37
38 .               {
39                 /* add everything else */
40                 ges_structure_parser_parse_default (yyextra, yytext);
41 }
42
43 %%