01: /*
02: * SExprParser.java
03: *
04: * Copyright 1997 Massachusetts Institute of Technology.
05: * All Rights Reserved.
06: *
07: * Author: Ora Lassila
08: *
09: * $Id: SExprParser.java,v 1.2 1998/01/22 13:09:05 bmahe Exp $
10: */
11:
12: package org.w3c.tools.sexpr;
13:
14: import java.io.IOException;
15:
16: /**
17: * An interface for all dispatched "sub-parsers."
18: */
19: public interface SExprParser {
20:
21: /**
22: * Dispatched on character <i>first</i>, parse an object from the stream.
23: *
24: * @exception SExprParserException on syntax error
25: * @exception IOException on I/O related problems (e.g. end of file)
26: */
27: public Object parse(char first, SExprStream stream)
28: throws SExprParserException, IOException;
29:
30: }
|