Showing posts with label C++. Show all posts
Showing posts with label C++. Show all posts
Monday, September 22, 2014
Thursday, May 29, 2014
And speaking of cool C things
Here's a package that brings Lisp macro syntax to C. Do want! (Run C::Blocks through that!)
Saturday, April 12, 2014
Sunday, March 23, 2014
Thursday, January 10, 2013
Friday, November 23, 2012
Parsing C
So I'm taking another stab at writing a quasi-literate-programming tool, which, as I am writing things in C with it, requires a credible C parser to find declarations of stuff.
And while Perl has lots of C parsing tools of varying quantity, including a sample with Parse::Eyapp (which is quite fascinating in its own right), none of them are easily adapted - with the exception of the Inline tools. Inline::C::ParseRegExp, for example, which does exactly what I want it to - find declarations of stuff.
Python, though, has pycparser. (And of course, Perl has Inline::Python...)
And then, as always, there is Marpa. I still have a big fat to-do on my list that says "Learn Marpa". There's a new set of tutorials on Kegler's blog. I need to work through those.
Update: I realized I was wrong. I don't actually need a parser - just a tokenizer for C. This is because all I need to do is cross-reference all identifiers, and the job is done.
And while Perl has lots of C parsing tools of varying quantity, including a sample with Parse::Eyapp (which is quite fascinating in its own right), none of them are easily adapted - with the exception of the Inline tools. Inline::C::ParseRegExp, for example, which does exactly what I want it to - find declarations of stuff.
Python, though, has pycparser. (And of course, Perl has Inline::Python...)
And then, as always, there is Marpa. I still have a big fat to-do on my list that says "Learn Marpa". There's a new set of tutorials on Kegler's blog. I need to work through those.
Update: I realized I was wrong. I don't actually need a parser - just a tokenizer for C. This is because all I need to do is cross-reference all identifiers, and the job is done.
Saturday, October 20, 2012
Carbon: compiles to C
This is pretty neat: a really thin OO C extension (libco2) that has a higher-level C-like language defined on top of it (Carbon). Carbon supports direct object orientation, exceptions, and some other stuff, and compiles to C.
It compiles to C. Like Decl could compile to Perl. (Or to C, I guess.)
It compiles to C. Like Decl could compile to Perl. (Or to C, I guess.)
Sunday, October 14, 2012
Tuesday, September 4, 2012
Why C is better than C++ for low-level infrastructure
This makes sense, actually. It's a post (in a series of posts) by the author of ZeroMQ.
Wednesday, August 15, 2012
Subscribe to:
Posts (Atom)