3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
6 # Simple Rosetta-code task : Parsing a S-Expression
11 var src
= """((data "quoted data" 123 4.5)
12 (data (!@# (4.5) "(more" "data)")))"""
14 var sexp
= src
.to_sexp
16 if sexp
isa SExpError then
23 if sexp
isa SExp then print sexp
.pretty_to_s