ua.gradsoft.termware
Interface IParserFactory

All Known Implementing Classes:
TermParserFactory, XMLTermParserFactory

public interface IParserFactory

IParserFactory: way of creating pluggable interfaces to parsers. user must register class, which implements this interface via call of TermWareSingleton.addParser(languageName, className). After this in TermWare language term loadFile(languageName,filename) will be reduce to result of processing file filename by parser, created by factory className


Method Summary
 IParser createParser(Reader in, String inFname, Term arg, TermWareInstance instance)
          create parser object.
 

Method Detail

createParser

IParser createParser(Reader in,
                     String inFname,
                     Term arg,
                     TermWareInstance instance)
                     throws TermWareException
create parser object.

Throws:
TermWareException