|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.cs.rainbow.wvmc.parser.SpecParse
Parser for CTL* in negation-normal form and LTL. LTL formulæ are converted to negation-normal form CTL internally.
parse(AutomataBuilder,String)
,
parseLTL(AutomataBuilder,String)
,
Recognised GrammarField Summary | |
static int |
DECIMAL_NUMBER
|
static int |
DEFAULT
|
static int |
EOF
|
static int |
HEX_NUMBER
|
Token |
jj_nt
|
static int |
NUMBER
|
static int |
OCTAL_NUMBER
|
static int |
SINGLE_LINE_COMMENT
|
Token |
token
|
uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager |
token_source
|
static String[] |
tokenImage
|
Fields inherited from interface uk.ac.man.cs.rainbow.wvmc.Constants |
A, AND, AU, AV, AX, BAD_LOOP, E, EU, EV, EX, Existential, Expand, False, GOOD_LOOP, LOOP_STATE, MAX_BUCHI_TABLE, MAX_TABLE, NEW_STATE, NO_MORE_SUCCS, NOT_LOOP, NUMOPS, OLD_STATE, opToName, OR, q_0, q_1, q_10, q_11, q_12, q_13, q_14, q_15, q_2, q_3, q_4, q_5, q_6, q_7, q_8, q_9, quantToName, True, U, Universal, V, X |
Constructor Summary | |
SpecParse(CharStream stream)
|
|
SpecParse(uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager tm)
|
Method Summary | |
int |
CtlBoolConnect()
Parse either a CTL* and or or connective. |
Formula |
CtlComplexSpec()
A complex CTL* formula fragment. |
Formula |
CtlFGQuant(boolean isAll,
int i)
A CTL* formula with a path quantifier and a sometime/always operator in front. |
int |
CtlPathQuant()
Parse either a CTL* universal or existential path quantifier. |
FormPair |
CtlPrefix()
A prefix proposition. |
Formula |
CtlQuantified(boolean isAll)
A quantified CTL* formula. |
Formula |
CtlSimpleSpec()
Simple components of a CTL* formula. |
int |
CtlSometimeAlways()
Parse either a CTL* always or sometime operator. |
Formula |
CtlSpec()
A CTL* formula. |
FormPair |
CtlSpecPair()
A pair of CTL* formulę. |
Formula |
CtlStarSpec()
Parse a CTL* formula, optionally followed by a ".". |
int |
CtlUntilRelease()
Parse either a CTL* until or release operator. |
Formula |
CtlUNum()
A proposition with underlines round it. |
Formula |
CtlUQuant(boolean isAll,
Formula u)
CTL* formula fragment. |
Formula |
CtlXQuant(boolean isAll)
A CTL* formula with a path quantifier and a next operator in front. |
void |
disable_tracing()
|
void |
enable_tracing()
|
ParseException |
generateParseException()
|
Token |
getNextToken()
|
Token |
getToken(int index)
|
Formula |
Ltl()
Parse an LTL formula, optionally followed by a ".". |
Formula |
LtlAnd(boolean negated)
Parse an LTL formula fragment consisting of a series of fragments separated by and operators. |
Formula |
LtlImplied(boolean negated)
Parse an LTL formula fragment consisting of an optional implication between fragments. |
Formula |
LtlMonadic(boolean negated)
Parse an LTL formula fragment consisting of a list of monadic operators and a proposition or parenthesized formula. |
boolean |
LtlMonop(boolean negated)
Parse either an LTL always or sometime operator. |
Formula |
LtlOr(boolean negated)
Parse an LTL formula fragment consisting of a series of fragments separated by or operators. |
Formula |
LtlUntil(boolean negated)
Parse an LTL formula fragment consisting of a series of fragments separated by until operators. |
Formula |
LtlWhile(boolean negated)
Parse an LTL formula fragment consisting of a series of fragments separated by while operators. |
static Formula |
parse(AutomataBuilder builder,
String s)
Parse the given string and build a formula with the given construction engine. |
static Formula |
parseLTL(AutomataBuilder builder,
String s)
Parse the given string and build an LTL formula with the given construction engine. |
void |
ReInit(CharStream stream)
|
void |
ReInit(uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager tm)
|
int |
TlProp()
A basic proposition referent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager token_source
public Token token
public Token jj_nt
public static final int EOF
public static final int SINGLE_LINE_COMMENT
public static final int NUMBER
public static final int DECIMAL_NUMBER
public static final int OCTAL_NUMBER
public static final int HEX_NUMBER
public static final int DEFAULT
public static final String[] tokenImage
Constructor Detail |
public SpecParse(CharStream stream)
public SpecParse(uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager tm)
Method Detail |
public static Formula parse(AutomataBuilder builder, String s) throws ParseException
builder
- CTL* formula construction engine.s
- String to parse.ParseException
- If the string does not contain validly-formatted CTL* in
negation-normal form.public static Formula parseLTL(AutomataBuilder builder, String s) throws ParseException
builder
- CTL* formula construction engine.s
- String to parse.ParseException
- If the string does not contain validly-formatted LTL.Ltl()
public final Formula Ltl() throws ParseException
LtlUntil()
public final Formula LtlUntil(boolean negated) throws ParseException
LtlWhile
( U LtlWhile )*
public final Formula LtlWhile(boolean negated) throws ParseException
LtlImplied
( W LtlImplied )*
public final Formula LtlImplied(boolean negated) throws ParseException
LtlOr
( >= LtlOr )?
public final Formula LtlOr(boolean negated) throws ParseException
LtlAnd
( \/ LtlAnd )*
public final Formula LtlAnd(boolean negated) throws ParseException
LtlMonadic
( /\ LtlMonadic )*
public final boolean LtlMonop(boolean negated) throws ParseException
[] | <>
public final Formula LtlMonadic(boolean negated) throws ParseException
(LtlUntil
) | [] LtlMonadic | <> LtlMonadic | O LtlMonadic | ! LtlMonadic | ~ LtlMonadic | ¬ LtlMonadic |TlProp
LtlMonop(boolean)
public final Formula CtlStarSpec() throws ParseException
CtlSpec()
public final Formula CtlSpec() throws ParseException
CtlComplexSpec
|CtlSimpleSpec
public final Formula CtlComplexSpec() throws ParseException
XCtlSpec
| U ( CtlSpec , CtlSpec ) | V ( CtlSpec , CtlSpec ) | F CtlSpec | G CtlSpec | ACtlQuantified
| E CtlQuantified
CtlPathQuant()
,
CtlSometimeAlways()
,
CtlSpecPair()
,
CtlUntilRelease()
public final Formula CtlUQuant(boolean isAll, Formula u) throws ParseException
X CtlSpec
| F CtlSpec
| G CtlSpec
CtlSometimeAlways()
public final Formula CtlXQuant(boolean isAll) throws ParseException
_ {TlProp
} _CtlSpec
| CtlSpec
CtlPrefix()
public final Formula CtlFGQuant(boolean isAll, int i) throws ParseException
_ {TlProp
} _CtlSpec
| CtlSpec
CtlPrefix()
public final Formula CtlQuantified(boolean isAll) throws ParseException
_TlProp
_CtlUQuant
| XCtlXQuant
| U (CtlSpec
, CtlSpec ) | V ( CtlSpec , CtlSpec ) | FCtlFGQuant
| G CtlFGQuant |CtlSimpleSpec
CtlSometimeAlways()
,
CtlSpecPair()
,
CtlUntilRelease()
,
CtlUNum()
public final Formula CtlSimpleSpec() throws ParseException
(CtlSpec
) | ~TlProp
| prop | t | f | & ( CtlSpec , CtlSpec ) | | ( CtlSpec , CtlSpec )
CtlBoolConnect()
,
CtlSpecPair()
public final FormPair CtlSpecPair() throws ParseException
( CtlSpec
, CtlSpec )
public final FormPair CtlPrefix() throws ParseException
_ { TlProp
} _
public final int CtlSometimeAlways() throws ParseException
F | G
public final int CtlUntilRelease() throws ParseException
U | V
public final int CtlBoolConnect() throws ParseException
& | |
public final int CtlPathQuant() throws ParseException
A | E
public final Formula CtlUNum() throws ParseException
_ TlProp
_
public final int TlProp() throws ParseException
( p )? NUMBER
public void ReInit(CharStream stream)
public void ReInit(uk.ac.man.cs.rainbow.wvmc.parser.SpecParseTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |