List:Internals« Previous MessageNext Message »
From:Eric Prud'hommeaux Date:April 8 2006 8:18pm
Subject:parsing SQL expressions
View as plain text  
Looking at sql/sql_yacc.yy , I see that
thd->lex->current_select->expr_list contains a lot of the state while
parsing expressions. I'm trying to emulate this use in sparqlParser.
Can someone explain roughly how this is used? Is it dependent on
thd->lex->current_select->parsing_place ? Does it get put on a stack
when the parser encounters ()s ? Any rough recollections and rules of
thumb would be greatly appreciated.
-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +81.90.6533.3882

(eric@stripped)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Attachment: [application/pgp-signature] Digital signature signature.asc
Thread
parsing SQL expressionsEric Prud'hommeaux8 Apr
  • Re: parsing SQL expressionsSergei Golubchik8 Apr