[SOLVED] CS package sexpr

$25

File Name: CS_package_sexpr.zip
File Size: 150.72 KB

5/5 - (1 vote)

package sexpr

import errors

// ErrParser is the error value returned by the Parser if the string is not a
// valid term.
// See also https://golang.org/pkg/errors/#New
// and // https://golang.org/pkg/builtin/#error
var ErrParser = errors.New(parser error)

//
// ::= | | QUOTE
// ::= NUMBER | SYMBOL
// ::= LPAR RPAR | LPAR RPAR
// ::= DOT
// ::= | epsilon
//
type Parser interface {
Parse(string) (*SExpr, error)
}

func NewParser() Parser {
panic(TODO: implement NewParser)
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS package sexpr
$25