The SExpParser structure
Author: John Reppy
Keywords: Standard ML, SML, SML/NJ Library

The SML of NJ Library
The `SExpParser` structure

The `SExpParser` structure implements a parser for S-Expressions.

## Synopsis

    structure SExpParser

## Interface

    val parse : TextIO.instream -> SExp.value list

    val parseFile : string -> SExp.value list

## Description

`val parse : TextIO.instream -> SExp.value list`

  `parse inS` parses a sequence of S-Expressions from the input stream `inS`. The `Fail` exception is raised if a syntax error is encountered.

`val parseFile : string -> SExp.value list`

  `parse f` parses a sequence of S-Expressions from the file `f`. The `Fail` exception is raised if a syntax error is encountered.

## See Also

`SExp`, The SExp Library

SML/NJ Version 110.99.9 (November 4, 2025)
Last updated 2025-11-04 15:48:25 UTC