Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have looked at the following software tools:
Ragel
ANTLR
BNF Converter
Boost::Spirit
Coco/R
YACC
ANTLR seems the most straight-forward, however its documentation is lacking.
Ragel looks possible, too, but I do not see an easy way to convert BNF into its syntax.
What other tools are available that can take BNF input and generate a corresponding, Unicode-friendly, cross-platform, standalone, C++ parser?
Many thanks for all suggestions.
Edit: Changed Objective-C requirement to C++.
Try boost.spirit 2.
The boost spirit user list is very active and answers are quick from the authors.
TDParseKit! (Most specifically, this page on Objective-C parser generation with BNF grammars)
Have you looked at QLALR? It is a creative Friday project from QtDF. I have not tried it personally, but the trolls seems to be pragmatic about their approach to problems, so I guess this is too.
You can try GOLD Parser! It's a great tool for parsing and generating. With a simple UI, all what you need to do is to provide a valid grammar file and select your favored programming languages for your output code.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have some experience in C/C++ but I am new to Ruby. So today I got a task from my teacher to use some other languages to create a shared library (in my case, .so) that I will use in my C++ program. I wanted to try Ruby for a long time, but now when I compiled, installed and played with it a bit, I have no idea what's next.
I googled alot, but all I can find (SWIG, Rice) is related to using C/C++ in Ruby, not Ruby in C/C++. Is it possible? Am I wrong with SWIG and Rice and I actually CAN use them vice-versa (ruby for c, c for ruby)? If it is so, can you please attach any guides about that?
Ruby is an interpreted language, and I've never seen it compiled. What I know is that you can drop into C/C++ from within ruby. It's unclear what you're trying to accomplish. You might be looking for something that doesn't exist or make sense?
In Ruby, libraries are called gems, which are a collection of classes modules and other related files.
If you're looking for information about similarities between ruby and C/C++ this might be a good starting place. https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/
Other than that, please do some more research and refine your question.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I searched for a question about regexp testing/learning tools, but people usually suggest Windows based solution. I found one for ubuntu: redit.
However, I'm wondering if there are better tools for the job. So, without further ado
Q: What is the best tool for testing/leadning regular expressions
for linux/ubuntu?
Sorry if this is a superuser kind of question.
Thx
I rather like Kodos, which is a cross-platform GUI regex tester.
But there are many others. Have a look at the answers to How do you debug a regex? , there are many cross-platform solutions listed.
Why don't use web-base tools: http://regexpal.com/ and more here
My favorite http://gskinner.com/RegExr/ Adobe Air app. Worth a try
For simple regex I use the replace function in Sublime Text 2.
Best "tool" for learning regex?
Easy: Mastering Regular Expressions (3rd Edition)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there an equivalent of JSLint for ColdFusion?
I've not encountered anything particularly lint-like for CF, but there are assorted syntax checkers:
CodeCop (riaforge)
VarScoper (riaforge)
QueryParam Scanner (riaforge)
There are no online validators that I am aware of for ColdFusion. You can download the free open source Eclipse (1.4) and install the free CFEclipse Plug-In for ColdFusion which includes a dictionary reference for ColdFusion as well as a syntax error checker. Very handy for checking for errors as you write your CFML.
You can download Eclipse at www.eclipse.org and the CFEclipse plug-in at cfeclipse.org.
Although woefully inadequate for what you want, the Code Compatibility Analyzer that comes with Coldfusion can do some basic checking.
It is primailary focused on upgrading from earlier versions so you won't get a lot of a WHOLE lot out of it.
It will not perform any scoping checks, which I believe Coldfusion Really needs.
Not exactly what you're looking for, but IntelliJ IDEA has a CFML plugin, and it highlights various kinds of (things it thinks are) errors. In my experience, it shows some false positives, mostly references it can't resolve, but it also does flag many real errors; often saves some test-fail-fix cycles. (It's also an awesome IDE in general IMO.)
The ColdFusion builder product that Adobe put out has pretty good error trapping. Standard red x on the line number where you have an error with a brief description as to why your code is currently broken.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there a regular expression tutorial that doesn't use a designer?
I learned the basics of RegEx with this tutorial
It talks about what happens behind the scenes and doesn't depend on a certain platform.
This is a great and quick getting started guide:
The absolute bare minimum every programmer should know about regular expressions
Check out Expresso I have used it in the past to build my RegEx. It is good to help learning too. Not really a tutorial but you can test out regex's with it.
RegEx Buddy, while also not a tutorial in itself, has been one of the best tools for me. The on the fly highlighting helps.
RegexBuddy is also nice, if I may add. There is a variety of similr tools available. A simple google search "regex tool" reveals most of them.
As far as for the tutorial, I can recommend the book "Mastering Regular Expressions" (I read the first, there is probably a newer edition by now)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit.
More the Formatting preserved the better -- but actually I am planning to use Bold and Italics only.
In perl I would use RTF::Tokenizer.
It would be nice if the module had some sort of interface for writing also, but I am able to brute force that with a template and some regular expressions.
I helped writing the RTF import export filter in KOffice. You can have a look at the code at https://cgit.kde.org/koffice.git/tree/filters/kword/rtf. The code is modular and it depends only on Qt.
A quick SourceForge search suggests librtf. It hasn't been developed in a while, but is listed as stable and is under the LGPL. I don't know whether it will support what you need, but I always suggest searching SourceForge for libraries.
You can ask the #koffice guys on irc.freenode.org over irc. Their program kword is able to open RTF files, and is indeed also written in Qt. I'm sure they would be glad to tell you about how they do it.