Skip to main content

module SExp

rascal-0.28.2

Usage

import lang::sexp::SExp;

Dependencies

import lang::sexp::\syntax::SExp;
import ParseTree;

Synopsis

AST model for S-Expressions.

data String

data String  
= simple(SimpleString simpleStr)
| display(str display, SimpleString simpleStr)
;

data SimpleString

data SimpleString  
= raw(Raw raw)
| token(str \value)
| base64(list[str] chars)
| hex(list[str] digits)
| quoted(str \value)
;

data Raw

data Raw  
= raw(int size, str bytes)
;

function parseSExp

SExp parseSExp(str src, loc l)