|
I'm familiar with PEG. Some of it is quite nice, but my main issue with it is it's far too easy to introduce ambiguities into the grammar, which makes it fine for parsing say, JSON or even xml or something, but maybe not javascript or something else where there's a lot of unseen ambiguity that must be accounted for (trailing else on a nested if being one example)
PEG doesn't really have grammar conflicts. For really complicated grammars, you want conflict detection.
I've considered implementing one, as it would be if nothing else, in the interest of completeness. It doesn't use the CFG model like the main major parsing algos do, so it would take some doing. I don't have good material to show me how they work (the memoization techniques they use for example)
I could make one now, but it wouldn't be efficient without that stuff.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
i don't even know where to post this as I don't know where to begin.
i have a profound need to translate a finite state machine into a regular expression.
the methods presented to me, of which I am aware of 3, are all presented using math formalisms that are as of yet beyond me.
i've *almost* implemented a variation of the state removal method but I got caught on the loops.
if anyone has any idea what I'm talking about and knows C# or C or C++ reply and i can shoot you my email addy or something.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
You can rent my brain, but not borrow it, when you are sober
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
do you know the magic of FA to regular expression conversion? I could probably buy you beer for the lesson or something. =)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
codewitch honey crisis wrote: do you know the magic of FA to regular expression conversion? Sorry, I don't have the drugs for that, now
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
I have tutorials
Ing. Petr Zemek - Projekty[^]
like that one, but i don't understand them.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
there are few things more frustrating than knowing a problem is solvable, having several "tutorials" to solve it and still being not much closer than when you started.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Never done that myself - but this repo might be of use - a Java class that does just what you want?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You sir, just made my effing day. I've been at this problem on and off for years.
i don't know i didn't find that. a single tool that does exactly what i need to understand and no more.
PERFECTION
you are my hero for today.
edit: eck, zero comments in this thing, and uses some java class libraries i'm not familiar with but it's closer to the mark than anything i've come across so far. Between this, and what i understand of the state removal algorithm, i should be able to put something together with it. THANK YOU
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
modified 29-Jul-19 16:56pm.
|
|
|
|
|
Many years ago, I enjoyed coding our work-based application with VB5 connecting to an Access database. I've been retired for 10 years, and would now like to do something similar. But I'm now using an Apple Mac, so VB and Access is out, unless I go down the route of Parallels, which will be expensive.
I have looked at Python, but it appears to be used for creating rather simplistic text-based apps. What I would like to be able to do is what I did with VB, for example connect to a database, draw a form, and drop onto it text boxes, buttons, drop-down lists, etc. I don't see anywhere where Python lets me do this. If it does, how?
I also loved the coding associated with VB5, which seemed much more intuitive than languages such as C etc. Any advice gratefully received.
|
|
|
|
|
|
My experience has been (and you'll have to forgive me, folks, because i'm sure it's limited) that rapid application development with all the wysiwyg form editing and such is the primary domain of windows.
I think apple had like, CodeWarrior that may have had some RAD stuff in it but all the open source offerings I've seen are junk.
Visual Studio (which includes VB.net) was and still is the best RAD IDE on the market, just like it was when you left the fold.
I'm pretty disappointed actually. You may want to ditch VB and just move to C#. You can write .NET apps that run anywhere these days - linux, android, wherever but VB is the red headed stepchild of the .NET language family.
all of this is my $0.02.
I'm out of the field like you, but still code a lot.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I think you missed the OP ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I most certainly did. I responded prior to proper caffeination and fully upright state. Apparently my humor hadn't engaged yet. =)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I know the feeling well!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
those poor folks over at Image-Line, still coding in Delphi.
They make a great product though. I wonder how they manage?
their stuff runs on a mac - well some of it does. not sure if they're using ex-borland stuff for any of that though.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Windows laptops can be cad for 1/2 a song.
|
|
|
|
|
Ron Anders wrote: Windows laptops can be cad for 1/2 a song. But, can they be cam for another half ?
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
Yes. I posted after waking and and took off. - just got back. <facepalm>
|
|
|
|
|
I think ... coming from VB ... if you use Visual Studio, and C#, to create WinForm Apps, you'll feel somewhat at home. And, some of the WinForm Controls will feel very familiar ... because they are, under-the-hood, old COM Controls.
Why not do WinForms using VB.NET ? I considered it, but it it looked like a giant mess to me, compared to the mean-lean beauty of C#
But, check out Apple's latest dev offerings ... I am long out of touch with their tools.
You wanna get multi-platform ? Consider web-apps, Xamarin in Net, etc.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
modified 27-Jul-19 16:04pm.
|
|
|
|
|
Watching my hubby try to shop is like him watching me trying to change the oil.
Maybe he's defective. I wonder if he's still under warranty?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Good comparison!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
do you come in 32-bit?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|