1. Py and Long Filenames

So what's Ox and Py? (No, I'm not asking for a binary operation here...) smile

Also, does anybody know how to take a filepath in short form and convert it
real quicklike to its long filename version?

Thanks!!
ck

> > Since Py is written in Ox, how much is Ox changed
> > to implement a feature in Py?
>
> Ox turns out to be a lot slicker than I thought it would be, especially
once
> I coded it to detect grammar ambiguities. I never would have been able to
> throw Py together so quickly without it.



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

new topic     » topic index » view message » categorize

2. Re: Py and Long Filenames

ck lester wrote:

> So what's Ox and Py?

[Ox: A Parser Generator]

Ox is my parser generator for Euphoria, based loosely on YACC (Yet Another
Compiler Compiler). It's limited to LL(1) grammars, which basically means
that your grammar can't be ambigious. It lets you write parsers in Euphoria
fairly painlessly. Want to write your own version of QBasic? Ox is the tool
for you.

Robert decided not to post Ox on the Euphoria site because it contained Py
(see below). Since then, I've made some fixes and updates to it. I'll try to
have an version with updated documentation ready in a couple of days,
without Py. You can get the old version at:

   http://www.lanset.com/dcuny/download/ox.zip


[Py: A Python-Inspired Programming Language]

Py is a programming language that I've written using Ox. It's similar to
Euphoria, except where it's not. blink

You can think of Py as a testing ground for just about anything you've seen
on my Euphoria wish list. It also borrows a lot of cool features from Python
(http://www.python.org). It's sufficiently different enough from Euphoria
that it won't run Euphoria programs, but similar enough that you should
quickly get the hang of it.

The latest release includes associative lists, and syntax coloring in
interactive mode. The next release should have OOP as well. You can get Py
from:

   http://www.lanset.com/dcuny/py.htm

At some point, I'll come up with a new name for it that's not derivitive of
either Euphoria or Python.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Py and Long Filenames

> > So what's Ox and Py?
>
> [Ox: A Parser Generator]

What's a parser generator?

> It's limited to LL(1) grammars...

Thank God for that! I think.

> your grammar can't be ambigious.

Oh.

> It lets you write parsers in Euphoria
> fairly painlessly.

So, like a text parser? Okay, I see now. You could use this for, say,
Infocom's "Zork," to parse user input?

> ...associative lists...

And what the heck are these things? Maybe explaining what they're good for
is sufficient.

> At some point, I'll come up with a new
> name for it that's not derivitive of
> either Euphoria or Python.

Hey, if the name fits, name it. Somebody says something about imitation and
flattery.

-ck


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Py and Long Filenames

ck lester wrote:

>> ...associative lists...
>
> And what the heck are these things? Maybe
> explaining what they're good for is sufficient.

Hrm. I've posted an explanation several times, so this one will be the
*really short* version. An a-list is like a database record - supply the
key, and you get data stored under that key back. In languages that support
it natively, can use the keys like array indexes, like so:

   info = car["toyota"]

   author["euphoria'] = "robert craig"

Jiri's written a library implementing them in Euphoria.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu