SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
Keywords & Symbols (Draft 17)

ALPHA Script common keywords among the most well known programming languages
categorized based on programming logic.


Boolean
      1.    AND                –              Logical "and"
      2.    NOT                –              Logical "not"
      3.    OR                 –              Logical "or"
      4.    XOR                ­              Logical "xor"
      5.    TRUE               ­              Logical "true"
      6.    FALSE              ­              Logical "false"



Bit
      1.  SHIFT                –              Bit shift



Mathematics
      1. NULL                  ­              Non existent value



Control
      1.   IF                  ­              Check if a condition is true
      2.   ELSE                ­              Check if a condition is otherwise
      3.   WHILE               ­              Loop until a condition is true
      4.   BREAK               ­              Break the while loop
      5.   CONTINUE            ­              Jump a loop and continue to the next
      6.   TRY                 ­              Error inspection block
      7.   CATCH               ­              Error handling block
      8.   EXIT                ­              Immediate exit from the program



Results
      1. RETURN               ­              Return a result from a function
ALPHA Script specific keywords categorized based on programming logic.


Declarations
   1.    ALIAS           ­            Create ALPHA Script commands aliases
   2.    DIRECTIVE       ­            Specify options for the target language
   3.    VAR             ­            Declare a variables
   4.    ARRAY           ­            Declare an array of variables



Structure
   1.    PACKAGE         ­            Encapsulate the program under a package
   2.    USE             ­            Use an existing package for a program
   3.    BEGIN           ­            Begin of a code segment
   4.    END             ­            End of a code segment



Control
   1.    INPUT           ­            Input data from a source
   2.    OUTPUT          ­            Output data to a target
   3.    SET             ­            Set a value to a variable or an array element
   4.    CALL            ­            Call a function or a class method
   5.    LOOP            ­            Loop for specified iterations
   6.    COUNTER         ­            Iterations counter



Class
   1.  CLASS             ­            Create a new class



Function
   1.  FUNCTION          ­            Create a new function



Method
   1.  METHOD            ­            Create a new method



Errors & Exceptions
   1.  DEBUG             ­            Log errors and exceptions
Utilities
   1.   DB          ­    Database connections, SQL and ORM
   2.   NET         ­    Network connections and communication
   3.   FILE        ­    Open, write, append and delete files
   4.   SECURITY    ­    Security, encryption and decryption
   5.   GRAPHICS    ­    Graphics interface
   6.   SOUND       ­    Sound interface
   7.   SYSTEM      ­    System interface
   8.   VIRTUAL     ­    Virtual interface



Show
   1.  PRINT        ­    Print anything to an output device
ALPHA Script symbols categorized based on programming logic.


Mathematics
   1.     +
   2.     ­
   3.     *
   4.     /
   5.     %



Comparisons
   1.     =
   2.     >
   3.     <
   4.     !



Delimiters
   1.  .
   2.  ,



Strings
   1.  "
   2.  '



Functions Arguments
   1.  (
   2.  )



Arrays
   1.  [
   2.  ]



Comments
   1.  # … #
ALPHA Script tags for embedding in HTML 4/5.


   1.  <@
   2.  @>
ALPHA Script keywords explanation. Please note that ALPHA Script is "case insensitive" but
the prototype defines the keywords in capital letters without being restrictive.


AND, NOT, OR, XOR
These are simple operands that can only exist in the middle of two phrases.



TRUE, FALSE
These are simple representations of logical "true" and logical "false" and can be 
used in any condition.



SHIFT
This operand is only for bit operations.



NULL
This operand symbolizes the empty space and it can be used in any expression.



IF, ELSE
These keywords – also known as the "IF – ELSE" blocks ­ are used to check if a 
condition   is   valid   or   not.   Keyword   "ELSE"   can   only   be   used   in   conjunction   with 
keyword "IF".



WHILE, BREAK, CONTINUE
These keywords are used to loop under a condition, to break the loop and jump to a 
next   iteration   of   the   loop.   Keyword   "WHILE"   must   always   be   followed   by   a 
condition. Keywords "BREAK" and "CONTINUE" can be used in conjunction with "IF ­ 
ELSE" blocks.



TRY, CATCH
These keywords – also known as the "TRY – CATCH" blocks ­ are used to inspect if 
an exception or an error was raised during the execution inside the "TRY" block 
and   then   passes   the   program   flow   to   the   "CATCH"   block   where   the   programmer   can 
handle the problem in various ways.


EXIT
This   keyword  exits  the   program  and   stops   any   further   operations.   Optionally,   it 
can report an exit code which is defined by the programmer. The exit code can be a 
number or any UTF­8 string.



RETURN
This keyword returns a result from a function. It can only be used in the body of 
a "FUNCTION" and it may return any number or any string or "NULL".
ALIAS
This keyword is an innovation of ALPHA Script. With keyword "ALIAS" the programmer 
can generate aliases of ALPHA Script keywords and use them in the program. This is 
to   support   programmers   with   different   programming   skills   and   styles   and   to   let 
them re­map the available dictionary the way they like.



DIRECTIVE
This keyword is very important for declaring to the converters the "nature" of the 
program.   For   example   if   the   program   is   supposed   to   be   using   threads   then   the 
programmer has to choose an appropriate predefined directive or explicitly define 
the   programming   language   in   which   ALPHA   Script   must   be   converted   for   better 
results.   ALPHA   Script   does   not   support   many   of   the   features   of   the   programming 
languages – and should not ­ because it is an abstract meta­language and therefore 
this mechanism is essential.



VAR
This keyword declares a new variable of an abstract type which has a "NULL" value. 
ALPHA   Script   is   typeless   and   any   variable   is   actually   an   object.   Every   new 
variable inherits a set of useful abstract methods that have an impact on the data 
they   store.   Finally,   "VAR"   declares   two   types   of   variables   in   the   program, 
"GLOBAL" and "LOCAL" which have a global scope and a local scope respectively and 
two   types   of   variables   in   a   class,   "PUBLIC"   and   "PRIVATE"   which   have   a   public 
scope and a private scope respectively.



