Initial commit

This commit is contained in:
Artur Meski
2019-02-22 17:33:33 +00:00
parent 4eb029f91e
commit 6a17587378
43 changed files with 9703 additions and 0 deletions

37
verifier.l Normal file
View File

@@ -0,0 +1,37 @@
%{
#include <stdio.h>
#include <string.h>
#include "y.tab.h"
%}
%%
\#.* ;
net return NETTOK;
automaton return AUTOMATONTOK;
locations return LOCATIONSTOK;
actions return ACTIONSTOK;
clocks return CLOCKSTOK;
trans return TRANSTOK;
init return INITIALTOK;
commited return COMMITEDTOK;
urgent return URGENTTOK;
inv return INVTOK;
reach return REACHTOK;
[0-9]+ yylval.number=atoi(yytext); return CONSTANT;
[a-zA-Z_][a-zA-Z0-9_]* yylval.string=strdup(yytext); return WORD;
\{ return OBRACETOK;
\} return EBRACETOK;
; return SEMICOLON;
, return COLON;
-> return RARRTOK;
\&\& return CONJUNCTION;
\<= return REL_LE;
\< return REL_LT;
\>= return REL_GE;
\> return REL_GT;
- return OP_DIFF;
= return REL_EQ;
@ return ATTOK;
\n ;
[ \t]+ ;
%%