Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Grammaire de l'interpreteur
- * <SuiteDonnee> → <Donnee> | <SuiteDonnee><Donnee>
- * <Donnee> → <Decl>; | <Instr>; | <Directive>
- *
- * <Decl> → <TypeVar><Nom> = <Expr1>
- * <Instr> → <Nom> = <Expr1>
- *
- * <Directive> → <Directive2> { <SuiteDonnee> }
- * <Directive2> → <for> | <while> | <if> | <else>
- * <for> → for ( <Decl>; <Condition>; <Expr1>)
- * <while> → while (<Condition>)
- * <if> → if (<Condition>)
- * <else> → else
- *
- * <Condition> → <Condition2> | (<Condition>)
- * <Condition2> → <Condition3> | <Condition2> || <Condition> | <Condition2> && <Condition>
- * <Condition3> → <Expr1> < <Expr1> | <Expr1> <= <Expr1> | <Expr1> > <Expr1> | <Expr1> >= <Expr1> | <Expr1> == <Expr1>
- *
- * <Expr1> → <Expr2> | <Expr1> '|' <Expr2>
- * <Expr2> → <Expr3> | <Expr2> & <Expr3>
- * <Expr3> → <Terme> | <Expr3> + <Terme> | <Expr3> − <Terme>
- * <Terme> → <Opbinaire> | <Terme> * <Opbinaire> | <Terme> / <Opbinaire>
- * <Opbinaire> → <Facteur> | -<Facteur> | ~<Facteur>
- * <Facteur> → ( <Expr1> ) | <Data>
- *
- * <Data> → <Var> | <Nombre>
- * <Var> → <Nom> | ++<Nom> | <Nom>++ | --<Nom> | <Nom>--
- * <Nom> → <NomPredefini> | <Lettre> | <Nom><Caractere>
- * <Caractere> → <Lettre> | <Chiffre>
- *
- * <NomPredefini>→ C1 | C2 | C3 //TODO METTRE LES NOMS DE CAPTEURS & ACTUATEURS ATTENTION CAPTEUR ON PEUT PAS FAIRE C1 = 1 par exemple!!
- *
- * <Nombre> → <Decimal> | <Flottant> | 0x<HexaDecimal>
- * <Flottant> → <Decimal>.<Decimal>
- * <Decimal> → <Chiffre> | <Decimal><Chiffre>
- * <HexaDecimal> → <ChiffreHexa> | <HexaDecimal><ChiffreHexa>
- * <ChiffreHexa> → <Chiffre> | A | B | C | D | E | F
- * <Chiffre> → 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
- * <Lettre> → A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | a | b | c | d | e | f | g | h | i | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z
- * <TypeVar> → int | float
- *
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement