Package gnu.kawa.brl

Class BRLRead

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable

    public class BRLRead
    extends LispReader
    A class to read Scheme forms (S-expressions).
    • Constructor Detail

      • BRLRead

        public BRLRead​(gnu.kawa.io.InPort port)
      • BRLRead

        public BRLRead​(gnu.kawa.io.InPort port,
                       SourceMessages messages)
    • Method Detail

      • inLiteral

        public boolean inLiteral()
        True if in literal text (even if nested inside an escaped expression).
      • readCommand

        public java.lang.Object readCommand()
                                     throws java.io.IOException,
                                            SyntaxException
        Description copied from class: LispReader
        Read a "command" - a top-level expression or declaration. Return Sequence.eofValue at end of file.
        Overrides:
        readCommand in class LispReader
        Throws:
        java.io.IOException
        SyntaxException
      • readObject

        public static java.lang.Object readObject​(gnu.kawa.io.InPort port)
                                           throws java.io.IOException,
                                                  SyntaxException
        Throws:
        java.io.IOException
        SyntaxException
      • isBrlCompatible

        public boolean isBrlCompatible()
      • setBrlCompatible

        public void setBrlCompatible​(boolean compat)