Class PrefixParser

java.lang.Object
  |
  +--ArithExprParser
        |
        +--PrefixParser

class PrefixParser
extends ArithExprParser

Parseur d'expressions arithmétiques en notation préfixe.


Constructor Summary
(package private) PrefixParser()
           
 
Method Summary
(package private)  ArithExpr parse(Reader r)
          Parse une expression arithmétique en notation prefixe.
private  ArithExpr parse(StreamTokenizer st)
          Analyseur syntaxique.
(package private)  ArithExpr parse(String s)
          Parse une expression arithmétique à partir d'une chaîne de caractères.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixParser

PrefixParser()
Method Detail

parse

ArithExpr parse(Reader r)
          throws IOException,
                 ParseException
Parse une expression arithmétique en notation prefixe.

Specified by:
parse in class ArithExprParser
Parameters:
r - flot de caractères
Returns:
l'expression
Throws:
IOException - si un problème d'entrée/sortie survient.
ParseException - si la syntaxe est incorrecte.

parse

private ArithExpr parse(StreamTokenizer st)
                 throws IOException,
                        ParseException
Analyseur syntaxique.

Parameters:
st - analyseur lexical
Returns:
l'expression
IOException
ParseException

parse

ArithExpr parse(String s)
          throws IOException,
                 ParseException
Parse une expression arithmétique à partir d'une chaîne de caractères.

Parameters:
s - chaîne de caractères
Returns:
l'expression arithmétique
Throws:
ParseException - si la syntaxe est incorrecte.
IOException - si un problème d'entrée/sortie survient.