Class ArithExprParser

java.lang.Object
  |
  +--ArithExprParser
Direct Known Subclasses:
InfixParser, PrefixParser

abstract class ArithExprParser
extends Object

Parseur d'expressions arithmétiques. Un parseur permet de transformer un flot ou une chaîne de caractères en une expression arithmétique.


Constructor Summary
(package private) ArithExprParser()
           
 
Method Summary
(package private) abstract  ArithExpr parse(Reader r)
          Parse une expression arithmétique à partir d'un flot de caractères.
(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

ArithExprParser

ArithExprParser()
Method Detail

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.

parse

abstract ArithExpr parse(Reader r)
                  throws IOException,
                         ParseException
Parse une expression arithmétique à partir d'un flot de caractères.

Parameters:
r - flot 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.