Home    News    Product    Order    Forum    Feedback    Partner    Profile  © Neatware 2000
 Neatware Snaml
Search
  Introduction
Home  : Last Update: Wed Apr 12 20:03:39 2000

 
Snaml Introduction

 
Snaml Basic
      Introduction
      Syntax
      Control
      Types
      Modules
      Status
Snaml HTML
      HTML
      Structure
      Link
      Objects
      Text
      Font
Snaml CSS
      CSS
      Script
Snaml CGI
      CGI
      Variables
      Output
      Form
      Application
Snaml XML
      XML
      Document
      EBNF

Introduction

Snaml is a web programming language innovated by Neatware. It is an integration of scripting language Tcl and markup language HTML as well as XML. (Snaml means Snaky Markup Language. It represents an ancient snake. When Snaml's head is attacked, its tail will come to help; when its tail is attacked, its head will be back to help; when its body is attacked, both head and tail will defense.)

HyperText Markup Language (HTML) is a description language for web document. Berent. Lee innovated the HTML from SGML and Netscape first implemented a widely used browser. Today HTML is a defacto standard of the web. The new Extensible Markup Language (XML) of W3 standard extended HTML to allow authors define new tags and attributes. As description languages, HTML and XML are very suitable to represent embedded documents. However, since both languages lack of variables, it is difficult to use them as programming languages. Therefore, the HTML document lacks of modularity and reusability.

Tcl is a Tool Command Language innovated by Dr. Jhon Ousterhout in the late 1980s. It is a typeless scripting (programming) language with simple and elegant syntax. It originated from unix shell command language. Because of its command, substitution and grouping syntax, Tcl is very powerful and flexible for string processing and glue components. However, without the block commands, Tcl is difficult to express the embedded documents.

Snaml added the block command and inline command to integrate the Tcl, HTML, and XML. Snaml code may be a HTML and XML generator. So it can generate a web page and document. Snaml programs will make a web site more maintainable, modifiable, and reusable. A big advantage with Snaml programming is to achieve the highest consistence for a web site. In addition, Snaml is a server side web programming language, it can add interactivity to a web site through CGI. Finally, Snaml is ease to connect to a database and generate dynamic web pages.

A simplest Snaml program outputs 'Hello World!' with the title 'Hello' to a HTML file hello.html.

__output hello.html
_html
_head
  _title
    _quote Hello
  title_
head_
_body
  _quote {Hello World!}
body_
html_
		

HTML

XML

TCL

     
Home  : Last Update: Wed Apr 12 20:03:39 2000
Search
  Introduction
 Neatware Snaml
Home    News    Product    Order    Forum    Feedback    Partner    Profile  © Neatware 2000