Skip to content

consistent irb prompt as the book's expression #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Each directory contains definitions of the classes implemented in that chapter.
For example:

```irb
$ irb -I.
$ irb -I. --simple-prompt
>> require 'universality_is_everywhere'
=> true
>> identity = SKICall.new(SKICall.new(S, K), SKICall.new(K, K))
Expand All @@ -57,7 +57,7 @@ x
If you run `bundle install` to install [Treetop](http://treetop.rubyforge.org/), you can try out the parsers:

```irb
$ bundle exec irb -I.
$ bundle exec irb -I. --simple-prompt
>> require 'treetop'
=> true
>> Treetop.load('the_meaning_of_programs/parser/simple')
Expand All @@ -77,7 +77,7 @@ $ bundle exec irb -I.
```

```irb
$ bundle exec irb -I.
$ bundle exec irb -I. --simple-prompt
>> require 'treetop'
=> true
>> Treetop.load('programming_with_nothing/lambda_calculus/lambda_calculus')
Expand Down
4 changes: 2 additions & 2 deletions programming_with_nothing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Programming with Nothing
This chapter includes an implementation of FizzBuzz written with just procs:

```irb
$ irb -I.
$ irb -I. --simple-prompt
>> require 'programming_with_nothing'
=> true
>> MULTIPLY[THREE][FIVE]
Expand Down Expand Up @@ -43,7 +43,7 @@ Watch [this video](http://rubymanor.org/3/videos/programming_with_nothing/) for
There’s also an implementation of the call-by-value small-step operational semantics of the lambda calculus, along with a parser for Ruby-style lambda calculus expressions:

```irb
$ bundle exec irb -I.
$ bundle exec irb -I. --simple-prompt
>> require 'treetop'
=> true
>> Treetop.load('programming_with_nothing/lambda_calculus/lambda_calculus')
Expand Down
2 changes: 1 addition & 1 deletion the_meaning_of_programs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Meaning of Programs
[This chapter](http://computationbook.com/sample) includes Ruby implementations of the semantics of a toy programming language (“Simple”) written in three contrasting styles: [small-step operational](small_step), [big-step operational](big_step) and [denotational](denotational):

```irb
$ bundle exec irb -I.
$ bundle exec irb -I. --simple-prompt
>> require 'the_meaning_of_programs'
=> true
>> expression = LessThan.new(Add.new(Variable.new(:x), Number.new(1)), Number.new(5))
Expand Down