|
|
Source code - File "language/SQL"
|
1 @ set sqltable=EMPLOYEE
2 @ set search_key=POSITION
3 @ set search_val=Manager
4 @ dash $
5 --
6 -- By convention, each table contains a column with suffix ID.
7 --
8 SELECT sqltable$ID FROM sqltable
9 WHERE search_key = 'search_val';
|
|
Output of
"/opt/somusar/bin/tefigel language/SQL"
|
1 --
2 -- By convention, each table contains a column with suffix ID.
3 --
4 SELECT EMPLOYEEID FROM EMPLOYEE
5 WHERE POSITION = 'Manager';
|
|
|
Source code - File "language/perl"
|
1 @ mark rem |
2 @ set MESSAGE=Hello, world!
3 @ set VAR=$msg
4 # Simple Perl Script
5 VAR = "MESSAGE\n";
6
7 print VAR;
|
|
Output of
"/opt/somusar/bin/tefigel language/perl"
|
1 # Simple Perl Script
2 $msg = "Hello, world!\n";
3
4 print $msg;
|
|
|
Source code - File "language/python"
|
1 @ mark rem |
2 @ set PROGRAM=some_tool
3 @ set PARAMETERS=[-o output] [input]
4 # Usage routine for script PROGRAM
5 def usage():
6 print "Usage: PROGRAM PARAMETERS"
7 exit(1)
|
|
Output of
"/opt/somusar/bin/tefigel language/python"
|
1 # Usage routine for script some_tool
2 def usage():
3 print "Usage: some_tool [-o output] [input]"
4 exit(1)
|
|
|
Source code - File "language/rexx"
|
1 @ set msg=Hello!
2 /* Simple REXX script */
3 say "msg"
4 exit
|
|
Output of
"/opt/somusar/bin/tefigel language/rexx"
|
1 /* Simple REXX script */
2 say "Hello!"
3 exit
|
|
|
Source code - File "language/latex"
|
1 @ set LANG=LaTeX
2 This is a simple LANG example, % --- LANG comment here
3 with several whitespaces and % --- one more comment
4 comments.
|
|
Output of
"/opt/somusar/bin/tefigel language/latex"
|
1 This is a simple LaTeX example, % --- LaTeX comment here
2 with several whitespaces and % --- one more comment
3 comments.
|
|
[Previous chapter]
[Next chapter]
[Back to top]
|
|