[#63439] Re: Local variables & blocks — Brian Candler <B.Candler@...>

> >>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

22 messages 2003/02/01
[#63482] Re: Local variables & blocks — ts <decoux@...> 2003/02/02

>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:

[#63485] Re: Local variables & blocks — Brian Candler <B.Candler@...> 2003/02/02

On Sun, Feb 02, 2003 at 09:30:12AM +0100, ts wrote:

[#63486] Re: Local variables & blocks — ts <decoux@...> 2003/02/02

>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:

[#63491] Re: Local variables & blocks — Brian Candler <B.Candler@...> 2003/02/02

> Y> I'm afraid I won't give you a way to turn it off. It is "quite

[#63492] Re: Local variables & blocks — ts <decoux@...> 2003/02/02

>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:

[#63495] Re: Local variables & blocks — Brian Candler <B.Candler@...> 2003/02/02

On Sun, Feb 02, 2003 at 12:36:52PM +0100, ts wrote:

[#63496] Re: Local variables & blocks — ts <decoux@...> 2003/02/02

>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:

[#63479] no override — Tom Sawyer <transami@...>

is there any way to specifiy that a method can not be overrided? perfereably

20 messages 2003/02/02
[#63483] Re: no override — Mauricio Fern疣dez <batsman.geo@...> 2003/02/02

On Sun, Feb 02, 2003 at 04:51:08PM +0900, Tom Sawyer wrote:

[#63487] Re: no override — Mauricio Fern疣dez <batsman.geo@...> 2003/02/02

On Sun, Feb 02, 2003 at 06:41:45PM +0900, Mauricio Fern疣dez wrote:

[#63500] Re: no override — Tom Sawyer <transami@...> 2003/02/02

On Sunday 02 February 2003 03:34 am, Mauricio Fern疣dez wrote:

[#63517] Re: no override — Mauricio Fern疣dez <batsman.geo@...> 2003/02/02

On Sun, Feb 02, 2003 at 09:35:26PM +0900, Tom Sawyer wrote:

[#63527] Re: no override — Tom Sawyer <transami@...> 2003/02/02

On Sunday 02 February 2003 09:01 am, Mauricio Fern疣dez wrote:

[#63553] What is the best Ruby IDE you think? — Nicolay Vasiliev <n.vasiliev@...>

Hello!

14 messages 2003/02/03

[#63600] ruby-dev summary 19437-19455 — Minero Aoki <aamine@...>

Hi all,

17 messages 2003/02/03

[#63751] Embedding Ruby in C code — Szymon Drejewicz <drejewic@...>

How to compile this file:

24 messages 2003/02/05

[#63782] Error in Complex — Daniel Carrera <dcarrera@...>

Hello,

18 messages 2003/02/05

[#63829] locana, SVG, cross-platform GUI meanderings... — ptkwt@...1.aracnet.com (Phil Tomson)

Hold on, this post takes a few twists and turns. Consider it an exercise

41 messages 2003/02/06
[#63832] Re: locana, SVG, cross-platform GUI meanderings... — Holden Glova <dsafari@...> 2003/02/06

-----BEGIN PGP SIGNED MESSAGE-----

[#63859] Re: locana, SVG, cross-platform GUI meanderings... — Richard Kilmer <rich@...> 2003/02/06

[#63862] Blogging software — Martin DeMello <martindemello@...>

Anyone done any work on a ruby-powered weblog?

15 messages 2003/02/06

[#63906] The way of the Gentoo — "MikkelFJ" <mikkelfj-anti-spam@...>

22 messages 2003/02/06

[#63938] Private lvalue methods unusable? — Steven Smolinski <steven.smolinski@...>

I'm learning Ruby, and trying to grasp the non-declarative concept with

14 messages 2003/02/06

[#64018] easy access for CGI query — Wakou Aoyama <wakou@...>

hello,

14 messages 2003/02/07

[#64063] Tortured by the Dependency Daemons — Jonathan Smith <jonathan.w.smith@...>

The instructions for installation state, "In RWiki package for your

16 messages 2003/02/08

[#64068] Relative performance of Ruby templating systems — "Gabriel Emerson" <egabriel@...>

I decided to run Siege against Mod Ruby, ERuby, Amrita, PageTemplate,

11 messages 2003/02/08

[#64146] ruby-dev summary 19457-19539 — Kazuo Saito <ksaito@...>

10 messages 2003/02/09
[#64151] Operator reordering, good idea? (was Re: ruby-dev summary 19457-19539) — Sam Roberts <sroberts@...> 2003/02/09

Hi, I'm just a beginner buy program, but...

[#64164] Trapping Access/Modification of Objects — Jason Voegele <jason@...>

After a long delay, I'm now starting to work on the RubyGOODS library

13 messages 2003/02/09

[#64242] Source code for "Ruby Developer's Guide" — Harry Ohlsen <harryo@...>

Hi People,

15 messages 2003/02/10

[#64247] turning modules into classes — "Chris Pine" <nemo@...>

Did you ever want to instantiate a module?

28 messages 2003/02/10
[#64251] Re: turning modules into classes — dblack@... 2003/02/10

Hi --

[#64278] inheriting from base classes — dblack@...

Hi --

37 messages 2003/02/11

[#64329] Range#length? — "Chris Pine" <nemo@...>

What happened to Range#length and Range#size?

39 messages 2003/02/11

[#64392] String frustration — "Tim Kynerd" <tim@...>

Hi everyone,

23 messages 2003/02/11

[#64421] Name for #=== based assertion — <nathaniel@...>

I've had several requests that an assertion based on #=== be added to

16 messages 2003/02/12

[#64470] Need regex help (or bug in match) — Jim Freeze <jim@...>

Hi

17 messages 2003/02/12
[#64471] Re: Need regex help (or bug in match) — dblack@... 2003/02/12

Hi --

[#64549] Re: Can we attack the 'not enough libraries' thing straight on? — "Hal E. Fulton" <hal9000@...> 2003/02/12

----- Original Message -----

[#64524] mod_ruby insecury op — Daniel Bretoi <lists@...>

[Wed Feb 12 12:00:16 2003] [error] mod_ruby: error in ruby

15 messages 2003/02/12

[#64527] Windows support — Daniel Carrera <dcarrera@...>

Hello,

17 messages 2003/02/12

[#64528] hm,... arr[1]["name"] — "daniel" <offstuff@...>

$arr = Array();

16 messages 2003/02/12

[#64575] Re: Lexical scope and closures — patrickdlogan@...

> (3) some other syntax will be introduced for cases where...

53 messages 2003/02/12
[#64647] Re: Lexical scope and closures — Mauricio Fern疣dez <batsman.geo@...> 2003/02/13

On Thu, Feb 13, 2003 at 08:35:34AM +0900, patrickdlogan@attbi.com wrote:

[#64670] Re: Lexical scope and closures — Brian Candler <B.Candler@...> 2003/02/13

On Thu, Feb 13, 2003 at 05:44:36PM +0900, Mauricio Fern?ndez wrote:

[#64678] Re: Lexical scope and closures — Tom Sawyer <transami@...> 2003/02/13

On Thursday 13 February 2003 04:54 am, Brian Candler wrote:

[#64750] Re: Lexical scope and closures — matz@... (Yukihiro Matsumoto) 2003/02/14

Hi,

[#64751] Re: Lexical scope and closures — Tom Sawyer <transami@...> 2003/02/14

On Thursday 13 February 2003 06:44 pm, Yukihiro Matsumoto wrote:

[#64755] Re: Lexical scope and closures — matz@... (Yukihiro Matsumoto) 2003/02/14

Hi,

[#64756] Re: Lexical scope and closures — Tom Sawyer <transami@...> 2003/02/14

On Thursday 13 February 2003 07:42 pm, Yukihiro Matsumoto wrote:

[#64855] Re: Lexical scope and closures — "Marcin 'Qrczak' Kowalczyk" <qrczak@...> 2003/02/15

Sat, 15 Feb 2003 08:06:31 +0900, Mauricio Fern疣dez <batsman.geo@yahoo.com> pisze:

[#64920] Re: Lexical scope and closures — dblack@... 2003/02/16

Hi --

[#64602] von Rossum on Strong vs. Weak Typing — <jbritt@...>

Since this is something of a permathread on this list I though this would be of interest:

33 messages 2003/02/13
[#64606] Re: von Rossum on Strong vs. Weak Typing — Ryan Pavlik <rpav@...> 2003/02/13

On Thu, 13 Feb 2003 10:10:44 +0900

[#64778] Re: von Rossum on Strong vs. Weak Typing — "Marcin 'Qrczak' Kowalczyk" <qrczak@...> 2003/02/14

Thu, 13 Feb 2003 13:15:42 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> pisze:

[#64789] Re: von Rossum on Strong vs. Weak Typing — Paul Brannan <pbrannan@...> 2003/02/14

On Fri, Feb 14, 2003 at 07:27:10PM +0900, Marcin 'Qrczak' Kowalczyk wrote:

[#64793] Re: von Rossum on Strong vs. Weak Typing — Matt Armstrong <matt@...> 2003/02/14

Paul Brannan <pbrannan@atdesk.com> writes:

[#64804] Re: von Rossum on Strong vs. Weak Typing — Paul Brannan <pbrannan@...> 2003/02/14

On Sat, Feb 15, 2003 at 01:05:19AM +0900, Matt Armstrong wrote:

[#64811] Re: von Rossum on Strong vs. Weak Typing — Dan Sugalski <dan@...> 2003/02/14

At 4:18 AM +0900 2/15/03, Paul Brannan wrote:

[#64626] Why does Array#compact! return the array, but uniq! return a count? — Sam Roberts <sroberts@...>

11 messages 2003/02/13

[#64752] why html template systems never use new tags? — Tom Sawyer <transami@...>

curious, i've realized that i have never seen any html template systems that

16 messages 2003/02/14

[#64753] module This::Encompassing::That — Bil Kleb <W.L.Kleb@...>

Today, I decided I was tired of

45 messages 2003/02/14
[#64754] Re: module This::Encompassing::That — dblack@... 2003/02/14

Hi --

[#64757] Re: module This::Encompassing::That — Bil Kleb <W.L.Kleb@...> 2003/02/14

dblack@candle.superlink.net wrote:

[#64850] Re: module This::Encompassing::That — Gavin Sinclair <gsinclair@...> 2003/02/15

On Friday, February 14, 2003, 2:00:56 PM, Bil wrote:

[#64859] Re: module This::Encompassing::That — dblack@... 2003/02/15

Hi --

[#64883] Re: module This::Encompassing::That — Gavin Sinclair <gsinclair@...> 2003/02/15

On Sunday, February 16, 2003, 4:01:47 AM, dblack wrote:

[#64986] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/17

Hi,

[#64987] Re: module This::Encompassing::That — ts <decoux@...> 2003/02/17

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#64988] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/17

Hi,

[#64990] Re: module This::Encompassing::That — ts <decoux@...> 2003/02/17

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#65046] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/17

Hi,

[#65078] Re: module This::Encompassing::That — ts <decoux@...> 2003/02/18

>>>>> "Y" == Yukihiro Matsumoto <matz@ruby-lang.org> writes:

[#65085] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/18

Hi,

[#65137] Re: module This::Encompassing::That — Gavin Sinclair <gsinclair@...> 2003/02/18

On Tuesday, February 18, 2003, 11:56:41 PM, Yukihiro wrote:

[#65151] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/19

Hi,

[#65160] Re: module This::Encompassing::That — nobu.nokada@... 2003/02/19

Hi,

[#65178] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/19

Hi,

[#65211] Re: module This::Encompassing::That — <nathaniel@...> 2003/02/19

Yukihiro Matsumoto [mailto:matz@ruby-lang.org] wrote:

[#65225] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/19

Hi,

[#65230] Re: module This::Encompassing::That — dblack@... 2003/02/19

Hi --

[#65235] Re: module This::Encompassing::That — matz@... (Yukihiro Matsumoto) 2003/02/19

Hi,

[#64785] Segmation fault in combination of heavy socket I/O and multi-threading — Idan Sofer <idan@...>

This is one bug(Or perhaps even a set of bugs) I ran into more then once

10 messages 2003/02/14
[#65118] Re: [BUG] Segmation fault in combination of heavy socket I/O and multi-threading — ts <decoux@...> 2003/02/18

>>>>> "I" == Idan Sofer <idan@idanso.dyndns.org> writes:

[#65001] How to test for existence of instance variable? — Brian Candler <B.Candler@...>

I have an existing class Foo, and existing objects of that class.

42 messages 2003/02/17
[#65017] Re: How to test for existence of instance variable? — "Bill Kelly" <billk@...> 2003/02/17

Hi,

[#65081] Re: How to test for existence of instance variable? — Brian Candler <B.Candler@...> 2003/02/18

On Mon, Feb 17, 2003 at 10:46:59AM -0800, Bill Kelly wrote:

[#65084] Re: How to test for existence of instance variable? — matz@... (Yukihiro Matsumoto) 2003/02/18

Hi,

[#65110] Re: How to test for existence of instance variable? — Paul Brannan <pbrannan@...> 2003/02/18

On Tue, Feb 18, 2003 at 09:52:12PM +0900, Yukihiro Matsumoto wrote:

[#65112] Re: How to test for existence of instance variable? — matz@... (Yukihiro Matsumoto) 2003/02/18

Hi,

[#65125] Re: How to test for existence of instance variable? — Paul Brannan <pbrannan@...> 2003/02/18

On Wed, Feb 19, 2003 at 02:08:07AM +0900, Yukihiro Matsumoto wrote:

[#65179] Re: How to test for existence of instance variable? — matz@... (Yukihiro Matsumoto) 2003/02/19

Hi,

[#65196] Re: How to test for existence of instance variable? — Brian Candler <B.Candler@...> 2003/02/19

On Wed, Feb 19, 2003 at 05:19:15AM +0900, Paul Brannan wrote:

[#65201] Re: How to test for existence of instance variable? — Paul Brannan <pbrannan@...> 2003/02/19

On Thu, Feb 20, 2003 at 12:02:21AM +0900, Brian Candler wrote:

[#65090] $SAFE and creating New objects (File) — "\"RayZ\" Andrew V Rumm" <rayz@...>

Sorry for noob question

16 messages 2003/02/18

[#65141] String#+ operatorbroken? — Jim Freeze <jim@...>

Hi:

17 messages 2003/02/19

[#65159] Sourcing files — Bjn Lindstr <bkhl@...>

I like using source files as configuration files for my hacks.

13 messages 2003/02/19

[#65167] Ruby scripts for daily unix system administration — "Useko Netsumi" <usenets@...>

Hi, I'm a newbie looking for any example of writing ruby script to do my

22 messages 2003/02/19

[#65212] Rite Status? — Travis Whitton <whitton@...>

Hello all - I was just wondering if Rite is still in development and if it's

16 messages 2003/02/19

[#65270] optimization question — Travis Whitton <whitton@...>

Hello - A friend and I have been working on a Ruby implementation of a

39 messages 2003/02/19

[#65292] Curses base windowing system — "Useko Netsumi" <usenets@...>

As I have only limited resources on my laptop(memory, diskspace, and CPU

17 messages 2003/02/20

[#65331] Return Values of [] for Array, Hash,... (ruby 1.6.8) — Michael Bruschkewitz <brusch2@...>

Hello,

12 messages 2003/02/20

[#65351] proc {} vs. Method#to_proc — dblack@...

Hi --

22 messages 2003/02/20

[#65424] Regexp help: Parsing a CSV file — Tim Bates <tim@...>

I've dumped a CSV (comma separated values) file from Excel, and I want to

27 messages 2003/02/21

[#65454] xml-configfile 0.8.0 — Maik Schmidt <contact@...>

Yo!

14 messages 2003/02/21

[#65473] Style question: using 'block_given?' — Bill Dueber <wdueber@...>

I'm new to Ruby, and want to know what The Best Way To Do It is...

21 messages 2003/02/21
[#65485] Re: Style question: using 'block_given?' — Brian Candler <B.Candler@...> 2003/02/21

On Sat, Feb 22, 2003 at 05:00:44AM +0900, Bill Dueber wrote:

[#65494] Re: Style question: using 'block_given?' — Mauricio Fern疣dez <batsman.geo@...> 2003/02/21

On Sat, Feb 22, 2003 at 06:05:23AM +0900, Brian Candler wrote:

[#65498] Re: Style question: using 'block_given?' — Brian Candler <B.Candler@...> 2003/02/21

> This is the class instance variable police. Freeze! Keine Bewegung!

[#65511] Re: Style question: using 'block_given?' — dblack@... 2003/02/22

Hi --

[#65514] Re: Style question: using 'block_given?' — Brian Candler <B.Candler@...> 2003/02/22

On Sat, Feb 22, 2003 at 04:05:59PM +0900, dblack@candle.superlink.net wrote:

[#65526] embedded docs — Wojciech Kaczmarek <schatten@...>

Is ruby going to have (in a reasonably predictable future :) embedded

50 messages 2003/02/22
[#65567] Re: embedded docs — Simon Cozens <simon@...> 2003/02/23

Brian Wisti <brian@coolnamehere.com> writes:

[#65572] Re: embedded docs — Piers Harding <piers@...> 2003/02/23

[#65573] Re: embedded docs — Seth Kurtzberg <seth@...> 2003/02/23

I agree that this is very important.

[#65576] Internationalization (Re: embedded docs) — Brian Wisti <brian@...> 2003/02/23

On Sunday 23 February 2003 09:18 am, Seth Kurtzberg wrote:

[#65577] Re: Internationalization (Re: embedded docs) — Seth Kurtzberg <seth@...> 2003/02/23

On Sunday 23 February 2003 10:53 am, Brian Wisti wrote:

[#65601] ANN: REXML 2.5.7 and 2.4.7 — ser@... (Sean Russell)

Two, two, TWO releases for the price of one!

13 messages 2003/02/24

[#65619] Coding challenge: Space-separated constants — "Hal E. Fulton" <hal9000@...>

I'm issuing this challenge because I'm

12 messages 2003/02/24

[#65632] Happy Birthday, Ruby, and an announcement.... — dblack@...

Dear everyone,

18 messages 2003/02/24

[#65644] Debugger Not Working — Seth Kurtzberg <seth@...>

All,

26 messages 2003/02/24
[#65779] Re: Debugger Not Working — "NAKAMURA, Hiroshi" <nahi@...> 2003/02/26

Hi, Seth,

[#65784] Re: Debugger Not Working — Seth Kurtzberg <seth@...> 2003/02/26

It is working now with line numbers. What is the syntax for breaking at a

[#65786] Re: Debugger Not Working — "NAKAMURA, Hiroshi" <nahi@...> 2003/02/26

Hi, Seth,

[#65790] Re: Debugger Not Working — Seth Kurtzberg <seth@...> 2003/02/26

It may, I'll try it, but it really doesn't do much good even if it does work.

[#65791] Re: Debugger Not Working — "NAKAMURA, Hiroshi" <nahi@...> 2003/02/26

Hi, Seth,

[#65660] Objectify the mersenne twister in 1.8? — Robert Feldt <feldt@...>

Hi,

17 messages 2003/02/24

[#65802] Ruby in Performance Testing — E F van de Laar <emiel@...>

Rubyists,

18 messages 2003/02/26

[#65835] Re: von Rossum on Strong vs. Weak Typing — "Marcin 'Qrczak' Kowalczyk" <qrczak@...>

Thu, 13 Feb 2003 10:10:44 +0900, <jbritt@ruby-doc.org> <jbritt@ruby-doc.org> pisze:

12 messages 2003/02/26

[#65854] Ruby Compile-time optimization — Daniel Carrera <dcarrera@...>

Hello,

52 messages 2003/02/27

[#65884] Unable to do non-blocking read on socket — Seth Kurtzberg <seth@...>

I have not been able to change the behavior of IO::read() to non-blocking.

27 messages 2003/02/27
[#65920] Re: Unable to do non-blocking read on socket — nobu.nokada@... 2003/02/27

Hi,

[#65937] Re: Unable to do non-blocking read on socket — Seth Kurtzberg <seth@...> 2003/02/27

This is with 1.8 CVS head on linux kernel 2.4.20.

[#66126] Re: Unable to do non-blocking read on socket — nobu.nokada@... 2003/03/02

Hi,

[#66146] Re: Unable to do non-blocking read on socket — Seth Kurtzberg <seth@...> 2003/03/02

I guess I must be missing something, but I see nothing here that would expose

[#66149] Re: Unable to do non-blocking read on socket — matz@... (Yukihiro Matsumoto) 2003/03/02

Hi,

[#65907] XmlConfigFile usage — Ollivier Robert <roberto@...>

Hello,

31 messages 2003/02/27
[#65943] Re: XmlConfigFile usage — "Chris Morris" <chrismo@...> 2003/02/27

> I underestimated the need for true XML serialization and I think it's

[#65945] Re: XmlConfigFile usage — Brian Candler <B.Candler@...> 2003/02/27

On Fri, Feb 28, 2003 at 01:53:47AM +0900, Chris Morris wrote:

[#65991] I'm stuck — Friedrich Dominicus <frido@...>

Well my problem sounds IMHO trivial.

31 messages 2003/02/28

STEP Structured Text Entry Processor

From: "MikkelFJ" <mikkelfj-anti-spam@...>
Date: 2003-02-23 15:07:14 UTC
List: ruby-talk #65569
This was orignally a follow up to my question about YAML documentation, but
grew into a separate topic.

This is not an announcement, but I think it's about time to get some
feedback on the design. It's hardly specific to Ruby, but I guess it would
work well in a Ruby context.


"Mauricio Fern疣dez" <batsman.geo@yahoo.com> wrote in message
news:20030223073420.GA13356@student.ei.uni-stuttgart.de...
> On Sun, Feb 23, 2003 at 08:06:16AM +0900, MikkelFJ wrote:

> > BTW: what tool(s) did you use to produce the Yaml documentation?
>
> Yaml :) Take a look at doc/yamlrb.yod: it is a "Yaml document", to be
> processed by Yod (Yaml Ok Documentation). See src/yod.rb:


I kind of figured :-) But it must be post-processed to xsl-fo or something?

I have on and off for a long time been hacking on a simple xml format - like
some of the people behind yaml - then comes yaml. But meanwhile I changed
focus towards a format that is supposed to be especially suited for
documentation purposes. yaml is also text typing friendly - but still not
the best possible for text entry. I hacked something in Ruby but need to
back to it. The primary motivation is that Tex is too complex and xml-doc is
too cumbersome - and finally the need to have a text format as you can't
trust wordprocessors to be around in the long term, and are bad for
formattting and source control.

Ruby doc format is a similar approach, but not sufficiently advanced in
formatting.

Perhaps I should ask for some help here in getting the format completed?

The design goals are
- absolutely minimum of escape symbols
- arbitrarily complex nesting
- automatic tag-close based on context
- support for meta-tagging (comments, other languages, notes)
- headers etc. should not be escaped by = for level 1, == for level 2 etc.,
because it makes it difficult to move a section.

I see it as a possiblity to use Wiki like interface for advanced text
formatting purposes - and also for non-text purposed - but here YAML or even
XML might be better.

Currently I haven't looked much into how to represent lists, a case where
YAML clearly excells.

I've written a prelim. spec., but I'm considering changing it a bit. Here
are the main points (it's simple because that's the whole point).

I've currently got some problems handling paragraph breaks - I don't want to
type them everywhere, but deducing them can be tricky.

I called it STEP: Structured Text Entry Processor.

Text is text. A blank line is is paragraph break (whatever that means in the
given context). The only escape symbols are curly braces. This form a
command.
example:

{chapter The first chapter}
Here is text. Then next sentence is bolded. {b This is bolded text}. This is
not bold.
{chapter The next chapter}
Here is text in chapter two.
{section a subsection} Text in section. {note needs cleanup}
{chapter Also a chapter}

Clearly tags (called commands) follow '{'. These are not predefined in STEP.
STEP provides means to define tags hierarchies which enables one tag to
automatically close another. STEP also has two kinds of commands: those that
has a header and a body, and those that only have a header:
{b header only}, {chapter header} body {chapter header} body

I am actually considering having two different symbols for the two command
styles:  {b header only}, [chapter header] body [chapter header] body
But then I would have more symbols to escape.

I am also considering moving the command name outside of '{':
This is b{bolded text} this is not bolded.
chapter{The chapter title} The chapter body section{Text in section}
However, currently the name follows '{' as in: This is {b bolded text}.

Semantics are the most important, but here is the basic syntax:

<step> ::= (<text> | <field>)(<text> | <field>|<break>)*
<field> ::= '{' <command> [<space>+ <step>] '}'
<name> ::= (SYMBOL except <space>, '{', '}', '(', or ')')*
<text> ::= (<name> | '\{' | '\}' | '(' | ')' )*
<command> ::= <name> [ '(' <arguments> ')']
<arguments> ::= -- reserved for future
<break>, <space> ::= -- see below

The only escaped symbols are '{' and '}'. '\' is not escaped: If you want to
write '{' you must write '\{', but if you want to write '\{' you write
'\\{'. '\' only has a special meaning before '{' or '}'.

Spaces are usually merged into a single <word-break> command. To have
explicit spaces in front of text or just spaces, use the command with no
name:
The following are multiple spaces {          }and the following are multiple
{       spaces follewed by text}.

Not shown: There a special commands for handling source code text completely
unescaped using something similar to <<EOInput, and another simpler option
where { } are only required to be balanced.

<arguments> are reserved for future used. They would a allow a syntax like
{font(courier, 10) some text in courier}.

The following is an attempt to clearly define the space syntax. The
<word-break> and <paragraph-break> are significant. <space> is stripped and
is only used to seperate the command name from the following text. There are
problems - how to deal with space before and after a field if the field
evaluates to nothing, and there are several issues with explicit
paragaph-breaks and implicit breaks (like after a chapter title). Therefore,
a higher lever syntax must also be used to handle document output and clean
up repeated breaks.

<break> ::= <word-break> | <paragraph-break>
<space> ::= (<blank> | <newline>)+
<blank> ::= SPACE | TAB
<newline> ::= (CR LF | LF | CR not followed by LF )
<word-break> ::= <blank>* [<newline>  <blank>*]
<paragraph-break> ::= [<blank>] <newline> ([<blank>] <newline>)+

UTF-8 symbols are handled directly by the syntax. In fact the format is
perfectly suited for binary encodings as long as '{', '}' are escaped and
space sequences are contained in { }.

Something that I haven't covered here is how you can define commands as
macros of other commands, and how you can define commands to be subordinate
to other commands for automatic tag closing. While there is a syntax for
doing so, this is something that can be defined outside of the scripting
syntax such that commands like {chapter} and {section} are predefined. The
processor will also accept undefined commands, but in that case they will be
treated as having no body - that is they stop exactly where at '}'.

Another issue not covered is that commands inside the header or body of
other commands may be treated specially within that context. Thus a command
can act as modifier to the active parent command: e.g. {chapter {1}
Introduction}, here {1} acts as an enumeration command. This is partly why I
haven't settled for arguments to commands. In fact the entire header text of
a command could be viewed as arguments to certain commands. E.g.
{font courier, 10}
{font {name courier}{size 10}}

STEP is only a syntax and a processor, so a separate layer on top of STEP
would be needed for a particular purpose. One such layer could be a generic
handler for generated XSL-FO, a subset of Latex, HTML and Doc-Book.


{Early-brainstorming}
As I mentioned, I am considering moving the command name outside the of the
curly braces, but I havent investigated this further yet. I personally tend
to think "bold" and then realize I need to add some delimiters, typically
going back to add the curly brace. Compare this to LISP versus other
languages function syntax: (print "foo") and print("foo")

Also, I am considering having a special short command notation for commands
covering a single word:
Only the word b,,only is bolded.
Only the word {b only} is bolded.

Two commas happen infrequently in natural text but are quick to enter and
easy to read. Two commas (or more) would be escaped by {,,}, analogous to
escaping spaces.


It could also be used with linebreaks when preceeded by colon:

chapter:,,This is chapter 1
This is the content of chapter 1.

However, I don't really like too many special cases just to make things
marginally easier. It's much easier if commands are exactly { } and nothing
else. I might by intoo the ,, notion because it's so much easier.

As mentioned I do have some prototype code around - mail if interested. I
also learned that Ruby really needs a lexer tool, it was not as easy to
implement in Ruby as I had expected.

Mikkel




In This Thread

Prev Next