Newest at the top
2024-09-20 20:33:14 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds) |
2024-09-20 20:32:37 +0200 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-09-20 20:27:58 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-09-20 20:23:15 +0200 | <lxsameer> | mauke: yeah, that makes it much easier |
2024-09-20 20:23:00 +0200 | <lxsameer> | mauke: hmmm cool, thank you. I'll give it a shot |
2024-09-20 20:22:57 +0200 | <mauke> | if the symbol name cleanly converts to a number, it is a number |
2024-09-20 20:22:37 +0200 | <mauke> | yeah, basically |
2024-09-20 20:21:55 +0200 | <lxsameer> | mauke: are you suggesting to parse them as symbol and the run another number parser on the symbol ? |
2024-09-20 20:21:16 +0200 | <lxsameer> | geekosaur: i'm in charge of the lang, so I can change the grammar if I want to |
2024-09-20 20:21:15 +0200 | raehik | (~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) (Ping timeout: 265 seconds) |
2024-09-20 20:20:57 +0200 | <lxsameer> | mauke: technically yes. |
2024-09-20 20:20:41 +0200 | <mauke> | aren't numbers just a type of symbol, syntactically? |
2024-09-20 20:20:36 +0200 | <geekosaur> | because C supports things like 1L, 1ULL, etc. |
2024-09-20 20:20:22 +0200 | <geekosaur> | yes, what language you're parsing matters too. gcc parses character suffixes after numbers and reports errors if the suffix(es) aren't valid ("error: invalid suffix "a" on integer constant") |
2024-09-20 20:19:26 +0200 | <lxsameer> | mauke: yupe |
2024-09-20 20:19:19 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 264 seconds) |
2024-09-20 20:18:35 +0200 | Versatile | (~Versatile@2.219.56.221) |
2024-09-20 20:18:34 +0200 | <mauke> | lxsameer: are you parsing a lisp? |
2024-09-20 20:17:46 +0200 | <lambdabot> | 42 |
2024-09-20 20:17:45 +0200 | <mauke> | > let a = -1 in (+) 43a |
2024-09-20 20:17:26 +0200 | ash3en | (~Thunderbi@2a01:c23:8c85:a600:95cb:522:a5ea:bb0d) |
2024-09-20 20:17:07 +0200 | <geekosaur> | that's usually handled by the grammar: if 'a' isn't valid following the number then you get a parse error |
2024-09-20 20:16:48 +0200 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 246 seconds) |
2024-09-20 20:16:36 +0200 | <lxsameer> | geekosaur: hmm it will, but it uses 'a' as a terminator an returns -43 as a number |
2024-09-20 20:15:44 +0200 | <geekosaur> | most parsers including combinator-based ones use a "maximal munch" rule, so if you parse as a number it should fail at the 'a' |
2024-09-20 20:14:19 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-09-20 20:14:11 +0200 | wootehfoot | (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer) |
2024-09-20 20:14:02 +0200 | <lxsameer> | hey folks, how do you parse a string like '-43a' with megaparse or any parser combinator? -43a is a valid "symbol name" but not a valid number. If parse symbols first that's fine but then I will accidentally parse valid numbers as symbol too |
2024-09-20 20:11:36 +0200 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-09-20 20:09:38 +0200 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds) |
2024-09-20 20:03:09 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds) |
2024-09-20 19:58:32 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-09-20 19:57:53 +0200 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 252 seconds) |
2024-09-20 19:56:38 +0200 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) |
2024-09-20 19:55:19 +0200 | misterfish | (~misterfis@84.53.85.146) (Ping timeout: 264 seconds) |
2024-09-20 19:50:56 +0200 | ubert | (~Thunderbi@77.119.174.223.wireless.dyn.drei.com) (Quit: ubert) |
2024-09-20 19:47:54 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 265 seconds) |
2024-09-20 19:45:29 +0200 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-09-20 19:44:09 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-09-20 19:42:45 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-09-20 19:42:37 +0200 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2024-09-20 19:33:44 +0200 | raehik | (~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) |
2024-09-20 19:32:38 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds) |
2024-09-20 19:29:04 +0200 | youthlic | (~Thunderbi@user/youthlic) |
2024-09-20 19:28:03 +0200 | <lambdabot> | I will remember. |
2024-09-20 19:28:02 +0200 | <sm> | @where+ FDA https://www.manning.com/books/functional-design-and-architecture Functional Design and Architecture, Granin 2024 |
2024-09-20 19:26:57 +0200 | merijn | (~merijn@204-220-045-062.dynamic.caiway.nl) |
2024-09-20 19:26:36 +0200 | youthlic | (~Thunderbi@user/youthlic) (Remote host closed the connection) |
2024-09-20 19:23:47 +0200 | sord937 | (~sord937@gateway/tor-sasl/sord937) (Quit: sord937) |
2024-09-20 19:23:44 +0200 | pavonia | (~user@user/siracusa) (Quit: Bye!) |