Search Result

Collapse
3 results in 0.0024 seconds.
Keywords
Members
Tags
yacc
  •  

  • Kiritler
    started a topic lexx/yacc incorrect analyzing?
    in C

    lexx/yacc incorrect analyzing?

    My program translates regular lexical expressions in DNF.
    Faced with the problem of incorrect reading of the input string
    The symbol "!" it recognize as a "(" and "*" causes segmentation fault

    I have no idea why it happens, I can't find any error in my code

    Thank you very much!
    To start write in the terminal:
    make
    ./DNF <test.txt...
    See more | Go to post

  • rajmitra
    started a topic How do I access data lists created by yyparse ??
    in C

    How do I access data lists created by yyparse ??

    Hello all,
    In my foo.y description I call yyparse() in main.
    ----------------------------------------
    int main(int argc, char **argv)
    {

    ...
    yyparse();
    ...

    /*Do something with a link list created by yyparse(); */
    /* Then free the list*/

    }
    --------------------------------------------

    As the comments in main show -
    How do I manipulate...
    See more | Go to post

  • parsing problem with lex/yacc - yylval returns unintended value for $1

    Hi Folks,
    I am writing a simple parser to parse SPICE code ( Spice is a transistor level simulator ). The spice code looks like this -
    =============== =========
    R10 2 3 0.5e-3
    C11 4 6 0.2e-6
    L13 4 4 0.1e-9
    =============== ==========
    As you can see each line has 4 items -
    a character string followed by an integer then another integer and finally a floating point number.
    I need to return...
    See more | Go to post
    Last edited by rajatkmitra; Jun 2 '10, 06:54 PM. Reason: Add attachment
Working...