Tom Hawkins <[EMAIL PROTECTED]> writes:

   Sure, I don't mind parentheses.  I'm not a LISP/emacs expert -- what
   is the colon for, such as (:scope ...).  Why not just (add 8 ...)

conventionally, it signifies a keyword in the grammar as opposed to an
identifier.  this convention is supported by emacs and other editors
that do syntax highlighting.

   Also, how should lists of numbers be distinguished from functions?

      '(2 6 0)  or (quote (2 6 0))

since the whole structure (tree, netlist) is data, it is "pre-quoted"
and there are no functions involved, so really it is a question of how
you wish to design the grammar.  in this case, your grammar could
specify that after every :ff, there must be a single integer followed by
a list of integers.  (you would have to specify this anyway regardless
of the externally visible format.)

i've put some files up for perusal by the curious in dir:

http://www.glug.org/tmp/

they show what i see, and what you can do right now, in the way of
experimentation, with such a format.

thi

Reply via email to