AST with selectors [closed] - search

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for languages / libraries which allows searching over AST for given language using selectors (ie. "/function(int, int)" to find all functions with given signature or "namespace(name=xxx)/method(name=yyy*)" to find all methods starting with yyy in given namespace).
I know there is always possibility to convert AST to XML and use XPath / XQuery, but i'am looking for something built in or easily integrable with a language.

This is practical :https://live.gnome.org/GObjectIntrospection/
as well as the gcc plugin dehydra : https://developer.mozilla.org/en-US/docs/Dehydra
LLVM has a bunch of projects : http://llvm.org/ProjectsWithLLVM/
This is theoretical: http://www.complang.org/colm/ but could be interesting.
See also this thread, on the topic of using the OWL/Semantic web for querying:
http://lists.w3.org/Archives/Public/semantic-web/2012Aug/0077.html

http://cs.nyu.edu/~lharris/content/programquerylangs.html
My focus when I was playing with things like this originally was specifically Java-oriented, also using the Eclipse AST tools. This isn't language-agnostic, and most of the tools I'm aware of aren't either.
It does, however, include some links to projects (I've only played with two of them, and not for quite some time) that may give you ideas, although it's not clear to me what kind of information you want from an answer. ASTs themselves are tied tightly to implementations.

Related

Setting up emacs for haskell [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Which emacs extensions do you use and how do you configure it to work productively?
P.S. I use haskell mode with additions of ghc-mod. I like it, but it doesn't support navigation to a symbol and completion doesn't look IDE-like but it's stil usable.
Enable haskell support in auto-complete package - it will complete pragmas, function names, etc. haskell-mode also includes support for hlint & haskell scan - to check source code for "bad" code, etc.
There was work on Haskell support in CEDET, but it wasn't finished :-( Implementing of such support in CEDET will allow to get symbol navigation & code completion "automatically" as CEDET implements this out-of-box...
There is some information at the haskell wiki.

could anyone suggest cross source code reference tool? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I've tried to use opengrok, lxr, cxref. no one didn't work properly or unobvious in installation and configuration. Does anyone know some easy to use tool for C/C++? And it's better if the tools knows a lot of languages.
Have you tried basic ctags?
CTags sourceforge page
OpenGrok uses ctags and requires it to be installed properly as a precondition, so it is certainly easier to install. It supports 41 different programming languages and is extremely easy to use. It's a very popular and widely used tool as it's interface is simple commandline. It integrates with vi, emacs, and similar tools.
Otherwise, you may have better luck finding answers if you post specific questions on issues you encounter while installing or using specific packages.
Another option is cscope.

Which programming languages require an IDE? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I was reading through an answer to a question about an IDE for Go that triggered this question.
I was trying to think of a language that 'required' an IDE, but could not come up with one.
Many of the "graphical languages" more or less require an IDE. They aren't particularly popular at the moment, but the general idea is a "language" where you create programs by drawing some sort of diagram. Depending on the intended market, you frequently see something with a flavor or UML or ERD or even flowcharting, depending on the intended market, age of the tool, and level of obfuscation versatility and ease of use the inventor/vendor desires.
While most of these allow you to store the data in some sort of more or less textual format, they consider the diagram (of whatever sort) to be the language, and anything else is only a way of storing/recreating the diagram.
Some types of 4G Languages would probably come up as requiring an IDE (being an IDE themselves).
All Smalltalks I know of except for GNU Smalltalk are very deeply integrated with their development environments.

Looking for C# generics/delegate katas [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Any recommendations for katas covering generics and delegates in C#?
Most of the member on my team can code generics and delegates, but always require a quick look at the documentation or an example to jump start our brains on them. So I thought that for our daily kata we would cover these aspects for a couple of weeks until we can read and write them by instinct.
This would make it easier for us to use these tools in our coding retreats for design patterns.
Thanks in advance for any recommendations...
You may think this terribly vain of me to suggest, but how about doing the same sort of exercise as I've been engaging in for the last month or so? Namely reimplementing LINQ to Objects. My posts aren't in kata form, but you might find them useful to suggest an ordering, and they could give you hints if you get stuck.
LINQ to Objects is all about delegates and is based on generic sequences (with plenty of generic methods involved) so between the tests and the implementation you'll get a lot of practice in - and get to know LINQ better at the same time!
If you're only doing it for a specific exercise you could always ignore some of the trickier operators (like OrderBy etc).

Any decent scheme implementation that has *no* threading libs? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am considering which scheme to use.
I would like to use a scheme that has or can be compiled to have no threading support. I have to avoid the layers that threading libs provide. I want an implementation that has no code for interpreter locks, etc. Something that can compile to C is ideal. This will be Unix only. Chicken and Gambit are my first choice with TinyScheme as an alternative strategy.
I want to use this scheme as the replacement for a ruby app that I have now. This is why it has to be a decent scheme, it has to have rich support for strings, hashes, regex, dictionaries, etc.
Any such beast out there?
You might try Chibi Scheme or Larceny. I don't think that either of them have threading. Chibi runs on a VM, Larceny compiles to native code. I expect that Larceny's support for various libraries will be better.

Resources