ARRAY
This   keyword   declares   a   new   array   of   variables.   Each   element   corresponds   to   an 
abstract type, an object, which has a "NULL" value and is typeless. As with "VAR", 
"ARRAY" elements inherit a set of useful abstract methods that have an impact on 
the   data   they   store.   Finally,  "ARRAY"   like  "VAR",   declares   "GLOBAL"   and  "LOCAL" 
variables in the program or "PUBLIC" and "PRIVATE" in a class.



PACKAGE
This   keyword   encapsulates   an   ALPHA   Script   program   in   a   package.   Many   packages, 
much like units, can be used in order to separate and divide a big ALPHA Script 
program into smaller modules.


USE
This keyword imports and uses a preexisting package.



BEGIN, END
These   keywords   –   also   known   as   the   "BEGIN   –   END"   blocks   –   are   used   to   set   the 
entry point and the exit point of a code segment respectively. These keywords can 
be used inside an "IF – ELSE" block, a "WHILE", a "TRY – CATCH" block, a "LOOP", 
a "FUNCTION" body, a "METHOD" body and a "CLASS" body.
INPUT, OUTPUT
These   keywords   get   data   from   a   source   and   send   data   to   a   source   respectively. 
Keywords   "INPUT"   and   "OUTPUT"   are   abstract   representations   of   any   I/O   in   any 
programming language. Finally, "INPUT" and "OUTPUT" can represent any device such 
as   a   keyboard   and   a   screen   and   for   this   purpose   there   are   a   set   of   predefined 
options to use with.



SET
This keyword sets a value to a "VAR" or to an "ARRAY" element.



CALL
This keyword calls a function or a class method by its name passing any arguments 
and stores the result to a "VAR" or to an "ARRAY".



LOOP, COUNTER
These   keywords   are   combined   to   loop   for   a   specified   number   of   iterations. 
Optionally,   a   positive   or   negative   step   may   be   used   with   the   "LOOP"   keyword. 
Keyword "COUNTER" automatically increases for each iteration. The default value of 
"COUNTER" is zero.



CLASS
This keyword declares a class. The class may be either dynamic or static.



FUNCTION
This keyword declares and defines a new function. The name of the function can be 
any string that starts with a letter and contains numbers and symbols with a few 
exceptions. The parameters must be enclosed in parentheses. A function must always 
return   a   value   so   "FUNCTION"   is   always   used   in   conjunction   with   the   "RETURN" 
keyword.



METHOD
This keyword declares and defines a new class method. The name of the method can 
be any string that starts with a letter and contains numbers and symbols with a 
few   exceptions.   The   parameters   must   be   enclosed   in   parentheses.   A   method   must 
always exist in a class and may or may not return a value.



DEBUG
This keyword is used when a programmer wants to log errors and exceptions. This 
keyword   can   be   used   anywhere   in   the   program   and   may   be   converted   with   many 
different meanings among programming languages. For example in .NET languages this 
might be converted as the command that prints the errors and the exceptions in the 
console.
DB
This   keyword   is   used   to   connect   to   a   database,   to   execute   queries   and   to   map 
database   tables   as  objects.   Keyword  "DB"   can   convert   database   tables   with   their 
data into an ORM that can be represented as a multi­dimensional "ARRAY" which is 
like ordered maps in PHP.



NET
This   keyword   is   used   to   enable   network   connectivity   and   communication   with   the 
Internet. Keyword "NET" is an abstraction of any network communication protocol.



FILE
This keyword is used to open, read, write, append and delete files. Keyword "FILE" 
is an abstraction of any file in any file system.



SECURITY
This   keyword   is   used   to   enable   security   mechanisms,   encryption   and   decryption. 
Keyword "SECURITY" is an abstraction of any security protocol.



GRAPHICS
This keyword is used to interface with the graphics subsystem. Keyword "GRAPHICS" 
is an abstraction of any graphics card.



SOUND
This keyword is used to interface with the sound subsystem. Keyword "SOUND" is an 
abstraction of any sound card.



SYSTEM
This keyword is used to get or set system parameters and to execute applications. 
Keyword "SYSTEM" is an abstraction of any computer system.



VIRTUAL
This   keyword   enables   the   programmer   to   map   virtual   functions   on   virtual 
interfaces. Keyword "VIRTUAL" is an abstraction of any software or hardware.



PRINT
This   keyword   is   used   to   print   anything   in   the   specified   output   device.   The 
programmer can choose among a set of predefined outputs.
ALPHA Script keywords syntax.


AND, NOT, OR, XOR
expression [AND / NOT / OR / XOR] expression



TRUE, FALSE
expression [= ! < >] [TRUE / FALSE]



SHIFT
SHIFT:[LEFT] / [RIGHT] [number]



NULL
…NULL…



IF, ELSE
IF expression
      BEGIN
            …
      END

ELSE
        BEGIN
                …
        END



WHILE, BREAK, CONTINUE
WHILE expression
      BEGIN
            IF expression
                  BEGIN
                        BREAK
                  END

                ELSE
                       BEGIN
                               CONTINUE
                       END
        END
TRY, CATCH
TRY
        BEGIN
                …
        END

CATCH
        BEGIN
                …
        END



EXIT
EXIT {[number] / ['string' or "string"]}



RETURN
RETURN NULL / [number] / ['string' or "string"]



ALIAS
ALIAS [ALPHA Script keyword] [New keyword name]



DIRECTIVE
DIRECTIVE [Any predefined directive] / [Any target language name]

Predefined directives
      1. GENERAL
      2. AVERAGE
      3. SPEED
      4. SPACE
      5. THREADS

