Geshi-Highlight: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Bez shrnutí editace |
Bez shrnutí editace |
||
(Není zobrazeno 12 mezilehlých verzí od 2 dalších uživatelů.) | |||
Řádek 1: | Řádek 1: | ||
<nowiki> <source lang="php"> | |||
<source lang="c"> | |||
<source lang="asm"> | |||
<source lang="basic4l"> </nowiki> | |||
* Další viz tabulka dole! | |||
<source lang="php"> | |||
<?php | <?php | ||
for ($i=0;$i<=10;$i++) // Příklad cyklu for v php. BY ROMAN SVOBODA | for ($i=0;$i<=10;$i++) // Příklad cyklu for v php. BY ROMAN SVOBODA | ||
Řádek 25: | Řádek 28: | ||
} | } | ||
?> | ?> | ||
</ | </source> | ||
< | <source lang="C"> | ||
#include <reg51.h> | #include <reg51.h> | ||
#include<stdio.h> | #include<stdio.h> | ||
Řádek 59: | Řádek 62: | ||
} | } | ||
</ | </source> | ||
< | <source lang="asm"> | ||
$mod51 | $mod51 | ||
org 00h ;ukládání programu | |||
start: mov A,#01010111b ; zápis do akumulátoru | start: mov A,#01010111b ; zápis do akumulátoru | ||
mov P1,A ; přesun na bránu P1 | |||
mov A,#10101000b | |||
mov P1,A | |||
sjmp start ; krátký skok na návěští | |||
end | |||
</ | </source> | ||
==Podporované jazyky== | |||
{| class="wikitable" style="float:left" | {| class="wikitable" style="float:left" | ||
! | !lang=" "||Odpovídající jazyk | ||
|- | |- | ||
| | |abap||[[:en:ABAP|ABAP]] | ||
|- | |- | ||
| | |actionscript||[[:en:ActionScript|ActionScript]] | ||
|- | |- | ||
| | |ada||[[:en:Ada (programming language)|Ada]] | ||
|- | |- | ||
| | |apache||[[:en:Apache HTTP Server|Apache Configuration]] | ||
|- | |- | ||
| | |applescript||[[:en:AppleScript|AppleScript]] | ||
|- | |- | ||
| | |asm||[[:en:Assembly language|ASM]] | ||
|- | |- | ||
| | |asp||[[:en:Active Server Pages|Active Server Pages (ASP)]] | ||
|- | |- | ||
| | |autoit||[[:en:AutoIt|AutoIt]] | ||
|- | |- | ||
| | |bash||[[:en:Bash (Unix shell)|Bash]] | ||
|- | |- | ||
| | |basic4gl||[[:en:Basic4GL|Basic4GL]] | ||
|- | |- | ||
| | |bf||[[:en:Brainfuck|Brainfuck]] | ||
|- | |- | ||
| | |blitzbasic||[[:en:Blitz BASIC|Blitz BASIC]] | ||
|- | |- | ||
| | |bnf||[[:en:Backus-Naur Form|Backus-Naur Form]] | ||
|- | |- | ||
| | |c||[[:en:C (programming language)|C]] | ||
|- | |- | ||
| | |c_mac||C (Mac) | ||
|- | |- | ||
| | |caddcl||[[:en:Dialog Control Language|AutoCAD DCL]] | ||
|- | |- | ||
| | |cadlisp||[[:en:AutoLISP|AutoLISP]] | ||
|- | |- | ||
| | |cfdg||CFDG | ||
|- | |- | ||
| | |cfm||[[:en:ColdFusion_Markup_Language|ColdFusion Markup Language]] | ||
|- | |- | ||
| | |cil||[[:en:Common_Intermediate_Language|Common Intermediate Language (CIL)]] | ||
|- | |- | ||
| | |cobol||[[:en:COBOL|COBOL]] | ||
|- | |- | ||
| | |cpp-qt||[[:en:Qt (toolkit)|C++ (Qt toolkit)]] | ||
|- | |- | ||
| | |cpp||[[:en:C++|C++]] | ||
|- | |- | ||
| | |csharp||[[:en:C Sharp (programming language)|C#]] | ||
|- | |- | ||
| | |css||[[:en:Cascading Style Sheets|Cascading Style Sheets (CSS)]] | ||
|- | |- | ||
| | |d||[[:en:D (programming language)|D]] | ||
|- | |- | ||
| | |delphi||[[:en:Delphi programming language|Delphi]] | ||
|- | |- | ||
| | |diff||[[:en:diff|Diff]] | ||
|- | |- | ||
| | |div||DIV | ||
|- | |- | ||
| | |dos||[[:en:DOS batch file|DOS batch file]] | ||
|- | |- | ||
| | |dot||[[:en:DOT language|DOT]] | ||
|- | |- | ||
| | |eiffel||[[:en:Eiffel (programming language)|Eiffel]] | ||
|- | |- | ||
| | |fortran||[[:en:Fortran|Fortran]] | ||
|- | |- | ||
| | |freebasic||[[:en:FreeBASIC|FreeBASIC]] | ||
|- | |- | ||
| | |genero||Genero | ||
|- | |- | ||
| | |gettext||[[:en:GNU_gettext|GNU internationalization (i18n) library]] | ||
|- | |- | ||
| | |glsl||[[:en:GLSL|OpenGL Shading Language (GLSL)]] | ||
|- | |- | ||
| | |gml||[[:en:Game Maker Language|Game Maker Language (GML)]] | ||
|- | |- | ||
| | |gnuplot||[[:en:Gnuplot|gnuplot]] | ||
|- | |- | ||
| | |groovy||[[:en:Groovy (programming language)|Groovy]] | ||
|- | |- | ||
| | |haskell||[[:en:Haskell (programming language)|Haskell]] | ||
|- | |- | ||
| | |hq9plus||HQ9+ | ||
|- | |- | ||
| | |html4strict||[[:en:HTML|HTML]] | ||
|- | |- | ||
| | |idl||[[:en:Universal Network Objects|Uno IDL]] | ||
|- | |- | ||
| | |ini||[[:en:INI file|INI]] | ||
|- | |- | ||
| | |inno||[[:en:Inno Setup|Inno]] | ||
|- | |- | ||
| | |intercal||[[:en:INTERCAL|INTERCAL]] | ||
|- | |- | ||
| | |io||[[:en:Io (programming language)|Io]] | ||
|- | |- | ||
| | |java||[[:en:Java (programming language)|Java]] | ||
|- | |- | ||
| | |java5||[[:en:Java (programming language)|Java(TM) 2 Platform Standard Edition 5.0 ]] | ||
|- | |- | ||
| | |javascript||[[:en:JavaScript|JavaScript]] | ||
|- | |- | ||
| | |kixtart||[[:en:KiXtart|KiXtart]] | ||
|- | |- | ||
| | |klonec||Klone C | ||
|- | |- | ||
| | |klonecpp||Klone C++ | ||
|- | |- | ||
| | |latex||[[:en:LaTeX|LaTeX]] | ||
|- | |- | ||
| | |lisp||[[:en:Lisp (programming language)|Lisp]] | ||
|- | |- | ||
| | |lolcode||[[:en:LOLCODE|LOLCODE]] | ||
|- | |- | ||
| | |lotusscript||[[:en:LotusScript|LotusScript]] | ||
|- | |- | ||
| | |lua||[[:en:Lua (programming language)|Lua]] | ||
|} | |} | ||
{| class="wikitable" style="float:left" | {| class="wikitable" style="float:left" | ||
! | !lang=" "||Odpovídající jazyk | ||
|- | |- | ||
| | |m68k||[[:en:Motorola 68000|Motorola 68000 Assembler]] | ||
|- | |- | ||
| | |make||[[:en:Make_(software)|make]] | ||
|- | |- | ||
| | |matlab||[[:en:MATLAB|MATLAB M]] | ||
|- | |- | ||
| | |mirc||[[:en:mIRC scripting language|mIRC scripting language]] | ||
|- | |- | ||
| | |mxml||[[:en:MXML|MXML]] | ||
|- | |- | ||
| | |mpasm||[[:en:PIC microcontroller|Microchip Assembler]] | ||
|- | |- | ||
| | |mysql||[[:en:MySQL|MySQL]] | ||
|- | |- | ||
| | |nsis||[[:en:Nullsoft Scriptable Install System|Nullsoft Scriptable Install System (NSIS)]] | ||
|- | |- | ||
| | |objc||[[:en:Objective-C|Objective-C]] | ||
|- | |- | ||
| | |ocaml-brief||[[:en:Objective Caml|OCaml]] | ||
|- | |- | ||
| | |ocaml||[[:en:Objective Caml|OCaml]] | ||
|- | |- | ||
| | |oobas||[[:en:StarOffice Basic|OpenOffice.org Basic]] | ||
|- | |- | ||
| | |oracle8||[[:en:PL/SQL|Oracle 8 SQL]] | ||
|- | |- | ||
| | |oracle11||[[:en:PL/SQL|Oracle 11 SQL]] | ||
|- | |- | ||
| | |pascal||[[:en:Pascal (programming language)|Pascal]] | ||
|- | |- | ||
| | |per||per | ||
|- | |- | ||
| | |perl||[[:en:Perl|Perl]] | ||
|- | |- | ||
| | |php-brief||[[:en:PHP|PHP]] | ||
|- | |- | ||
| | |php||[[:en:PHP|PHP]] | ||
|- | |- | ||
| | |pixelbender||[[:en:Adobe_Pixel_Bender|Pixel Bender]] | ||
|- | |- | ||
| | |plsql||[[:en:PL/SQL|PL/SQL]] | ||
|- | |- | ||
| | |povray||[[:en:POV-Ray|Persistence of Vision Raytracer]] | ||
|- | |- | ||
| | |powershell||[[:en:Windows_PowerShell|Windows PowerShell]] | ||
|- | |- | ||
| | |progress||[[:en:OpenEdge_Advanced_Business_Language|OpenEdge Advanced Business Language]] | ||
|- | |- | ||
| | |prolog||[[:en:Prolog|Prolog]] | ||
|- | |- | ||
| | |providex||[[:en:ProvideX|ProvideX]] | ||
|- | |- | ||
| | |python||[[:en:Python (programming language)|Python]] | ||
|- | |- | ||
| | |qbasic||[[:en:QBasic|QBasic/QuickBASIC]] | ||
|- | |- | ||
| | |rails||[[:en:Ruby on Rails|Rails]] | ||
|- | |- | ||
| | |reg||[[:en:Windows Registry|Windows Registry]] | ||
|- | |- | ||
| | |robots||[[:en:Robots Exclusion Standard|robots.txt]] | ||
|- | |- | ||
| | |ruby||[[:en:Ruby (programming language)|Ruby]] | ||
|- | |- | ||
| | |sas||[[:en:SAS System|SAS]] | ||
|- | |- | ||
| | |scala||[[:en:Scala_(programming_language)|Scala]] | ||
|- | |- | ||
| | |scheme||[[:en:Scheme (programming language)|Scheme]] | ||
|- | |- | ||
| | |scilab||[[:en:Scilab|Scilab]] | ||
|- | |- | ||
| | |sdlbasic||[[:en:SdlBasic|SdlBasic]] | ||
|- | |- | ||
| | |smalltalk||[[:en:Smalltalk|Smalltalk]] | ||
|- | |- | ||
| | |smarty||[[:en:Smarty|Smarty]] | ||
|- | |- | ||
| | |sql||[[:en:SQL|SQL]] | ||
|- | |- | ||
| | |tcl||[[:en:Tcl|Tcl]] | ||
|- | |- | ||
| | |teraterm||[[:en:TeraTerm|Tera Term]] | ||
|- | |- | ||
| | |text||[[:en:Plain text|Plain text]] | ||
|- | |- | ||
| | |thinbasic||[[:en:thinBasic|thinBasic]] | ||
|- | |- | ||
| | |tsql||[[:en:Transact-SQL|Transact-SQL]] | ||
|- | |- | ||
| | |typoscript||[[:en:TYPO3|TypoScript]] | ||
|- | |- | ||
| | |vb||[[:en:Visual Basic|Visual Basic]] | ||
|- | |- | ||
| | |vbnet||[[:en:Visual Basic .NET|Visual Basic .NET]] | ||
|- | |- | ||
| | |verilog||[[:en:Verilog|Verilog]] | ||
|- | |- | ||
| | |vhdl||[[:en:VHSIC Hardware Description Language|VHDL]] | ||
|- | |- | ||
| | |vim||[[:en:Vimscript|Vimscript]] | ||
|- | |- | ||
| | |visualfoxpro||[[:en:Visual FoxPro|Visual FoxPro]] | ||
|- | |- | ||
| | |visualprolog||[[:en:Visual_Prolog|Visual Prolog]] | ||
|- | |- | ||
| | |whitespace||[[:en:Whitespace_(programming_language)|Whitespace]] | ||
|- | |- | ||
| | |winbatch||[[:en:Winbatch|Winbatch]] | ||
|- | |- | ||
| | |xml||[[:en:XML|XML]] | ||
|- | |- | ||
| | |xorg_conf||[[:en:Xorg.conf|Xorg.conf]] | ||
|- | |- | ||
| | |xpp||[[:en:Microsoft_Dynamics_AX|X++]] | ||
|- | |- | ||
| | |z80||[[:en:Zilog Z80|ZiLOG Z80 Assembler]] | ||
|} | |} | ||
[[Category:Návody]] |
Aktuální verze z 27. 4. 2011, 17:34
<source lang="php"> <source lang="c"> <source lang="asm"> <source lang="basic4l">
- Další viz tabulka dole!
<?php
for ($i=0;$i<=10;$i++) // Příklad cyklu for v php. BY ROMAN SVOBODA
{
echo $i;
}
?>
<?php
$i = 0;
while ($i<=10) { // Příklad cyklu while v php. BY ROMAN SVOBODA
echo $i;
++$i;
}
?>
#include <reg51.h>
#include<stdio.h>
void MSdelay (unsigned int);
sbit P10 = 0x90;
/* now the functions may be written to use this location */
void main (void)
{
/* forever loop, toggling pin 0 of port 1 */
while (1==1)
{
P10 = !P10;
P3=0xAA;
MSdelay (500); /* wait 500 microseconds */
P3=0x55;
MSdelay (500); /* wait 500 microseconds */
}
}
void MSdelay (unsigned int itime)
{
unsigned int i,j;
for (i=0;i<itime;i++);
for (j=0;j<1275;j++);
}
$mod51
org 00h ;ukládání programu
start: mov A,#01010111b ; zápis do akumulátoru
mov P1,A ; přesun na bránu P1
mov A,#10101000b
mov P1,A
sjmp start ; krátký skok na návěští
end