In search of an easy parser generator [closed] - parsing

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need a simple parser generator. The language does not matter. It only has to be easy and well documented.

Have you looked at ANTLR?

I found SableCC for Java pretty easy to use, back in the days of my compiler construction classes. A tutorial is here.
Edit: Those days were a few years back. Looking at the other answers, you might be better off with ANTLR. I'll let the votes decide!

You're definitely going to want to take a look at ANTLR. It's not only well-documented but is considered one of the de-facto utilities for language designers.

If you want to work in Visual Studio and possibly use C#, look at MPPG from Microsoft, part of the Managed Language Services SDK.
http://msdn.microsoft.com/en-us/library/bb165963(VS.80).aspx

I'm fond of bison, also known as yacc. It's not terribly hard, but it requires knowing C.
If you are more a Perl person, Parse::RecDescent is not difficult either.

Related

Custom theory with z3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am trying to build a string theory solver and one of the ideas that came up was to write the code inside the z3 prover but that requires understanding the whole z3 code, I am wondering if there is a tutorial on how to do that? I have checked thoroughly but I don't seem to find anything.
You can't really integrate a custom theory with z3 without getting more or less intimately familiar with the internals, and unfortunately this process isn't all that well documented. This is hardly surprising: Z3 is a big and a research(-y) project and there are many moving parts.
Having said that, see the stack-overflow question on prior advice from Nikolaj, who is the main author of z3: SMT solver with custom theories?
This resource is a nice write-up about how to understand theory solvers are architected: http://theory.stanford.edu/~nikolaj/z3navigate.html
No matter which path you go, you'll have a lot of questions. The best place to ask them would be the "discussions" forum of the z3 GitHub site: https://github.com/Z3Prover/z3/discussions
Best of luck!

Does Ruby have a gem for analyzing sentences? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
What I want is to be able to parse a sentence and classify the words in it as a noun,verb,adjective...etc
I'm aware of Ruby Wordnet and a few other similar projects, but I want something that's a lot simpler to use. Also, I'm open to any suggestions on how I could accomplish this without even requiring a gem.
I recently used engtagger to accomplish what you're describing. It's a pure Ruby gem, so it has no dependencies, but it is pretty old and has some quirks. Still, it was fast enough and accurate enough for my purposes.
As for doing part-of-speech tagging without a gem... it turns out that it's more complicated than you might think. You could implement a Brill tagging algorithm on your own, but that's probably not the best use of your time.

Ruby: looking for ruby-embeddable interpreter or scripting language [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
In response to a previous question, #Pablo Fernandez suggested I implement a simple interpreter using Treetop to embed in my RoR application. It looks like a good approach.
But I can't help but wonder: hasn't anyone written a toy interpreter to embed in a Ruby app? I don't need any I/O functions -- in fact, I specifically don't want any I/O functions. (If you're wondering why I want an interpreter inside of Ruby, please refer to the original post!)
Thanks.
FWIW, I ended up tweaking a version of stickup to use as a embeddable interpreter. The process was fast and easy and serves my needs well. (And besides, I used to work for a Common Lisp company, so it was an excuse to re-live the joys of s-expressions.)

Snippets for productivity - collect good code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I was wondering whether there're recommendable sites, that host collections of good and useful code-snippets.
Searching stackoverflow, to be honest, sometimes is priceless.
- But if you know sites like commandlinefu (just for Shell stuff), you may also want something like that for Ruby, Java, Python or C#. There're some small collections, of course. Very often these are specific sites dedicated to be just funny or "wicked cool" (the book series).
I'm just looking for practical stuff to learn from other people's experiences. The standard stuff. Not funny, not wicked. Just pragmatic and workflow-oriented. It seems no one wants to share that.
If you're simply googeling the web and put everything into a growing list of files, there's no overview. So that's not the workflow either, isn't it?
Not really snippets. But quite useful, http://github.com
With many languages, there is http://snippets.dzone.com/
Still with many languages, there is http://codesnippets.joyent.com/
For Django, there is http://www.djangosnippets.org/
After, there's a lot of blogs all other the web giving advices and snippets.
Some others:
Snipplr
RefactorMyCode
Codeproject and codeguru have lots of code snippets which are useful

What are some good resources for getting started with COBOL programming? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm thinking about learning COBOL. Where should I start?
I started with this excellent tutorial.
There is an open-source COBOL compiler called OpenCOBOL which you could use to work through the exercises.
And a COBOL Portal.
I did Cobol during the Y2K time, Cobol was the easy part, the nightmare was JCL or Job Control Language to run your Cobol programs, what a disaster!
I really, really would like to know why you even are thinking of learning Cobol
Please refer to the book "Structured COBOL Programming, Second Edition" by Shelly Cashman Foremam. I studied this book and it is really helpful.
IBM i5/OS Information Center link:
http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzahg/rzahgcobol.htm
I know very little about this language so I can't tell you how much of the language information is IBM-specific.
There are also:
http://www.amazon.com/Sams-Teach-Yourself-COBOL-Hours/dp/0672314533/ref=sr_1_1?ie=UTF8&s=books&qid=1234194482&sr=8-1 which says it comes with the free fujitsu compiler that is not available for download anymore as far as I know
and
http://www.amazon.com/Sams-Teach-Yourself-COBOL-Days/dp/0672317885/ref=sr_1_4?ie=UTF8&s=books&qid=1234194482&sr=8-4
Also, the Murach books are supposed to be very good.
Check out the easy COBOL Tutorial and few COBOL sample programs

Resources