Chervil is a toy Lisp interpreter written in Ruby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213 |
- module Chervil
- RSpec.describe Parser do
- def parse(source)
- lexer = Lexer.new(source)
- parser = Parser.new(lexer)
- parser.parse
- end
-
- it 'parses a number' do
- expect(parse("1").first).to eq(AST::Number.new(1.0))
- end
- end
- end
|