Target language names examples (The list may contain any programming language)
      1. Ada
      2. C
      3. PHP
      4. VB.NET
      5. Python



VAR
1. VAR:[GLOBAL] / [LOCAL] [Variable name]
2. VAR:[PUBLIC] / [PRIVATE] [Variable name]



ARRAY
1. ARRAY:[GLOBAL] / [LOCAL] [Array name]
2. ARRAY:[PUBLIC] / [PRIVATE] [Array name]
VAR, ARRAY - Inherited Functions
1. [Variable name] / [Array name]{[index]}.[Inherited function]
2. [Class name].[Variable name] / [Array name]{[index]}.[Inherited function]

Inherited functions
      1.  REVERSE – Reverses a string or a number
          Returns: [string] / NULL
      2.  EXPLODE – Breaks a string into an array (Only for "VAR")
          Returns: ARRAY / NULL
      3.  IMPLODE – Returns a string from an array (Only for "ARRAY")
          Returns: [string] / NULL
      4.  SORT:ASC / DESC – Returns a sorted array (Only for "ARRAY")
          Returns: [A sorted ARRAY] / FALSE
      5.  INSERT [value] – Returns a new array (Only for "ARRAY")
          Returns: [A new ARRAY] / FALSE
      6.  REMOVE:INDEX [index] / VALUE [value] – Returns a new array 
          (Only for "ARRAY")
          Returns: [A new ARRAY] / FALSE
      7.  CLEAR – Returns a null array (Only for "ARRAY")
          Returns: [A null ARRAY] / FALSE
      8.  TRIM:LEFT / RIGHT / BOTH – Strips white spaces
          Returns: [string] / NULL
      9.  LEN – Returns the length of a string or "ARRAY" elements
          Returns: [number] / NULL
      10. SUBSTR [start] [end] – Returns a substring
          Returns: [string] / NULL
      11. FIND [string] – Finds a string and returns its position
          Returns: [number] / FALSE
      12. REPLACE [Existing string] [New string] – Replaces a string
          Returns: TRUE / FALSE
      13. ASCII [char] – Converts a character into an ASCII value
          Returns: [number] / FALSE



PACKAGE
PACKAGE [name]



USE
USE [name]



BEGIN, END
BEGIN
        …
END
INPUT, OUTPUT
INPUT / OUTPUT:[Any predefined I/O] [value] / [variable]

Predefined inputs
      1. KEYBOARD
      2. MOUSE
      3. GAMEPAD
      4. MICROPHONE
      5. CAMERA
      6. FLOPPY
      7. ODD
      8. HDD

Predefined outputs
      1. SCREEN
      2. PRINTER
      3. SPEAKERS
      4. CONSOLE
      5. FLOPPY
      6. ODD
      7. HDD



SET
1. SET [VAR] / [ARRAY[index]] [value]
2. SET [Class name].[VAR] / [ARRAY[index]] [value] – Only for [PUBLIC] scope



CALL
1. CALL [Function name] {[(arg_1, arg_2,…)]} [VAR] / [ARRAY]
2. CALL [Class name].[Method name] {[(arg_1, arg_2,…)]} [VAR] / [ARRAY]



LOOP, COUNTER
LOOP [number] {[+ / ­] [step]}
      BEGIN
            …
      END

COUNTER – Auto increment counter for each iteration (Use it to get iterations)



CLASS
CLASS:[DYNAMIC] / [STATIC] [name]
      BEGIN
            …
      END



FUNCTION
FUNCTION [name] {[(arg_1, arg_2,…)]}
      BEGIN
            …
            RETURN [value] / NULL
      END
METHOD
METHOD:[PUBLIC] / [PRIVATE] [name] {[(arg_1, arg_2,…)]}
      BEGIN
            …
            {RETURN [value] / NULL}
      END



DEBUG
DEBUG – Use it anywhere in the program to start logging



DB
1. DB.CONNECT [host] [port] {[db]} [VAR] – Returns: TRUE / FALSE
2. DB.DISCONNECT [host] [VAR] – Returns: TRUE / FALSE
3. DB.SQL [query] [VAR] – Returns: [data] / TRUE / FALSE
4. DB.ROW [table] [VAR] – Returns: [data per row] / FALSE
5. DB.ORM [table] [VAR] – Returns: Multi­dimensional ARRAY / FALSE
6. DB.EXECUTE [A stored procedure] [VAR] – Returns: [data] / FALSE
7. DB.ERROR [VAR] – Returns: [A database error] / NULL



NET
1. NET.CONNECT [host] [port] [VAR] – Returns: TRUE / FALSE
2. NET.DISCONNECT [host] [VAR] – Returns: TRUE / FALSE
3. NET.GET [url] [VAR] – Returns: [data] / FALSE
4. NET.SEND [data] [VAR] – Returns: TRUE / FALSE
5. NET.ERROR [VAR] – Returns: [A network error] / NULL



FILE
1. FILE.OPEN [string] [VAR] – Returns: [File as string] / FALSE
2. FILE.READ [string] [VAR] – Returns: [String per line of file] / FALSE
3. FILE.WRITE [string] [VAR] – Returns: TRUE / FALSE
4. FILE.APPEND [string] [VAR] – Returns: TRUE / FALSE
5. FILE.DELETE [string] [VAR] – Returns: TRUE / FALSE
6. FILE.ERROR [VAR] – Returns: [A file I/O error] / NULL



SECURITY
1. SECURITY.HASH [string] [VAR] – Returns: [hash] / FALSE
2. SECURITY.ENCRYPT [string] [VAR] – Returns: [Encrypted data] / FALSE
3. SECURITY.DECRYPT [Encrypted data] [VAR] – Returns: [string] / FALSE
4. SECURITY.ERROR [VAR] – Returns: [A security error] / NULL



