Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    GCC::TranslationUnit 1.00

    Download button

    No screenshots available
    Downloads: 585  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ashley Winters | More programs
    Perl Artistic License / FREE
    May 29th, 2007, 22:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    GCC::TranslationUnit description

    GCC::TranslationUnit is a Perl module that can parse the output of gcc -fdump-translation-unit.

    GCC::TranslationUnit is a Perl module that can parse the output of gcc -fdump-translation-unit.

    SYNPOSIS

    use GCC::TranslationUnit;

    # echo '#include ' > stdio.c
    # gcc -fdump-translation-unit -c stdio.c
    $node = GCC::TranslationUnit::Parser->parsefile('stdio.c.tu')->root;

    # list every function/variable name
    while($node) {
    if($node->isa('GCC::Node::function_decl') or
    $node->isa('GCC::Node::var_decl')) {
    printf "%s declared in %sn",
    $node->name->identifier, $node->source;
    }
    } continue {
    $node = $node->chain;
    }

    ABSTRACT

    Provides a module for reading in the -fdump-translation-unit file from GCC and access methods for the data available from within GCC.

    Once you read in the file using the Parser, you can traverse the entire structure of the parse tree using methods defined in the GCC::Node::* modules. Look there for information. Each node is blessed into a GCC::Node::* class with that name.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    parse gcc output | gcc -fdump-translation-unit | translation unit | GCC::TranslationUnit | parse | gcc

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM