read

package
v0.0.0-...-8cefd3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: ISC Imports: 4 Imported by: 1

Documentation

Overview

Package read implements a reader for Lisp expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader holds state of Lisp data.

func New

func New(s *scan.Scanner) *Reader

New initialises a reader for parsing Lisp expressions.

func (*Reader) Read

func (r *Reader) Read() value.Value

Read parses the next expression from a stream of tokens. When the end of the stream is reached, then value.EOF.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL