Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
also remove xbt/automaton which was only useful to stateful MC
[simgrid.git] / src / xbt / automaton / parserPromela.yacc
diff --git a/src/xbt/automaton/parserPromela.yacc b/src/xbt/automaton/parserPromela.yacc
deleted file mode 100644 (file)
index 05bb382..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-/* Copyright (c) 2012-2023. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-%{
-#include "simgrid/config.h"
-#if !HAVE_UNISTD_H
-#define YY_NO_UNISTD_H /* hello Windows */
-#endif
-
-#include "automaton_lexer.yy.c"
-#include <xbt/automaton.h>
-
-void yyerror(const char *s);
-
-static void new_state(const char* id, int src);
-static void new_transition(const char* id, xbt_automaton_exp_label_t label);
-
-%}
-
-%union{
-  double real;
-  int integer;
-  char* string;
-  xbt_automaton_exp_label_t label;
-}
-
-%token NEVER
-%token IF
-%token FI
-%token IMPLIES
-%token GOTO
-%token AND
-%token OR
-%token NOT
-%token LEFT_PAR
-%token RIGHT_PAR
-%token CASE
-%token COLON
-%token SEMI_COLON
-%token CASE_TRUE
-%token LEFT_BRACE
-%token RIGHT_BRACE
-%token <integer> LITT_ENT
-%token <string> LITT_CHAINE
-%token <real> LITT_REEL
-%token <string> ID
-
-%type <label> exp;
-
-%start automaton
-
-%left AND OR
-%nonassoc NOT
-
-%%
-
-automaton : NEVER LEFT_BRACE stateseq RIGHT_BRACE
-          ;
-
-stateseq :
-         | ID COLON { new_state($1, 1);} IF option FI SEMI_COLON stateseq
-         ;
-
-option :
-       | CASE exp IMPLIES GOTO ID option { new_transition($5, $2);}
-       ;
-
-exp : LEFT_PAR exp RIGHT_PAR { $$ = $2; }
-    | exp OR exp { $$ = xbt_automaton_exp_label_new_or($1, $3); }
-    | exp AND exp { $$ = xbt_automaton_exp_label_new_and($1, $3); }
-    | NOT exp { $$ = xbt_automaton_exp_label_new_not($2); }
-    | CASE_TRUE { $$ = xbt_automaton_exp_label_new_one(); }
-    | ID { $$ = xbt_automaton_exp_label_new_predicat($1); }
-    ;
-
-%%
-
-
-
-void yyerror(const char *s){
-  fprintf (stderr, "%s\n", s);
-}
-
-
-