Path: news.mitre.org!blanket.mitre.org!nntprelay.mathworks.com!newsfeed.internetmci.com!198.108.1.18!aanews.merit.net!news.si.com!gr-335569.si.com
From: tillman_brian.no.junk@si.com (Brian Tillman)
Newsgroups: comp.os.vms,sfnet.atk.vms,sfnet.atk.ohjelmointi
Subject: Re: LSE Language Sensitive Editor
Date: 22 Jan 98 19:17:33 GMT
Organization: Smiths Industries
Lines: 67
Message-ID: <34c79b4d.0@news.si.com>
References: <6a3bt8$g3r$1@elf.dlc.fi>
NNTP-Posting-Host: challenger.si.com
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.8 (beta 2)

In article <6a3bt8$g3r$1@elf.dlc.fi>, mes@dlc.fi says...
>
>I need to set up a new file type to be supported by LSE.  Would any of =
>you
>have a complete set of commands what needs to be done to have it=20
>spcified, tested, comoiled and then added to the list of supported=20
>filetypes.

Here's the start of my HTML V2 definition for LSE:

! 
!     Facility:
! 	  HTML.LSE - An HTML Language Definition
!  
!     Abstract:
!  	  This file defines an HTML language for use with the Language
!	  Sensitive Editor.  To use it, it must be compiled and saved as an
!	  environment file.
!  
!     Author:
! 	  Brian Tillman
!  
!     Creation Date: 8-Oct-1996
!  
!     Modification History:
!	  V0.1	8-Oct-1996  B. Tillman	Initial definition
!  
DEFINE LANGUAGE html -
    /COMMENT=(BEGIN="<!-- ", END=" -->") -
    /FILE_TYPES=(".htm", ".html", ".htx", ".htmlx") -
    /IDENTIFIER_CHARACTERS= -
	"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ0123456789/" -
    /INITIAL_STRING="[HTML]" -
    /LEFT_MARGIN=CONTEXT_DEPENDENT -
    /PLACEHOLDER_DELIMITERS=(REQUIRED=("{", "}"), -
			     REQUIRED_LIST=("{", "}..."), -
			     OPTIONAL=("[", "]"), -
			     OPTIONAL_LIST=("[", "]...")) -
    /PUNCTUATION_CHARACTERS=" =,.;:?%{}[]#<>&/""" -
    /RIGHT_MARGIN=78 -
    /TAB_INCREMENT=4 -
    /VERSION="V0.1" -
    /WRAP

DEFINE TOKEN "HTML" -
    /LANGUAGE=html -
    /PLACEHOLDER="HTML"

DEFINE PLACEHOLDER "HTML" -
    	/DESCRIPTION="HTML grammar" -
    	/LANGUAGE=html -
    	/TYPE=NONTERMINAL
	"<!DOCTYPE HTML PUBLIC ""-//IETF//DTD//HTML 2.0//EN"">"
	"<html>"
	"{Head Declaration}"
	"{Body Declaration}"
	"</html>"
    END DEFINE


-- 
 Brian Tillman                   Internet: tillman_brian at si.com
 Smiths Industries, Inc.                   tillman at swdev.si.com
 4141 Eastern Ave., MS239        Addresses modified to prevent
 Grand Rapids, MI 49518-8727     SPAM.  Replace "at" with "@"
        This opinion doesn't represent that of my company

