summaryrefslogtreecommitdiff
path: root/ges/parse.l
blob: 04f533af97706acda593f57a6363ca18085a2151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%{
#include "ges-structure-parser.h"

%}

%option noyywrap
%option nounput
%option reentrant
%option extra-type="GESStructureParser *"
%option never-interactive
%option noinput

CLIP 		[ ]+\+clip[ ]+
TEST_CLIP       [ ]+\+test-clip[ ]+
TRANSITION	[ ]+\+transition[ ]+
EFFECT		[ ]+\+effect[ ]+

SETTER		[ ]+set-[^ ]+[ ]+

%%

\"(\\.|[^"])*\"  {
		ges_structure_parser_parse_string (yyextra, yytext, FALSE);
}

{CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP}   {
		ges_structure_parser_parse_symbol (yyextra, yytext);
}

{SETTER}	 {
	ges_structure_parser_parse_setter (yyextra, yytext);
}

[ \t\n]+ 	{
		ges_structure_parser_parse_whitespace (yyextra);
}

. 		{
		/* add everything else */
		ges_structure_parser_parse_default (yyextra, yytext);
}

%%