Jervis Whitley <jervi...@gmail.com> added the comment:

> Matthew suggested ~= instead of -> or "as".

Try the patch, you can make changes (for those that aren't aware) 
by changing the token in Grammar/Grammar to whatever you wish. It is easy
to do and you need only recompile after this step. 

example:

    assexp: xor_expr ['->' xor_expr] 

could become

    assexp: xor_expr ['magic' xor_expr]


    >>> 'hello' magic words
    'hello'
    >>> words
    'hello'


Note that Mr Barnett may need to look at other fixes to get
his '~=' idea off the ground (tokenizer.c and specifically adding a new
token)

I've recommended that we close this issue.

Cheers,

Jervis

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1714448>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to