Re: lepl question

5 views
Skip to first unread message

andrew cooke

unread,
May 17, 2011, 12:55:29 PM5/17/11
to Justin Blount, Lepl Mailing List

Hi,

There's a *huge* difference between Lepl 2.7 and 5.0. I would guess that this
is either a result of some change in how Lepl works between those versions or
a bug in Lepl 5 (not Mac-specific).

In general, later version of Lepl are improvements, but major version number
changes (2->3->4->5) do break some existing code. So if you have code that
run on Lepl 2.7.4 and you simply want to keep using it elsewhere then you are
best installing the same version of Lepl on the Mac. Use:

easy_install "lepl==2.7.4"

to install that version.

If you want me to help with fixing your code to work on 5 and/or fixing any
bug there might be in Lepl then I need some more details. Can you make a
small example that shows the same problem?

Thanks,
Andrew


On Tue, May 17, 2011 at 11:04:35AM -0500, Justin Blount wrote:
> Andrew,
>
> I am using lepl and am having trouble with Windows vs Mac
> The attached program works on my Windows maching but does not work on my
> Mac
> I get the following Error
>
> cs103:Desktop justinblount$ python ALMtranslator_May_16.py
> hsimple_world_daniela_May12.alm
> Traceback (most recent call last):
> File "ALMtranslator_May_16.py", line 2702, in <module>
> main()
> File "ALMtranslator_May_16.py", line 2679, in main
> representation = SYSTEM_DESCRIPTION.parse_file(source)
> File "build/bdist.macosx-10.3-fat/egg/lepl/core/config.py", line 825, in
> parse_file
> File "build/bdist.macosx-10.3-fat/egg/lepl/core/parser.py", line 257, in
> single
> File "build/bdist.macosx-10.3-fat/egg/lepl/core/parser.py", line 146, in
> trampoline
> File "build/bdist.macosx-10.3-fat/egg/lepl/lexer/lexer.py", line 133, in
> _match
> File "build/bdist.macosx-10.3-fat/egg/lepl/stream/core.py", line 283, in
> <lambda>
> File "build/bdist.macosx-10.3-fat/egg/lepl/stream/core.py", line 223, in
> new_max
> NotImplementedError
>
> On my mac I run OS X 10.5.8,
> Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
> and the following version of lepl
> cs103:Desktop justinblount$ easy_install lepl
> Searching for lepl
> Best match: LEPL 5.0.0
> Processing LEPL-5.0.0-py2.6.egg
> LEPL 5.0.0 is already the active version in easy-install.pth
>
> The Windows computer is running XP, with python 2.6.4 and lepl 2.7.4
>
> Any assistance would be greatly appreciated
>
> Thanks
> Justin Blount

Reply all
Reply to author
Forward
0 new messages