GRAPHICS
1. GRAPHICS.BIT [number] [VAR] – Returns: TRUE / FALSE
2. GRAPHICS.RESOLUTION [number] [number] [VAR] – Returns: TRUE / FALSE
3. GRAPHICS.MOUSE [0 / 1] [VAR] – Returns: TRUE / FALSE
4. GRAPHICS.ERROR [VAR] – Returns: [A graphics error] / NULL
SOUND
1. SOUND.BIT [number] [VAR] – Returns: TRUE / FALSE
2. SOUND.RESOLUTION [number] [VAR] – Returns: TRUE / FALSE
3. SOUND.MUTE [0 / 1] [VAR] – Returns: TRUE / FALSE
4. SOUND.ERROR [VAR] – Returns: [A sound error] / NULL



SYSTEM
1. SYSTEM.CPU:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE
2. SYSTEM.RAM:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE
3. SYSTEM.HDD:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE
4. SYSTEM.RUN [Application name] [parameters] [VAR] – Returns: TRUE / FALSE
5. SYSTEM.ERROR [VAR] – Returns: [A system error] / NULL



VIRTUAL
VIRTUAL [Virtual interface]

[Virtual interface].[Virtual function] {([arg 1], [arg 2],…)} – Vendor specific



PRINT
PRINT:[Any predefined output] [value] / [variable]

Predefined outputs
      1. SCREEN
      2. PRINTER
      3. CONSOLE




George Delaportas (G0D)
---
CEO & Founder of localhost Ltd.
Informatics & Computer Engineer
MSc in Data Communications & Networking
PhD in Digital Forensics

Contenu connexe

Tendances

Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
Mastering your Eclipse IDE - Java tooling, Tips & Tricks!Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
Noopur Gupta
 
9781111530532 ppt ch06
9781111530532 ppt ch069781111530532 ppt ch06
9781111530532 ppt ch06
Terry Yoast
 
9781111530532 ppt ch04
9781111530532 ppt ch049781111530532 ppt ch04
9781111530532 ppt ch04
Terry Yoast
 
9781111530532 ppt ch13
9781111530532 ppt ch139781111530532 ppt ch13
9781111530532 ppt ch13
Terry Yoast
 
9781111530532 ppt ch03
9781111530532 ppt ch039781111530532 ppt ch03
9781111530532 ppt ch03
Terry Yoast
 
9781111530532 ppt ch11
9781111530532 ppt ch119781111530532 ppt ch11
9781111530532 ppt ch11
Terry Yoast
 
9781111530532 ppt ch05
9781111530532 ppt ch059781111530532 ppt ch05
9781111530532 ppt ch05
Terry Yoast
 
C#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New FeaturesC#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New Features
techfreak
 

Tendances (20)

Understanding Annotations in Java
Understanding Annotations in JavaUnderstanding Annotations in Java
Understanding Annotations in Java
 
Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013
 
Cordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to JavascriptCordova training : Day 3 - Introduction to Javascript
Cordova training : Day 3 - Introduction to Javascript
 
Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
Mastering your Eclipse IDE - Java tooling, Tips & Tricks!Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
Mastering your Eclipse IDE - Java tooling, Tips & Tricks!
 
PHP 5
PHP 5PHP 5
PHP 5
 
Java annotations
Java annotationsJava annotations
Java annotations
 
Annotations
AnnotationsAnnotations
Annotations
 
JDT embraces lambda expressions
JDT embraces lambda expressionsJDT embraces lambda expressions
JDT embraces lambda expressions
 
Operating System Practice : Meeting 9 pemrograman shell - a -slide
Operating System Practice : Meeting 9   pemrograman shell - a -slideOperating System Practice : Meeting 9   pemrograman shell - a -slide
Operating System Practice : Meeting 9 pemrograman shell - a -slide
 
9781111530532 ppt ch06
9781111530532 ppt ch069781111530532 ppt ch06
9781111530532 ppt ch06
 
9781111530532 ppt ch04
9781111530532 ppt ch049781111530532 ppt ch04
9781111530532 ppt ch04
 
The swift programming language
The swift programming languageThe swift programming language
The swift programming language
 
9781111530532 ppt ch13
9781111530532 ppt ch139781111530532 ppt ch13
9781111530532 ppt ch13
 
Java 8 tooling in Eclipse
Java 8 tooling in EclipseJava 8 tooling in Eclipse
Java 8 tooling in Eclipse
 
Eclipse Luna - What's New!
Eclipse Luna - What's New!Eclipse Luna - What's New!
Eclipse Luna - What's New!
 
9781111530532 ppt ch03
9781111530532 ppt ch039781111530532 ppt ch03
9781111530532 ppt ch03
 
9781111530532 ppt ch11
9781111530532 ppt ch119781111530532 ppt ch11
9781111530532 ppt ch11
 
9781111530532 ppt ch05
9781111530532 ppt ch059781111530532 ppt ch05
9781111530532 ppt ch05
 
C#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New FeaturesC#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New Features
 
Java Annotation
Java AnnotationJava Annotation
Java Annotation
 

Similaire à ALPHA Script - Keywords and Symbols

Introduction to scala for a c programmer
Introduction to scala for a c programmerIntroduction to scala for a c programmer
Introduction to scala for a c programmer
Girish Kumar A L
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, android
i i
 
Chapter1pp
Chapter1ppChapter1pp
Chapter1pp
J. C.
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
Rich Helton
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using Reflection
Ganesh Samarthyam
 

Similaire à ALPHA Script - Keywords and Symbols (20)

Introduction to scala for a c programmer
Introduction to scala for a c programmerIntroduction to scala for a c programmer
Introduction to scala for a c programmer
 
lecture 6
 lecture 6 lecture 6
lecture 6
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
presentationofswift.pptx
presentationofswift.pptxpresentationofswift.pptx
presentationofswift.pptx
 
