Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/LTL/parser/     Datei vom 31.4.2026 mit Größe 1 kB image not shown  

Quelle  ltl.lex

  Sprache: Lex
 

structure T = Tokens

type pos = int
type svalue = T.svalue
type ('a,'b) token = ('a,'b) T.token
type lexresult = (svalue,pos) token

val error = fn x => TextIO.output(TextIO.stdOut, x ^ "\n");
val eof = fn () => T.EOF (~1,0);

%%
%full
%header (functor LtlLexFun(Tokens: Ltl_TOKENS));
%reject
%posarg

alpha = [a-zA-Z_];
digit = [0-9];
ws = [\ \t];

%%

\n           => (continue ());
{ws}+        => (continue ());
"true"|"1"   => (T.TRUE (yypos,0));
"false"|"0"  => (T.FALSE (yypos,0));
"~"|"!"      => (T.NOT (yypos,0));
"|"+|"\\/"   => (T.OR (yypos,0));
"&"+|"/\\"   => (T.AND (yypos,0));
"X"          => (T.NEXT (yypos,0));
"U"          => (T.UNTIL (yypos,0));
"V"|"R"      => (T.RELEASE (yypos,0));
"W"          => (T.WEAKUNTIL (yypos,0));
"M"          => (T.STRONGRELEASE (yypos,0));
"-->"|"->"   => (T.IMPL (yypos,0));
"<-->"|"<->" => (T.IFF (yypos,0));
"F"|"<>"     => (T.FINAL (yypos,0));
"G"|"[]"     => (T.GLOBAL (yypos,0));
"("          => (T.LPAREN (yypos,0));
")"          => (T.RPAREN (yypos,0));
{alpha}({alpha}|{digit})* => (if yytext = "GF" orelse yytext = "FG" then 
                                REJECT() 
                              else (T.IDENT(yytext,yypos,0)));
.            => (error("Bad character: " ^ yytext); T.BAD_CHAR (yypos,0));

Messung V0.5 in Prozent
C=90 H=13 G=64

¤ Dauer der Verarbeitung: 0.8 Sekunden  (vorverarbeitet am  2026-06-13) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen



NIST Cobol Testsuite



Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.