About Grammar License
 
Commercial & freeware products Try our software for free before purchase Buy now Company news channel Company informations
  Home » Products » TemlCode » Comments  

19.08.2011
SnapDraw is FREE

15.07.2011
101+ Analog Clocks for Android

29.03.2011
101+ Vector Clocks Available

24.02.2011
Announcing Vector Clock Pro

01.01.2011
New beautiful set of Free Vector Clocks

 

TemlCode Comments

Because TemlCode tries to be a user friendly and highly human readable syntax, it provides an additional possibilities to make the Markup Tags even more understandable. In most parts of internal TemlCode syntax space, it is possible to add a comment blocks. These comments can be utilized either for hiding some temporary unused definitions, but mostly to describe the purpose of things around in a natural language.

Syntax of TemlCode Comments
"{" & !"}"* & "}"

Comment starts with left curly bracket character "{", then comes anything until right curly bracket character "}".
 
 
TemlCode Example of Comments in Markup Tags

~{{ All texts like this is a Comment ... }}
~{
{ Types definition for validation purposes }
  &date(d) = (day:int8u {1 .. 31};
              
month:int8u {1 .. 12};
              
year:int16 {-32,768 .. 32,767} );
  &currency 
= (
eur;usd;jpy);
  &units(un) 
= (one;
                
hn 
{Hundred};
                
th {Thousand};
                
mn {Million};
                
bn {Billion});
  &money(mny) 
= (
amount:currency;
                 
code:&currency;
                 
units:&units
=one )}

~\
text@"Euro Currency"\

 The ~<b{bold}>euro~> (currency sign: ~($20AC{Euro Sign});
 currency code: EUR) is the official currency of the European
 Union (EU). Fifteen member states have adopted it, known
 collectively as the Eurozone.
~(p{paragraph indent})

 It is the single currency for over 320 million Europeans
 and directly affects close to 500 million people worldwide
 with more than 
~(&mny(610,eur,bn){cultural}) in circulation
 as of 
~(&month(dec,2006){ writing some text elements like
 this allows for culture specific formatting}
 ).~(p)

 The euro was introduced to world financial markets as
 an accounting currency in 
~(&year(1999)) and launched
 as physical coins and banknotes on 
~(&date(1,1,2002)).~(p)

 As of ~(&year(2008)), nine new EU member states have
 a currency other than the euro; however, all of these
 countries are required by their Accession Treaties to
 join the euro. Some of the following countries have
 already joined the European Exchange Rate Mechanism,
 ERM II. They and the others have set themselves the goal
 of joining the euro (EMU III) as follows:
 
~(p)

 ~[table <border:px=1{Closed with Short form "~]"}]
   ~{collumn <width="50%";align=left>  }~<b>Currency~>
   ~{collumn <width="10%";align=center>}~<b>Code~>
   ~{collumn <width="20%";align=right> }~<b>Rate~>
   ~{collumn <width="20%";align=right> }~<b>Conv goal~>

   ~{row}Slovak koruna    ~}SKK ~}30.1260 ~}~(&d(1,1,2009))
   ~{row}Lithuanian litas ~}LTL ~}3.45280 ~}~(&d(1,1,2010))
   ~{row}Estonian kroon   ~}EEK ~}15.6466 ~}~(&d(1,1,2011))
   ~{row}Bulgarian lev    ~}BGN ~}1.95583 ~}~(&d(1,1,2012))
   ~{row}Polish z³oty     ~}PLN ~}—       ~}~(&d(1,1,2012))
   ~{row}Latvian lats     ~}LVL ~}0.70280 ~}~(&d(1,1,2012))
   ~{row}Czech koruna     ~}CZK ~}—       ~}~(&d(1,1,2012))
   ~{row}Hungarian forint ~}HUF ~}—       ~}~(&d(1,1,2012))
   ~{row}Romanian leu     ~}RON ~}—       ~}~(&d(1,1,2014))
   ~{row}Swedish krona    ~}SEK ~}—       ~}
 
~]~(p)

~\~
text\


 


Tell Us What You Think

Your Name
Your Email
Your Message
We accept anonymous messages. However, if you wish to receive a response, please include your email and name.

Next Chapter

AEBNF

  Generated from TemlCode based document. Graphics on this page is rendered with CrossGL SDK. Last page update: 19.8.2011