suprety wrote:
> I want to upload my parser to google app engine. The google app engine
> states that writing to a file system is not support. In my
> understanding, ply will generate the some file and based on that file,
> it is able to parse the document. Is it possible to use pre-generated
> rules while hosting in google app engine.

Response seems minimal :)

One solution may be to stop PLY from writing the tables.
Each time you create a parser/scanner object, the rules will be read, and 
parse tables will be computed.

I do the following for that case:

     lexer = lex.lex(debug=0, optimize=1, lextab=None)
     parser = yacc.yacc(start='start', debug=0, optimize=1, write_tables=0)


Sincerely,
Albert

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to