%{
/* Section 1: User defined variables and information */
#include <string.h>
#include "config_tokens.h"
%}

/* Section 2: Lexical symbol definitions */
%option noyywrap
%array

delim	[ \t]
ws	{delim}+
letter	[a-zA-Z]
digit	[0-9]
number  {digit}+
newline	[\n]
id	"/"?{letter}({letter}|{digit}|"."|"_"|"-"|"\/")*

/* Section 3: Token definition and associated action routines */
%%
{ws}		{ /* no action and no return */ }
{newline}	{ /* no action and no return */ }
"{"		{ return(LBLOCK); }
"}"		{ return(RBLOCK); }
"("             { return(LBRACK); }
")"             { return(RBRACK); }
":"		{ return(COLON); }
{id}		{ return(ID); }
{number}        { return(NUMBER); }
","             { return(COMMA); }
<<EOF>>         { return EOF_FLEX; }
.		{ return(ERRTOK); }

%%

