Monty: A structured text syntax idea
""" idea: para: I was editing some text in Python emacs mode the other day. para: I got to thinking how Python mandatory indentation emph: removes much of the need for delimiters para: Then it occured to me that XML tags are basically delimiters of nested block structures. para: Before I new it, I had written this structured text document, trivially parseable, trivially convertable to XML or whatever and christened it bold: Monty in honour of Python from which the idea came. para: I have started using this format in my docstrings and find Barry's amazing Python editing mode to be a very pleasent - um - structured text authoring tool! """ http://www.pyxie.org - an Open Source XML Processing library for Python
On Sat, 29 Jan 2000, Sean Mc Grath wrote:
""" idea: para: I was editing some text in Python emacs mode the other day. para: I got to thinking how Python mandatory indentation emph: removes much of the need for delimiters
I like it! Regards/Saludos Manolo www.ctv.es/USERS/irmina /TeEncontreX.html /texpython.htm /pyttex.htm I think we're all Bozos on this bus. -- Firesign Theatre
On Sat, 29 Jan 2000, Sean Mc Grath wrote:
I got to thinking how Python mandatory indentation emph: removes much of the need for delimiters
Actually, it sounds like a good idea, but I think some tradeoffs can be made. I'll put out a document soon (I've only got it in dead tree format right now) which describes the syntax, and I do use indentation for some of the markup. However, using it for all the markup might create an *roff like monster. Currently, I'm partial for (the horror) brackets for stuff that will be short like [module urllib] and function [func urlopen], and using (double colons) for block delimiting, since we (unlike Python) have to play well with NatLang... I'm commited to documenting at least one Python module with any syntax I suggest before putting out a complete document. cheers! -- Moshe Zadka <mzadka@geocities.com>. INTERNET: Learn what you know. Share what you don't.
Hi all! Moshe Zadka wrote: [...]
I'm commited to documenting at least one Python module with any syntax I suggest before putting out a complete document.
What about using 'Tkinter.py' for that purpose, since it is very well known? Hey ... that was a joke! I just couldn't resist. ;-) Regards, Peter -- Peter Funk, Oldenburger Str.86, 27777 Ganderkesee, Tel: 04222 9502 70, Fax: -60
On 29 January 2000, Sean Mc Grath said:
""" idea: para: I was editing some text in Python emacs mode the other day. para: I got to thinking how Python mandatory indentation emph: removes much of the need for delimiters
Auughh!!! Shades of troff here. (That's not a good thing.) Newlines are a fine delimiter in a programming language, where the semantic chunks tend to be on the order of 20-60 characters, and we need all the help we can get to guide our eyes. Natural language can have much smaller semantic chunks -- eg. emphasized words -- so artificially splitting lines so often is a waste of vertical real-estate. I think I'll wait for whatever Moshe proposes... (I just hope it uses something B<sensible> to emphasise text... >grin<) Greg
participants (5)
-
Greg Ward -
Manuel Gutierrez Algaba -
Moshe Zadka -
pf@artcom-gmbh.de -
Sean Mc Grath