Home > Archive > Compilers > September 2007 > C99 parser ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| borophyll@gmail.com 2007-09-25, 7:18 pm |
| Can anyone point me to open-source software that performs the front-
end parsing and analysis of C source? I am not interested in a full
compiler, just something which checks syntax and semantics. I am
intending to use it to examine what's involved in creating a parser,
and to learn the syntax and semantics of the C99 standard. While I
have the standard and am currently reading it, I would like some sort
of software to look at to ensure I don't miss anything, if that makes
sense...
Regards,
B.
| |
| Uncle Noah 2007-09-25, 7:18 pm |
| On Sep 25, 4:39 pm, boroph...@gmail.com wrote:
> Can anyone point me to open-source software that performs the front-
> end parsing and analysis of C source? I am not interested in a full
> compiler, just something which checks syntax and semantics. I am
> intending to use it to examine what's involved in creating a parser,
> and to learn the syntax and semantics of the C99 standard. While I
> have the standard and am currently reading it, I would like some sort
> of software to look at to ensure I don't miss anything, if that makes
> sense...
>
> Regards,
> B.
Sparse (semantic parser) is a project for a C/C++ parser that might be
close to your needs.
Anyone being aware of any other free/open-source C parser (C89 or C99)
that performs semantic analysis (decomposing to intermediate code,
liveness analysis, basic block extraction etc). I'm aware of cil, but
i'm reluctant in using since it is written in OCaml and not C, C++ or
anything that i could easily maintain (my own changes to the
infrastructure).
Nikolaos Kavvadias
| |
| Nicola Musatti 2007-09-26, 7:14 pm |
| On Sep 25, 3:39 pm, boroph...@gmail.com wrote:
> Can anyone point me to open-source software that performs the front-
> end parsing and analysis of C source?
Clang might be an option: http://clang.llvm.org/
Cheers,
Nicola Musatti
|
|
|
|
|