PJ Fitzpatrick wrote:
>
> On Tue, Feb 17, 2009 at 4:11 PM, Gerard Flanagan <[email protected] 
> <mailto:[email protected]>> wrote:
>
>
>     Hello all,
>
>     (On the subject of appengine). Here's an alternative appengine admin
>     interface shell:
>
>        http://yarriba.appspot.com/
>
>     The server side is just a minor adaptation of:
>
>       http://shell.appspot.com/
>
>     The javascript widget code is here:
>
>       http://bitbucket.org/djerdo/bebop/
>
>     if anyone would like to help with making it cross-browser?
>     (License is BSD).
>
>     As a reference and possible help, this is an online Ruby console:
>
>         http://tryruby.hobix.com/
>
>     Gerard
>
>
>
>
>
> Would you consider using Antlr. It has a Javascript target that is 
> cross browser. See link below
> http://www.antlr.org/wiki/display/ANTLR3/ANTLR3JavaScriptTarget
> It has the added advantage that if you ever wanted to put the logic on 
> the server side you could just change the target to Python. (but why 
> would you want to do that!)
> Also people check out the testimonials on www.antlr.org 
> <http://www.antlr.org>.
> PJ
>  
>
>
>
>
Hi PJ,

Maybe I'm just clueless, but I don't get it. What would be the grammar 
from which you would create lexer.js, parser.js etc. ? The python 
grammar itself? (I don't know anything about ANTLR).

To give an example of the type of browser issue I was thinking of - in 
the (client) code there is a javascript 'keypress' handler which checks 
to see if, for example, an up arrow has been pressed; the check that I 
have is:

if (keycode == 38)

but this only works, I think, in Firefox and IE - the keycode for the up 
arrow is different in the Safari browser.

Currently, the (python) code that you type in the console is being 
evaluated on the server, but that's a different issue to the javascript 
code that creates the console. At one point the console did in fact 
display in IE7 but didn't scroll as I'd like, and since i've made 
further changes, it doesn't show up at all (though with no 'error on 
page' message).

G.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" 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.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to