Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • Anchor CMS 0.5
  • trueDAT 4.00
  • HTML KickStart 0.91
  • WP Translate 0.6
  • Unobtrusive Google...
  • youRhere v1.4
  • slabText v1
  • Perfect Quotes 0.3.2
  • LLVM 3.0
  • -prefix-free 1.0.4
  • Home > Scripts > Text Management > Text Tools

    lemon2yapp

    Download button


    Downloads: 247  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Micha Niskin | More scripts
    code.google.com
    BSD License - New BSD License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Perl
    November 6th, 2009, 22:44 GMT
    C: \ Text Management \ Text Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    lemon2yapp description

    This script translates grammar files from the Lemon format to a format understood by the Parse::Yapp Perl module

    This Perl script parses a Lemon grammar file on entry (input.y) and prints out an equivalent grammar file suitable for use with the Parse::Yapp Perl parser generator module (output.yp).

    This output can be used with the yapp command line tool to produce a perl parser for the grammar.

    The output is also good for making a skeletal grammar file for use with yacc, as yapp and yacc have pretty much the same grammar file format.

    Limitations:

    · This script makes no attempt to do anything with rule actions---it simply removes them. Same goes for comments in the source file. Also, the śllback directive is not understood by yapp, so it is ignored, as are the %ifdef / %ifndef directives. In fact, the only directives used by this script are the precedence directives (%left, %right, etc.) The best thing to do is to scan the source file and manually extract anything inside an %ifdef / %ifndef block that you don't want, as everything else will be put into the output. Then you can manually define an nonterminal that does what the śllback directive would have done



    TAGS:

    grammar module | translate content | format converter | grammar | translate | file



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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