[Prev][Next][Index]

Re: Lsl syntax questions.



> I'm having a little trouble defining a trait:
> 
>   pu cat t.lsl
>   t: trait
> 
>     includes
>       String(byte, data)
>       Natural(nat)
>       attr tuple of d: data, n: nat

The includes keyword must be followed by comma separated list of trait
references.  So

  t: trait

    includes
      String(byte, data),
      Natural(nat)
      attr tuple of d: data, n: nat

will work.

> More generally: is there a chart (or bnf description or ...) showing lsl
> syntax?

LSL syntax and semantics are covered in DEC SRC technical report #58 which you
can obtain via WWW at

	http://www.research.digital.com/SRC/publications/src-rr.html

or by ftp

	ftp site:	gatekeeper.pa.dec.com
	file:		/pub/DEC/SRC/research-reports/SRC-058.ps.Z

Best of luck,

Patrice


Reference(s):