Git Product home page Git Product logo

cparser's Introduction

cparser - A C99 parser (with gnu extensions)

  1. Introduction

cparser is a recursive descent C99 parser written in C99. It contains lexer, parser, constructs an AST and does semantic analysis. It is currently used as a frontend to the libFirm intermediate representation, but can be used independently. cparser is able to bootstrap itself. It currently uses an external preprocessor.

  1. Building and Installation

Requirements:

  • A C99 compiler (gcc and icc are known to work).
  • pkg-config (recommended)
  • libFirm-1.21 or later

Make sure you have installed libFirm and pkg-config can find the libfirm.pc files ("pkg-config --modversion libfirm" should work). Use (GNU)-make to build cparser.

  1. Troubleshooting

x86_64 Systems: libFirm uses a 32bit x86 backend by default, while it also uses the systems default preprocessor/linker. This results on a x86_64 linker being used for 32bit assembly. If you see assembler errors like "suffix or operand invalid for 'push'", then you probably have this problem. Use the -m32 flag to force usage of system 32bit preprocessor/linker.

  1. Contact

There's a Bugtracker at http://pp.info.uni-karlsruhe.de/~firm/bugs You can contact me at [email protected] You might also visit the #firm channel on irc.freenode.net

cparser's People

Contributors

chmallon avatar fread avatar ftomassetti avatar grimmick avatar lu-zero avatar manuelmohr avatar matzeb avatar qznc avatar shack avatar uniqp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.