summaryrefslogtreecommitdiff
path: root/sexp.rb
blob: 47bb674b4e1610b8e7d175be2e38c964b6107f9e (plain)
1
2
3
4
5
6
7
8
9
10
$LOAD_PATH << "./lib"

require "sexp/lex"
require "sexp/parse"

input = "(def foo (+ 7 4)) (display foo)"
tokens = lex_tokens(input)
sexps = parse_sexps(tokens)

puts sexps