KaSCPar

SC2AST is currently being reviewed

please place your comments on the SC2AST review page

What is KaSCPar

KaSCPar stands for Karlsruhe SystemC Parser Suite. It is a SystemC parser supporting the latest language version with dedicated tokens for SystemC 2.1 keywords. The suite consists of two components for generating either the AST or an elaborated description of the SystemC design, both in XML format for easy usage.

Features

  • supports C++ and SystemC 2.1
  • based on C++ grammar with dedicated tokens for SystemC keywords
  • uses GNU gcc preprocessor
  • supports parsing of multiple sources files
  • created by JavaCC & JJTree
  • generates two output files: the AST and the elaborated SystemC design in XML format

Description

The Karlsruhe SystemC Parser contains two phases. The first phase generates the AST and the second phase constructs the elaborated description of the SystemC design. The tool SC2AST generates only the AST and the tool SC2XML generates both the AST and the elaborated description of the SystemC design. For more information (e.g. SC2XML), please go to the KaSCPar homepage KaSCPar homepage.

SC2AST

The generated AST file contains a token for each C/C++ and SystemC 2.1 language element. Furthermore, the AST file contains some meta information like column number, line number and file name as a reference to the original SystemC file and are saved as attributes of each AST token. The comments of source files are also saved as special token comment in the AST. The parser uses the pre-processor from GNU gcc just to expand user defined macros of the SystemC design.

Examples

This is the place where you can have a look at KaSCPar in action (source code and AST representation in XML format are provided)

Documentation

Grammar

You may want to take a look at the grammar (in BNF format) used for parsing SystemC files.

License

SC2AST is licensed under the GNU Public License (GPL) Version 2.

Download

Bugs and problems

Please report any problems or bugs concerning KaSCPar at MailTo(KaSCPar I DONT WANT @ ANY fzi SPAM DOT de).


Documentation:

  • SC2AST Review Page

    Comments in this colour have been added by Darran Gaskell

    Please add comments about SC2AST on this page.

license: 
No Releases
Mail List: 
This group has an email list, all issues will be sent to all members of the group