Leo<HTML>

Der Interpreter

Tags - Referenz
Tag Syntax
Include Tag
Macro Tags
Menu Tags
Locale Tags
Char Tag
File Tags
Image Tag
Delete Tag
Init System
Der Interpreter
    Konzept
    Script Tag
    Function Tag
Eigene Tags
Index

Quellen von interpreter.html:
  
     
 
<include file="top.lhhtml"> 
 
<lconf pos="/interpreter" pagename="interpreter"> 
 
<section link="/interpreter/concept" local="concept"> 
 
<locale> 
  <locale language="de"> 
 
<leohtml> unterstützt einen JavaScript Interpreter. Dazu muß das 
Programm allerdings mit der <ixlib> Biblothek kompiliert worden sein. 
<p> 
 Der Interpreter funktioniert nach dem Prinzip, dass irgendwo auf der 
 Seite eine Funktion definiert wird und diese dann irgend wo anders 
 aufgerufen werden kann. 
</p> 
<p> 
 Dazu gibt es zwei Tags: das <code>script</code> und das <code>function</code> 
 Tag. 
</p> 
 
<p> 
 An dieser Stelle wird nicht erklärt, weder der Interpreter selbst, noch 
 die eingebauten Funktionen erklärt. Für diese Informationen siehe in der 
 <docu> nach. 
</p> 
 
  </locale> 
  <locale language="en"> 
 
<leohtml> supports a JavaScript Interpreter. for using this interpreter 
the application has to be compiled with <ixlib> support. 
<p> 
 The principe of the interpreter is, that somewhere within the page 
 a function is defined and on an other position at the page the 
 function can be called. 
</p> 
 Therefor there are two tags: the <code>script</code> and the <code>function</code> 
 tag. 
</p> 
<p> 
 I won't explain the interpreter nor the builtin functions here. For these Informations 
 have a look at the <docu>. 
</p> 
 
  </locale> 
</locale> 
 
</section> 
 
<!-- ************************* --> 
 
<section link="/interpreter/script" local="script"> 
 
<locale> 
  <locale language="de"> 
 
Das <code>script</code> Tag ist dem script Tag, das in HTML 4 definiert ist sehr ähnlich. 
 
  </locale> 
  <locale language="en"> 
 
The <code>script</code> tag is very similar to the script tag defined in HTML 4 standard. 
 
  </locale> 
</locale> 
 
<definition title="Script Tag Definition"> 
<include file="script.def"> 
</definition> 
 
<br><br> 
 
<locale> 
  <locale language="en"> 
 
The <b>type</b> of the <code>script</code> has to be "<code>leohtml/javascript</code>". 
 
<p> 
 By using the <b>name</b> option you can define that this code has to 
 be processed by the interpreter of the defined name. 
 If no Interpreter with this name exist a complete new independent interpreter 
 will be created. 
</p> 
 
  </locale> 
  <locale language="de"> 
 
Der Typ des <code>script</code> Tags muß immer "<code>leohtml/javascript</code>" sein. 
 
<p> 
 Wenn du die <b>name</b> Option nutzt dann wird dieser Code von dem Interpreter mit diesem 
 Namen ausgeführt. Existiert ein Interpreter mit solchen Namen noch nicht wird ein 
 neuer, komplett unabhängiger, Interpreter kreiert. 
</p> 
 
  </locale> 
</locale> 
 
<example mode="fixed"> 
<char latin1> 
 
<script type="leohtml/javascrip"> 
   
function foo( a, b c ) { 
  print( "a:", a, "b:", b, "c:" ); 
} 
 
</scrip> 
 
</char> 
</example> 
 
 
</section> 
 
<!-- ************************* --> 
 
<section link="/interpreter/function" local="function"> 
 
<locale> 
  <locale language="en"> 
 
The <code>script</code> tag is thought for defining functions. 
For calling them this tag should be used. 
 
  </locale> 
  <locale language="de"> 
 
Das <code>script</code> Tag ist dafür gedacht, dass innerhalb des 
Tags Funktionen definiert werden. Für das Aufrufen dieser sollte 
dieses Tag verwendet werden. 
 
  </locale> 
</locale> 
 
<definition title="Function Tag Definition:"> 
<include file="function.def"> 
</definition> 
 
<locale> 
  <locale language="en"> 
 
<p> 
 At the <b>call</b> option some javascript code can be given. 
 If not the tag does nothing useful. 
</p> 
<p> 
 At the <b>type</b> option you can declare the name of the interpreter 
 that has to be used. You can declare the name by setting it as option too: 
</p> 
 
  </locale> 
  <locale language="de"> 
 
<p> 
 Bei der <b>call</b> Option sollte JavaScript Code angegeben werden, 
 ansonsten macht dieses Tag nämlich recht wenig Sinn. 
</p> 
<p> 
 Bei der <b>type</b> Option kann, wenn notwendig der Name des zu verwendenden Interpreters 
 angegeben werden. Dieser Name kann auch pur im Tag als Option stehen: 
</p> 
 
 </locale> 
</locale> 
 
<example mode="sfixed"> 
<lang de text="// Der zu verwendende Interpeter hat den Namen \"foobar\""> 
<lang en text="// The interpreter that has to be used has the name \"foobar\""> 
 
<br><br> 
 
<char latin1> 
  <function call="do_something( 'hello' );" foobar> 
</char> 
 
<br><br> 
 
<lang en text="// alternate methode"> 
<lang de text="// andere Methode"> 
<br> 
 
<char latin1> 
  <function call="do_something( 'hello' );" type="foobar"> 
</char> 
<br> 
 
</example> 
 
</section> 
 
                  
    



Diese Seite wurde von King Leo kreiert. Seitengenerator Leo<HTML> Version 0.99.0 .