Scala final ppt vinay
Scala final ppt vinayScala final ppt vinay
Scala final ppt vinay
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, android
 
Chapter1pp
Chapter1ppChapter1pp
Chapter1pp
 
FUNCTIONS.pptx
FUNCTIONS.pptxFUNCTIONS.pptx
FUNCTIONS.pptx
 
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
Evaluate And Analysis of ALGOL, ADA ,PASCAL Programming Languages
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
 
Programming in Java: Getting Started
Programming in Java: Getting StartedProgramming in Java: Getting Started
Programming in Java: Getting Started
 
Gwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing APIGwt and JSR 269's Pluggable Annotation Processing API
Gwt and JSR 269's Pluggable Annotation Processing API
 
Unit 1 notes.pdf
Unit 1 notes.pdfUnit 1 notes.pdf
Unit 1 notes.pdf
 
a basic java programming and data type.ppt
a basic java programming and data type.ppta basic java programming and data type.ppt
a basic java programming and data type.ppt
 
14274730 (1).ppt
14274730 (1).ppt14274730 (1).ppt
14274730 (1).ppt
 
Weird Plsql
Weird PlsqlWeird Plsql
Weird Plsql
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using Reflection
 
presentation_intro_to_python
presentation_intro_to_pythonpresentation_intro_to_python
presentation_intro_to_python
 

Plus de PROBOTEK

SECURICON - February 2016
SECURICON - February 2016SECURICON - February 2016
SECURICON - February 2016
PROBOTEK
 
SECURICON - September 14
SECURICON - September 14SECURICON - September 14
SECURICON - September 14
PROBOTEK
 

Plus de PROBOTEK (20)

AiRFLOW - Drone Services Platform
AiRFLOW - Drone Services PlatformAiRFLOW - Drone Services Platform
AiRFLOW - Drone Services Platform
 
PROBOTEK - Profile
PROBOTEK - ProfilePROBOTEK - Profile
PROBOTEK - Profile
 
ProboTEK - Gray Mantis (Security Drone System)
ProboTEK - Gray Mantis (Security Drone System)ProboTEK - Gray Mantis (Security Drone System)
ProboTEK - Gray Mantis (Security Drone System)
 
ProboTEK - Fire Guardian (Powered by AiRFLOW)
ProboTEK - Fire Guardian (Powered by AiRFLOW)ProboTEK - Fire Guardian (Powered by AiRFLOW)
ProboTEK - Fire Guardian (Powered by AiRFLOW)
 
ProboTEK - Vitrina Store
ProboTEK - Vitrina StoreProboTEK - Vitrina Store
ProboTEK - Vitrina Store
 
Shoprise Me! - Presentation
Shoprise Me! - PresentationShoprise Me! - Presentation
Shoprise Me! - Presentation
 
ConnectiKR0N - Presentation for LiDAR
ConnectiKR0N - Presentation for LiDARConnectiKR0N - Presentation for LiDAR
ConnectiKR0N - Presentation for LiDAR
 
ConnectiKR0N - Presentation
ConnectiKR0N - PresentationConnectiKR0N - Presentation
ConnectiKR0N - Presentation
 
AiRagroTEK.net - Presentation
AiRagroTEK.net - PresentationAiRagroTEK.net - Presentation
AiRagroTEK.net - Presentation
 
HASH-box - Business Plan Presentation
HASH-box - Business Plan PresentationHASH-box - Business Plan Presentation
HASH-box - Business Plan Presentation
 
George Delaportas - VEDICOR (Hacking CV)
George Delaportas - VEDICOR (Hacking CV)George Delaportas - VEDICOR (Hacking CV)
George Delaportas - VEDICOR (Hacking CV)
 
G.A.N.N - Documentation
G.A.N.N - DocumentationG.A.N.N - Documentation
G.A.N.N - Documentation
 
Z0C (Pitch Deck)
Z0C (Pitch Deck)Z0C (Pitch Deck)
Z0C (Pitch Deck)
 
Z0C in the Insurance Market
Z0C in the Insurance MarketZ0C in the Insurance Market
Z0C in the Insurance Market
 
Z0C - Presentation (EN)
Z0C - Presentation (EN)Z0C - Presentation (EN)
Z0C - Presentation (EN)
 
Hash box - Outline Presentation
Hash box - Outline PresentationHash box - Outline Presentation
Hash box - Outline Presentation
 
SECURICON - February 2016
SECURICON - February 2016SECURICON - February 2016
SECURICON - February 2016
 
SECURICON - September 14
SECURICON - September 14SECURICON - September 14
SECURICON - September 14
 
xDSL Signal Encoding Efficiency
xDSL Signal Encoding EfficiencyxDSL Signal Encoding Efficiency
xDSL Signal Encoding Efficiency
 
Analysis on Common Network Attacks & Vulnerability Scanners
Analysis on Common Network Attacks & Vulnerability ScannersAnalysis on Common Network Attacks & Vulnerability Scanners
Analysis on Common Network Attacks & Vulnerability Scanners
 

Dernier

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

