|
Parsing it is a lot easier than it seems. The thing about a regular language is it's very ... regular. The code is predictable to write, which makes things much smoother.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
|
I find their railway diagram to be much harder to follow than my state diagram.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Ha! That's proof positive that you didn't play enough with model trains when you were little.
Mircea
|
|
|
|
|
I hate regexp.
Mostly because I only have a need for it once every decade and I forget about it.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I like your Visual FA project.
You don't want to allow -0.xxx ?
|
|
|
|
|
That regex is in error, and I've since updated it, but not the post.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I only hate it because I can't understand it. I have yet to find the tutorial that explains it in a way I can understand it.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
I think I would have probably created the state machine from scratch instead of trying to describe the valid input with that regex!
FormerBIOSGuy
|
|
|
|
|
It's nothing to do with love or hate. I recognise regular expressions' utility, but simply don't use (or need) them often enough to be comfortable with them.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
You wouldn't be one of the haters I was referring to then.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
(not read all replies so it might been discussed already)
How about being able to parse leading zero's?
They do not occur often, but these are valid ascii representations of numbers.
E.g. -000123.456 or 0000042 may not be efficient but very well parsable.
Supporting leading zeros would add two edges to your dfa.
|
|
|
|
|
Not valid JSON, IIRC.
Though my regex has since been updated. The one in the original post was not compliant.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
|
I see in my mailbox the last weekly news letter is from January 2024.
Is this now abandoned?
|
|
|
|
|
|
For those who enjoyed playing The hunter: call of the wild or for people who like such laid back games, the fishing version of the game is available for free on epic until tomorrow.
|
|
|
|
|
Can you drink?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
As a fisherman for 50+ years, in some strange way this makes me sad.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Hi All,
Back in the day there was a film Short Circuit with a Robot (called Johnny 5) who I think came out with the phrase "No Disassemble!" For the current project I am working on a gif of that scene (if I remember it right) would be suitable for my main project at the moment.
Glenn
|
|
|
|
|
"Hey, laser lips! Your mama was a snow blower."
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Let it be on Disney or Sky cause I need to rewatch it!
|
|
|
|
|
I can only find it on Prime at the moment.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I dumped Sky at the start of the year and went to EE: moved my broadband, landline, and TV provider all together and it worked out about 50% of the same price from Sky. I still get some Sky channels via Now included and best of all it's totally streamed instead of satellite - which means weather / trees don't affect it in the least.
Most of the TV content is still repeats of repeats of repeated garbage, but ... it's cheaper repeats of repeats of repeated garbage!
Oh, and thanks to the new router all my landline calls are now VOIP instead of analog ready for the PSTN switch off at the end of this year.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|