Emma Tebibyte emma
emma commented on pull request bonsai/harakit#36 2024-02-02 20:17:36 -07:00
rpn(1)

I don’t think that’s how it works in Rust—also, if I recall correctly, as far as I’ve seen in other people’s code, the error variant is usually last, so I feel there is some convention…

emma pushed to rpn at bonsai/harakit 2024-02-02 20:12:49 -07:00
a30152d783 rpn.1: made more precise
emma pushed to rpn at bonsai/harakit 2024-02-02 19:17:31 -07:00
4993c53080 rpn(1): re-fixed arg parsing
emma pushed to rpn at bonsai/harakit 2024-02-02 19:14:52 -07:00
6f98fdd1d4 rpn(1): fixed expressions on one line
emma pushed to rpn at bonsai/harakit 2024-02-02 15:37:30 -07:00
fb2a164507 rpn(1): rewrote parser for the second time
emma commented on pull request bonsai/harakit#36 2024-02-02 14:24:27 -07:00
rpn(1)

With further testing, I’ve realized the eval() function needs to be rewritten practically from scratch to prevent edge cases in the parsing.

emma commented on pull request bonsai/harakit#36 2024-02-02 14:20:56 -07:00
rpn(1)

They aren’t necessarily newline-delimited.

emma commented on pull request bonsai/harakit#36 2024-02-02 14:18:01 -07:00
rpn(1)

What does it mean for an enum to be zero?

emma pushed to rpn at bonsai/harakit 2024-02-02 14:17:24 -07:00
4cb5e8e2b0 rpn(1): better error handling
885f167afc rpn(1): changes to error message
Compare 2 commits »
emma pushed to rpn at bonsai/harakit 2024-02-01 23:36:18 -07:00
258881dbb2 rpn(1): minor change
emma pushed to rpn at bonsai/harakit 2024-02-01 23:34:53 -07:00
b35f87bd27 rpn(1): code cleanup
emma pushed to rpn at bonsai/harakit 2024-02-01 23:33:26 -07:00
e7ee75b03f rpn(1): added From trait to CalcType
emma commented on pull request bonsai/harakit#39 2024-02-01 23:05:21 -07:00
Change man page sections to POSIX [n]p sections where applicable

The copyright on the man pages should be only for the years contributed to, so for true.1, for example: 2022, 2024

emma commented on issue bonsai/harakit#34 2024-02-01 23:04:01 -07:00
Name
  • bark (the part of the tree you can touch)
  • fruit (what you get from the tree)
  • bon
  • broots (bonsai's roots)
  • sticks

Preferably it should be something that tells users what…

emma commented on issue bonsai/harakit#34 2024-02-01 19:19:56 -07:00
Name

If you can bring me a good name that isn’t bonutils then I will consider it.

emma opened issue bonsai/harakit#38 2024-02-01 19:11:30 -07:00
diff(1p) analogue
emma pushed to rpn at bonsai/harakit 2024-02-01 13:07:23 -07:00
0d97f81f49 rpn(1): unicode subtraction, multiplication, division & code cleanup
emma commented on issue bonsai/harakit#21 2024-02-01 12:39:24 -07:00
rpn(1) - reverse polish notation
  • ^, `
emma pushed to rpn at bonsai/harakit 2024-02-01 12:38:46 -07:00
b68f13acdc rpn(1): added floor division
emma commented on issue bonsai/harakit#21 2024-02-01 11:54:24 -07:00
rpn(1) - reverse polish notation

When writing npc 1 2 * the shell automatically takes the asterisk as a wildard and it must be quoted. Should we do anything about this (i.e. have x be the multiplication operator when parsing…