ALPHA Script - Keywords and Symbols

  • 1. Keywords & Symbols (Draft 17) ALPHA Script common keywords among the most well known programming languages categorized based on programming logic. Boolean 1.  AND   –  Logical "and" 2.  NOT  –  Logical "not" 3.  OR  –  Logical "or" 4.  XOR ­ Logical "xor" 5.  TRUE  ­  Logical "true" 6.  FALSE  ­  Logical "false" Bit 1.  SHIFT  –  Bit shift Mathematics 1. NULL     ­     Non existent value Control 1. IF  ­  Check if a condition is true 2. ELSE  ­ Check if a condition is otherwise 3. WHILE  ­  Loop until a condition is true 4. BREAK  ­  Break the while loop 5. CONTINUE  ­  Jump a loop and continue to the next 6. TRY  ­  Error inspection block 7. CATCH  ­  Error handling block 8. EXIT  ­  Immediate exit from the program Results 1. RETURN       ­         Return a result from a function
  • 2. ALPHA Script specific keywords categorized based on programming logic. Declarations 1.  ALIAS  ­  Create ALPHA Script commands aliases 2.  DIRECTIVE  ­  Specify options for the target language 3.  VAR  ­  Declare a variables 4.  ARRAY  ­  Declare an array of variables Structure 1.  PACKAGE  ­  Encapsulate the program under a package 2.  USE  ­  Use an existing package for a program 3.  BEGIN  ­  Begin of a code segment 4.  END  ­  End of a code segment Control 1.  INPUT  ­  Input data from a source 2.  OUTPUT  ­  Output data to a target 3.  SET  ­  Set a value to a variable or an array element 4.  CALL  ­  Call a function or a class method 5.  LOOP  ­  Loop for specified iterations 6.  COUNTER  ­  Iterations counter Class 1.  CLASS  ­  Create a new class Function 1.  FUNCTION  ­  Create a new function Method 1.  METHOD  ­  Create a new method Errors & Exceptions 1.  DEBUG  ­  Log errors and exceptions
  • 3. Utilities 1. DB  ­  Database connections, SQL and ORM 2. NET  ­  Network connections and communication 3. FILE  ­  Open, write, append and delete files 4. SECURITY  ­  Security, encryption and decryption 5. GRAPHICS  ­  Graphics interface 6. SOUND  ­  Sound interface 7. SYSTEM  ­  System interface 8. VIRTUAL  ­  Virtual interface Show 1.  PRINT  ­  Print anything to an output device
  • 4. ALPHA Script symbols categorized based on programming logic. Mathematics 1.  + 2.  ­ 3.  * 4.  / 5.  % Comparisons 1.  = 2.  > 3.  < 4.  ! Delimiters 1.  . 2.  , Strings 1.  " 2.  ' Functions Arguments 1.  ( 2.  ) Arrays 1.  [ 2.  ] Comments 1.  # … #
  • 5. ALPHA Script tags for embedding in HTML 4/5. 1.  <@ 2.  @>
  • 6. ALPHA Script keywords explanation. Please note that ALPHA Script is "case insensitive" but the prototype defines the keywords in capital letters without being restrictive. AND, NOT, OR, XOR These are simple operands that can only exist in the middle of two phrases. TRUE, FALSE These are simple representations of logical "true" and logical "false" and can be  used in any condition. SHIFT This operand is only for bit operations. NULL This operand symbolizes the empty space and it can be used in any expression. IF, ELSE These keywords – also known as the "IF – ELSE" blocks ­ are used to check if a  condition   is   valid   or   not.   Keyword   "ELSE"   can   only   be   used   in   conjunction   with  keyword "IF". WHILE, BREAK, CONTINUE These keywords are used to loop under a condition, to break the loop and jump to a  next   iteration   of   the   loop.   Keyword   "WHILE"   must   always   be   followed   by   a  condition. Keywords "BREAK" and "CONTINUE" can be used in conjunction with "IF ­  ELSE" blocks. TRY, CATCH These keywords – also known as the "TRY – CATCH" blocks ­ are used to inspect if  an exception or an error was raised during the execution inside the "TRY" block  and   then   passes   the   program   flow   to   the   "CATCH"   block   where   the   programmer   can  handle the problem in various ways. EXIT This   keyword  exits  the   program  and   stops   any   further   operations.   Optionally,   it  can report an exit code which is defined by the programmer. The exit code can be a  number or any UTF­8 string. RETURN This keyword returns a result from a function. It can only be used in the body of  a "FUNCTION" and it may return any number or any string or "NULL".
  • 7. ALIAS This keyword is an innovation of ALPHA Script. With keyword "ALIAS" the programmer  can generate aliases of ALPHA Script keywords and use them in the program. This is  to   support   programmers   with   different   programming   skills   and   styles   and   to   let  them re­map the available dictionary the way they like. DIRECTIVE This keyword is very important for declaring to the converters the "nature" of the  program.   For   example   if   the   program   is   supposed   to   be   using   threads   then   the  programmer has to choose an appropriate predefined directive or explicitly define  the   programming   language   in   which   ALPHA   Script   must   be   converted   for   better  results.   ALPHA   Script   does   not   support   many   of   the   features   of   the   programming  languages – and should not ­ because it is an abstract meta­language and therefore  this mechanism is essential. VAR This keyword declares a new variable of an abstract type which has a "NULL" value.  ALPHA   Script   is   typeless   and   any   variable   is   actually   an   object.   Every   new  variable inherits a set of useful abstract methods that have an impact on the data  they   store.   Finally,   "VAR"   declares   two   types   of   variables   in   the   program,  "GLOBAL" and "LOCAL" which have a global scope and a local scope respectively and  two   types   of   variables   in   a   class,   "PUBLIC"   and   "PRIVATE"   which   have   a   public  scope and a private scope respectively. ARRAY This   keyword   declares   a   new   array   of   variables.   Each   element   corresponds   to   an  abstract type, an object, which has a "NULL" value and is typeless. As with "VAR",  "ARRAY" elements inherit a set of useful abstract methods that have an impact on  the   data   they   store.   Finally,  "ARRAY"   like  "VAR",   declares   "GLOBAL"   and  "LOCAL"  variables in the program or "PUBLIC" and "PRIVATE" in a class. PACKAGE This   keyword   encapsulates   an   ALPHA   Script   program   in   a   package.   Many   packages,  much like units, can be used in order to separate and divide a big ALPHA Script  program into smaller modules. USE This keyword imports and uses a preexisting package. BEGIN, END These   keywords   –   also   known   as   the   "BEGIN   –   END"   blocks   –   are   used   to   set   the  entry point and the exit point of a code segment respectively. These keywords can  be used inside an "IF – ELSE" block, a "WHILE", a "TRY – CATCH" block, a "LOOP",  a "FUNCTION" body, a "METHOD" body and a "CLASS" body.
  • 8. INPUT, OUTPUT These   keywords   get   data   from   a   source   and   send   data   to   a   source   respectively.  Keywords   "INPUT"   and   "OUTPUT"   are   abstract   representations   of   any   I/O   in   any  programming language. Finally, "INPUT" and "OUTPUT" can represent any device such  as   a   keyboard   and   a   screen   and   for   this   purpose   there   are   a   set   of   predefined  options to use with. SET This keyword sets a value to a "VAR" or to an "ARRAY" element. CALL This keyword calls a function or a class method by its name passing any arguments  and stores the result to a "VAR" or to an "ARRAY". LOOP, COUNTER These   keywords   are   combined   to   loop   for   a   specified   number   of   iterations.  Optionally,   a   positive   or   negative   step   may   be   used   with   the   "LOOP"   keyword.  Keyword "COUNTER" automatically increases for each iteration. The default value of  "COUNTER" is zero. CLASS This keyword declares a class. The class may be either dynamic or static. FUNCTION This keyword declares and defines a new function. The name of the function can be  any string that starts with a letter and contains numbers and symbols with a few  exceptions. The parameters must be enclosed in parentheses. A function must always  return   a   value   so   "FUNCTION"   is   always   used   in   conjunction   with   the   "RETURN"  keyword. METHOD This keyword declares and defines a new class method. The name of the method can  be any string that starts with a letter and contains numbers and symbols with a  few   exceptions.   The   parameters   must   be   enclosed   in   parentheses.   A   method   must  always exist in a class and may or may not return a value. DEBUG This keyword is used when a programmer wants to log errors and exceptions. This  keyword   can   be   used   anywhere   in   the   program   and   may   be   converted   with   many  different meanings among programming languages. For example in .NET languages this  might be converted as the command that prints the errors and the exceptions in the  console.
  • 9. DB This   keyword   is   used   to   connect   to   a   database,   to   execute   queries   and   to   map  database   tables   as  objects.   Keyword  "DB"   can   convert   database   tables   with   their  data into an ORM that can be represented as a multi­dimensional "ARRAY" which is  like ordered maps in PHP. NET This   keyword   is   used   to   enable   network   connectivity   and   communication   with   the  Internet. Keyword "NET" is an abstraction of any network communication protocol. FILE This keyword is used to open, read, write, append and delete files. Keyword "FILE"  is an abstraction of any file in any file system. SECURITY This   keyword   is   used   to   enable   security   mechanisms,   encryption   and   decryption.  Keyword "SECURITY" is an abstraction of any security protocol. GRAPHICS This keyword is used to interface with the graphics subsystem. Keyword "GRAPHICS"  is an abstraction of any graphics card. SOUND This keyword is used to interface with the sound subsystem. Keyword "SOUND" is an  abstraction of any sound card. SYSTEM This keyword is used to get or set system parameters and to execute applications.  Keyword "SYSTEM" is an abstraction of any computer system. VIRTUAL This   keyword   enables   the   programmer   to   map   virtual   functions   on   virtual  interfaces. Keyword "VIRTUAL" is an abstraction of any software or hardware. PRINT This   keyword   is   used   to   print   anything   in   the   specified   output   device.   The  programmer can choose among a set of predefined outputs.
  • 10. ALPHA Script keywords syntax. AND, NOT, OR, XOR expression [AND / NOT / OR / XOR] expression TRUE, FALSE expression [= ! < >] [TRUE / FALSE] SHIFT SHIFT:[LEFT] / [RIGHT] [number] NULL …NULL… IF, ELSE IF expression BEGIN … END ELSE BEGIN … END WHILE, BREAK, CONTINUE WHILE expression BEGIN IF expression BEGIN BREAK END ELSE BEGIN CONTINUE END END
  • 11. TRY, CATCH TRY BEGIN … END CATCH BEGIN … END EXIT EXIT {[number] / ['string' or "string"]} RETURN RETURN NULL / [number] / ['string' or "string"] ALIAS ALIAS [ALPHA Script keyword] [New keyword name] DIRECTIVE DIRECTIVE [Any predefined directive] / [Any target language name] Predefined directives 1. GENERAL 2. AVERAGE 3. SPEED 4. SPACE 5. THREADS Target language names examples (The list may contain any programming language) 1. Ada 2. C 3. PHP 4. VB.NET 5. Python VAR 1. VAR:[GLOBAL] / [LOCAL] [Variable name] 2. VAR:[PUBLIC] / [PRIVATE] [Variable name] ARRAY 1. ARRAY:[GLOBAL] / [LOCAL] [Array name] 2. ARRAY:[PUBLIC] / [PRIVATE] [Array name]
  • 12. VAR, ARRAY - Inherited Functions 1. [Variable name] / [Array name]{[index]}.[Inherited function] 2. [Class name].[Variable name] / [Array name]{[index]}.[Inherited function] Inherited functions 1.  REVERSE – Reverses a string or a number     Returns: [string] / NULL 2.  EXPLODE – Breaks a string into an array (Only for "VAR")     Returns: ARRAY / NULL 3.  IMPLODE – Returns a string from an array (Only for "ARRAY")     Returns: [string] / NULL 4.  SORT:ASC / DESC – Returns a sorted array (Only for "ARRAY")     Returns: [A sorted ARRAY] / FALSE 5.  INSERT [value] – Returns a new array (Only for "ARRAY")     Returns: [A new ARRAY] / FALSE 6.  REMOVE:INDEX [index] / VALUE [value] – Returns a new array      (Only for "ARRAY")     Returns: [A new ARRAY] / FALSE 7.  CLEAR – Returns a null array (Only for "ARRAY")     Returns: [A null ARRAY] / FALSE 8.  TRIM:LEFT / RIGHT / BOTH – Strips white spaces     Returns: [string] / NULL 9.  LEN – Returns the length of a string or "ARRAY" elements     Returns: [number] / NULL 10. SUBSTR [start] [end] – Returns a substring     Returns: [string] / NULL 11. FIND [string] – Finds a string and returns its position     Returns: [number] / FALSE 12. REPLACE [Existing string] [New string] – Replaces a string     Returns: TRUE / FALSE 13. ASCII [char] – Converts a character into an ASCII value     Returns: [number] / FALSE PACKAGE PACKAGE [name] USE USE [name] BEGIN, END BEGIN … END
  • 13. INPUT, OUTPUT INPUT / OUTPUT:[Any predefined I/O] [value] / [variable] Predefined inputs 1. KEYBOARD 2. MOUSE 3. GAMEPAD 4. MICROPHONE 5. CAMERA 6. FLOPPY 7. ODD 8. HDD Predefined outputs 1. SCREEN 2. PRINTER 3. SPEAKERS 4. CONSOLE 5. FLOPPY 6. ODD 7. HDD SET 1. SET [VAR] / [ARRAY[index]] [value] 2. SET [Class name].[VAR] / [ARRAY[index]] [value] – Only for [PUBLIC] scope CALL 1. CALL [Function name] {[(arg_1, arg_2,…)]} [VAR] / [ARRAY] 2. CALL [Class name].[Method name] {[(arg_1, arg_2,…)]} [VAR] / [ARRAY] LOOP, COUNTER LOOP [number] {[+ / ­] [step]} BEGIN … END COUNTER – Auto increment counter for each iteration (Use it to get iterations) CLASS CLASS:[DYNAMIC] / [STATIC] [name] BEGIN … END FUNCTION FUNCTION [name] {[(arg_1, arg_2,…)]} BEGIN … RETURN [value] / NULL END
  • 14. METHOD METHOD:[PUBLIC] / [PRIVATE] [name] {[(arg_1, arg_2,…)]} BEGIN … {RETURN [value] / NULL} END DEBUG DEBUG – Use it anywhere in the program to start logging DB 1. DB.CONNECT [host] [port] {[db]} [VAR] – Returns: TRUE / FALSE 2. DB.DISCONNECT [host] [VAR] – Returns: TRUE / FALSE 3. DB.SQL [query] [VAR] – Returns: [data] / TRUE / FALSE 4. DB.ROW [table] [VAR] – Returns: [data per row] / FALSE 5. DB.ORM [table] [VAR] – Returns: Multi­dimensional ARRAY / FALSE 6. DB.EXECUTE [A stored procedure] [VAR] – Returns: [data] / FALSE 7. DB.ERROR [VAR] – Returns: [A database error] / NULL NET 1. NET.CONNECT [host] [port] [VAR] – Returns: TRUE / FALSE 2. NET.DISCONNECT [host] [VAR] – Returns: TRUE / FALSE 3. NET.GET [url] [VAR] – Returns: [data] / FALSE 4. NET.SEND [data] [VAR] – Returns: TRUE / FALSE 5. NET.ERROR [VAR] – Returns: [A network error] / NULL FILE 1. FILE.OPEN [string] [VAR] – Returns: [File as string] / FALSE 2. FILE.READ [string] [VAR] – Returns: [String per line of file] / FALSE 3. FILE.WRITE [string] [VAR] – Returns: TRUE / FALSE 4. FILE.APPEND [string] [VAR] – Returns: TRUE / FALSE 5. FILE.DELETE [string] [VAR] – Returns: TRUE / FALSE 6. FILE.ERROR [VAR] – Returns: [A file I/O error] / NULL SECURITY 1. SECURITY.HASH [string] [VAR] – Returns: [hash] / FALSE 2. SECURITY.ENCRYPT [string] [VAR] – Returns: [Encrypted data] / FALSE 3. SECURITY.DECRYPT [Encrypted data] [VAR] – Returns: [string] / FALSE 4. SECURITY.ERROR [VAR] – Returns: [A security error] / NULL GRAPHICS 1. GRAPHICS.BIT [number] [VAR] – Returns: TRUE / FALSE 2. GRAPHICS.RESOLUTION [number] [number] [VAR] – Returns: TRUE / FALSE 3. GRAPHICS.MOUSE [0 / 1] [VAR] – Returns: TRUE / FALSE 4. GRAPHICS.ERROR [VAR] – Returns: [A graphics error] / NULL
  • 15. SOUND 1. SOUND.BIT [number] [VAR] – Returns: TRUE / FALSE 2. SOUND.RESOLUTION [number] [VAR] – Returns: TRUE / FALSE 3. SOUND.MUTE [0 / 1] [VAR] – Returns: TRUE / FALSE 4. SOUND.ERROR [VAR] – Returns: [A sound error] / NULL SYSTEM 1. SYSTEM.CPU:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE 2. SYSTEM.RAM:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE 3. SYSTEM.HDD:[GET] / [SET] [parameter] [VAR] – Returns: TRUE / FALSE 4. SYSTEM.RUN [Application name] [parameters] [VAR] – Returns: TRUE / FALSE 5. SYSTEM.ERROR [VAR] – Returns: [A system error] / NULL VIRTUAL VIRTUAL [Virtual interface] [Virtual interface].[Virtual function] {([arg 1], [arg 2],…)} – Vendor specific PRINT PRINT:[Any predefined output] [value] / [variable] Predefined outputs 1. SCREEN 2. PRINTER 3. CONSOLE George Delaportas (G0D) --- CEO & Founder of localhost Ltd. Informatics & Computer Engineer MSc in Data Communications & Networking PhD in Digital Forensics