|
|
Label: ♦english
fu
created at Thursday, 2009-03-19, 23:19:47
fu
modified at Monday, 2009-06-08, 08:23:29
0 Replies, 906 Hits
Dao Language Specifications 1.1 (Draft: Alpha 1) - Introduction
This documentation will provide a detailed specification of the Dao programming language. The main purpose is two fold: (1) to produce a guidline for the implementation that shall lead to Dao 1.1; (2) to provide some essential materials for people who want to go deep into the language. So this specification does NOT conform exactly to what is available in the current release (1.0), it may contain specifications that are going to be changed or added in the implementation for the next release. But this documentation will mark such places clearly. The version code in the title, Draft: Alpha 1 , does not corresponding to the version number of the Dao language and releases, it is merely a way to indicate the progress of the preparation of this specification.
Syntax definition: A ::= B , A is defined as B , which can be a descriptive sentence or a combination of the following definition items,
The following notation is used in a few places (mainly character class definition):
Testing codes are embedded in this specification using the SDML tag demo , which can contain a block of Dao codes and the expected output of the codes. The expected output is separated from the source codes by [[output]] . When this document is processed by the tool that handles this documentation format, the codes inside the demo block will be executed and the output will be compared with the expected ones to check if the test is passed.
<demo dao>
some codes with output [[output]] expected output </demo>
Source URL:
http://www.daovm.net/space/dao/thread/87
Comments
|
fu: Many thanks (Jul.04,04:29) klabim: fixed Hi, great, now my test works now :- ). (Jun.30,17:51) Nightwalker: Few suggestions (Jul.03,14:37) |