Skip to content

Instantly share code, notes, and snippets.

@brennancheung
Created November 24, 2015 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennancheung/f9fc20fa62c766d50b0b to your computer and use it in GitHub Desktop.
Save brennancheung/f9fc20fa62c766d50b0b to your computer and use it in GitHub Desktop.
simple-calc sample output
brennan@brennans-Mac-Pro ~/code/rpn * simple-calc $ cat testInput.txt | coffee rpn.coffee
> 5
5
> 8
8
> +
13
> -3
-3
> -2
-2
> *
6
> 5
5
> +
11
> 2
2
> 9
9
> 3
3
> +
12
> *
24
> 20
20
> 13
13
> -
7
> 7
7
> 2
2
> /
3.5
>
exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment