$ deno run src/cli.ts -h
Usage: deno run src/cli.ts [options] [<arguments>]
Options:
-h, --help Show this message
-d, --debug Show debug information
-e, --expression Evaluate the given expression
-f, --file Evaluate the expression from the given file
$ deno run src/cli.ts -e '1 2 +'
3
$ deno run src/cli.ts -f examples/addition.rpn
3
$ deno run src/cli.ts -d -e '1 2 +'
1 . 2 +
1 2 . +
3 .....
3
$ deno run src/cli.ts -d -e "12 3 * 4 / 56 7 / 8 / 9 * -"
12 . 3 * 4 / 56 7 / 8 / 9 * -
12 3 . * 4 / 56 7 / 8 / 9 * -
36 ..... 4 / 56 7 / 8 / 9 * -
36 4 ..... / 56 7 / 8 / 9 * -
9 ......... 56 7 / 8 / 9 * -
9 56 ......... 7 / 8 / 9 * -
9 56 7 ......... / 8 / 9 * -
9 8 ............. 8 / 9 * -
9 8 8 ............. / 9 * -
9 1 ................. 9 * -
9 1 9 ................. * -
9 9 ..................... -
0 .........................
0
generated from leviosa42/template-deno-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
A reverse polish notation calculator written in TypeScript.
License
leviosa42/ts-rpn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A reverse polish notation calculator written in TypeScript.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published