regular-tuition-program.pts-ptn.net 17 Hours Information Services
Tel/Fax : 021-8762002, 8762003, 8762004, 87912360
Mobile/SMS : 081 1110 4824 27, 0812 9526 2009, 08523 1234 000, 0815 145 78119
WhatsApp : 0817 0816 486, 0812 9526 2009, 0815 145 78119
email : _Contact Us__ please click
Chatting dengan Staf :
ggkarir.com
ggiklan.com
Select Language :     ID   EN   Request Catalog / Brochure (free via post)   Employee Class   Regular
World Encyclopedia ➪ AgricultureAnimalArtAstronomyBiographyCharacterChemicalCultureEcologyEconomicsEducationElectronics
EnvironmentFilmGeographyHistoryIndonesiaJabodetabekLanguageLawLiteratureMathematicsMedical
MilitaryMusicMythologyPhilosophyPhysicsPlantPoliticalPuppetReligionScienceSocietySportsTechnology
Manual / Tutorial   ➪ AntApache ServerHTML 4HTML 5JavaScriptMySQLPerlPHPLinuxShell       Network Encyclopedia
Web Network ➪ Employee ClassRegularEvening ClassS2PTSPartyGeneral    
Reference ➪ Internet, Computers, ICT, OS, etc

  » Cyber University   » Fakultas Pertanian UMJ Jakarta   » Fakultas Teknik UMJ   » FE Universitas MH. Thamrin Jakarta   » FISIP UMJ Jakarta   » FK Universitas MH. Thamrin Jakarta   » IAI Al-Ghurabaa Jakarta
  » IAI Muhammad Azim Jambi   » IBISA Purworejo   » IKIP Widya Darma Surabaya   » Institut Agama Islam Sukabumi   » Institut Teknologi Sains Bandung   » ISIF Cirebon   » ISTA Jakarta
  » ISTN Jakarta   » ITB Muhammadiyah Purbalingga   » ITB STIKOM Bali   » ITB STIKOM Jimbaran Bali   » ITBU Jakarta   » ITEKES Tri Tunas Nasional Makassar   » ITESA Muhamadiyah Semarang
  » ITM Purwakarta   » MA UNHI Denpasar   » Magister Teknik ISTN Jakarta   » Magister Universitas Buddhi Dharma   » Magister Universitas Satyagama   » MH UM SURABAYA   » MH UNKRIS Jakarta
  » MIA FISIP UMJ Jakarta   » MIA UNKRIS Jakarta   » MIKOM FISIP UMJ Jakarta   » MM Patria Artha Makassar   » MM STIE ABI Surabaya   » MM STIE Ganesha Jakarta   » MM STIE GICI Business School Jakarta
  » MM STIE IGI Jakarta   » MM UMIBA Jakarta   » MM UNHI Denpasar   » MM UNKRIS Jakarta   » MPD UM SURABAYA   » MPD UNHI Denpasar   » Mpu Tantular Kedoya Jakarta
  » MT UNKRIS Jakarta   » Politeknik Semen Indonesia   » Polnas Denpasar   » S2 FISIP UMJ Jakarta   » S2 FT UMJ   » S2 NUSA MANDIRI   » S2 STMIK Jakarta
  » S2 UIN Al-Azhaar Lubuklinggau   » S2 UM SURABAYA   » S2 UNHI Denpasar   » S2 UNKRIS Jakarta   » S2 UNSURYA   » Sekolah Tinggi Bisnis Runata   » STAI Al-Akbar Surabaya
  » STAI Al-Andina Sukabumi   » STAI Al-Hidayah Tasikmalaya   » STAI Al-Ittihad Cianjur   » STAI Al-Muhajirin Purwakarta   » STAI Muhammadiyah Tulungagung   » STAI Terpadu Yogyakarta   » STEBI Bina Essa Bandung
  » STEI SEBI Cikarang   » STEI SEBI Depok   » STEI Yogyakarta   » STIBADA MASA Surabaya   » STIE ABI Surabaya   » STIE Al-Rifaie Malang   » STIE Cendekia Semarang
  » STIE Dharma Nasional Jember   » STIE Ganesha Jakarta   » STIE GEMA Bandung   » STIE GICI Business School Bogor   » STIE GICI Business School Depok   » STIE GICI Business School Bekasi   » STIE GICI Business School Jakarta
  » STIE Hidayatullah Depok   » STIE IGI Jakarta   » STIE Indocakti Malang   » STIE Nusantara Makassar   » STIE PASIM Sukabumi   » STIE PEMUDA Surabaya   » STIE Pioneer Manado
  » STIE Trianandra Pemuda Jakarta   » STIE Widya Darma Surabaya   » STIE Widya Persada Jakarta   » STIEKIA Bojonegoro   » STIH Awang Long Samarinda   » STIH Gunung Jati Tangerang   » STIH Litigasi Jakarta
  » STIKI Malang   » STIPER Jember   » STISIP Guna Nusantara Cianjur   » STIT Al-Hikmah Lampung   » STIT Tarbiyatun Nisa Sentul Bogor   » STMIK Jakarta   » STT Bina Tunggal Bekasi
  » STT Mandala Bandung   » STT STIKMA Internasional   » UHAMZAH Medan   » UICM Bandung   » UIN Al-Azhaar Lubuklinggau   » UM Palangkaraya   » UM Surabaya
  » UNAKI Semarang   » UNDARIS Ungaran Semarang   » UNHI Denpasar   » UNIBA Banyuwangi   » UNISA Kuningan Jawa Barat   » UNISMU Purwakarta   » Univ. Bali Dwipa Denpasar Bali
  » Universitas Boyolali   » Universitas Buddhi Dharma   » Universitas Cokroaminoto Makassar   » Universitas Deli Sumatera   » Universitas Dr. Soebandi Jember   » Universitas IVET Semarang   » Universitas Kahuripan Kediri
  » Universitas Mahakarya Asia Yogyakarta   » Universitas MH. Thamrin Jakarta   » Universitas Mitra Bangsa   » Universitas Mochammad Sroedji Jember   » Universitas Mpu Tantular Jakarta   » Universitas Muhammadiyah Jakarta   » Universitas Musi Rawas Lubuklinggau
  » Universitas Nurul Huda Oku Timur   » Universitas Nusa Mandiri Jatiwaringin   » Universitas Nusa Mandiri Kramat   » Universitas Nusa Mandiri Margonda   » Universitas Nusa Mandiri Tangerang   » Universitas Nusantara Manado   » Universitas Pandanaran Semarang
  » Universitas Parna Raya Manado   » Universitas Patria Artha Makassar   » Universitas Saintek Muhammadiyah   » Universitas Satyagama   » Universitas Tanri Abeng Jakarta   » Universitas Teknologi Bandung   » Universitas Teknologi Nusantara
  » Universitas Teknologi Sulawesi Makassar   » Universitas Ubudiyah Indonesia Aceh   » Universitas Yuppentek Indonesia   » UNKRIS Jakarta   » UNSUB Subang   » UNSURYA Jakarta   » UNTARA Cikokol Tangerang
  » UNTARA Tigaraksa Tangerang   » UNU Cirebon   » UNU Kalbar Pontianak   » UNU Kaltim Samarinda   » UNUGHA Cilacap   » UNUSA Surabaya   » UNUSIDA
  » USM Indonesia Medan   » UWIKA SurabayaCombined Information Employee Class entire PTS

Al Quran onlineAdvertisingBarter Link232 CountriesCat Info CenterCity & Province WebsitesCPNSComplete POS codeCorruption Rating
Embassy:  KBRI  Foreign  • Exercise Psychotest  • Civitasbook.com  • Hosting: ID World  • Info Prov, City, District, Village  • International Organizations
Islands in NKRIJob VacancyLibrariesNews & Magazine: ID ForeignNKRI, KPK, MA, etc.Political PartyPatriotPTAPTNPTSHospitalRanch
ScholarshipSholat & Imsak ScheduleSMASMKSMPTV & Radio : Foreign IDFootballWorld Statistics     Academic : Majors Prospectus

Department/Study Program (D3, S1, S2), Curriculum, Prospectus (Career Prospects), and Title/Degree
Undergraduate Programs (S-1)
¤ S1 Accounting
¤ S1 Agribusiness
¤ S1 Agricultural Sciences
¤ S1 Agroteknologi (Agricultural Industry Technology)
¤ S1 Akhwal al Syakhsiyyah / Civil Law of Islam (Sharia)
¤ S1 Animal Sciences
¤ S1 Architectural Engineering
¤ S1 Biology Education
¤ S1 Business/Commerce Administration Science
¤ S1 Chemical Engineering
¤ S1 Civil Engineering
¤ S1 Communication Studies
¤ S1 Computer Engineering / Computer Systems
¤ S1 ECD (Early Childhood Teacher Education)
¤ S1 Electrical Engineering
¤ S1 English Education
¤ S1 English Language / Literature
¤ S1 Food Technology
¤ S1 Indonesian Language and Literature Education
¤ S1 Industrial Engineering
¤ S1 Industrial Product Design
¤ S1 Informatics Engineering
¤ S1 Information System
¤ S1 International Relations
¤ S1 Law/Legal Studies
¤ S1 Management
¤ S1 Mathematics Education
¤ S1 Mechanical Engineering
¤ S1 Nursing
¤ S1 OPJKR (Physical Education, Health, Recreation)
¤ S1 Pancasila and Citizenship Education (PPKN)
¤ S1 Petroleum Engineering
¤ S1 Pharmaceuticals
¤ S1 Planning / Urban and Regional Planning Engineering
¤ S1 Political Sciences
¤ S1 Psychology
¤ S1 Public Health
¤ S1 Public/State Administration Science
¤ S1 Shipping Engineering
¤ S1 Social Welfare Studies
¤ S1 Sociology
¤ S1 Tarbiyah / Islamic Education
¤ S1 Ushuludin / Comparative Religion
¤ S1 Visual Communication Design
Graduate Programs (S-2)
¤ S2 Master of Management / MM

Three Diploma Programs (D-III)
¤ D3 Accounting
¤ D3 Accounting Computer
¤ D3 Business Travel (Business Tourism & Hospitality)
¤ D3 Computer Engineering (Computer Systems)
¤ D3 Electrical Engineering
¤ D3 Finance and Banking
¤ D3 Health Analyst
¤ D3 Informatics Management
¤ D3 Midwifery
¤ D3 MPRS (Hospital Services Management)
¤ D3 Nursing
¤ D3 Nutrition
¤ D3 Pharmaceutical and Food Analysts

Home       Issue : AdultAutomotiveBuddhistChristian, CatholicConfucianEducationHinduIslamPersonalPoetryTechniques

   
Search  
    Information Science

    Prev  (Comparison of programming lang ...) (Comparison of programming paradigms)  Next    

Comparison of programming languages (syntax)

This is a comparison of programming language syntax.

Contents

Expressions

Programming language expressions can be broadly classified in three classes:

prefix notation

  • Lisp (* (+ 2 3) (expt 4 5))

infix notation

  • Fortran (2 + 3) * (4 ** 5)
  • TUTOR (2 + 3)(45) $$ note implicit multiply operator

suffix, postfix, or Reverse Polish notation

Statements

Programming language statements typically have conventions for:

  • statement separators;
  • statement terminators; and
  • line continuation

A statement separator is used to demarcate boundaries between two separate statements. A statement terminator is used to demarcate the end of an individual statement. Line continuation is a convention in languages where the newline character could potentially be misinterpreted as a statement terminator. In such languages, it allows a single statement to span more than just one line.

LanguageStatement separator/terminatorSecondary separator[1]
ABAPperiod separated
Adasemicolon terminated
ALGOLsemicolon separated
ALGOL 68semicolon and comma separated[2]
AppleScriptnewline terminated
AutoHotkeynewline terminated
BASICnewline terminatedcolon
Boonewline terminated
Csemicolon terminates statementscomma separates expressions
C++semicolon terminates statementscomma separates expressions
C#semicolon terminated
COBOLperiod separated
Cobranewline terminated
Dsemicolon terminated
Eiffelnewline terminatedsemicolon
Erlangcolon separated, period terminated
Falconnewline separated
Fortrannewline terminatedsemicolon
Forth ?whitespace
GFA BASICnewline terminated
Gosemicolon separated (inserted by compiler)
Haskell (in do-notation)semicolon separated
Haskell (in do-notation, when braces are omitted)newline separated
Javasemicolon terminated
JavaScriptsemicolon separated (but sometimes implicitly inserted on newlines)
Luawhitespace separated (semicolon optional)
Mathematicasemicolon separated
MATLABnewline terminatedsemicolon or comma[3]
Object Pascal (Delphi)semicolon separated
Objective-Csemicolon terminated
OCamlsemicolon separated
Pascalsemicolon separated
Perlsemicolon separated
PHPsemicolon terminated
Prologperiod terminated
Pythonnewline terminatedsemicolon
Rubynewline terminatedsemicolon
Scalanewline terminated (semicolon optional)semicolon
Seed7semicolon separated (semicolon termination is allowed)
Simulasemicolon separated
S-Langsemicolon separated
Smalltalkperiod separated
Standard MLsemicolon separated
Visual Basicnewline terminated
Visual Basic .NETnewline terminated
Windows PowerShellnewline terminatedsemicolon separated
LanguageStatement separator/terminatorSecondary separator[1]

Line continuation

Whitespace - Languages that do not need continuations

  • Ada Lines terminate with semicolon
  • C# Lines terminate with semicolon
  • Lua
  • OCaml

Ampersand as last character of line

Backslash as last character of line

Backtick as last character of line

Hyphen as last character of line

  • SQL*Plus

Left parenthesis as last character of line

Underscore as last character of line

Ellipsis (as three periods–not one special character)

  • MATLAB: The ellipsis token need not be the last characters on the line, but any following it will be ignored.[5] (In essence, it begins a comment that extends through (i.e. including) the first subsequent newline character. Contrast this with an inline comment, which extends until the first subsequent newline.)

Some form of inline comment serves as line continuation

Character position

  • Fortran 77: A non-comment line is a continuation of the previous non-comment line if any non-space character appears in column 6. Comment lines cannot be continued.
  • Cobol: String constants may be continued by not ending the original string in a PICTURE clause with ', then inserting a - in column 7 (same position as the * for comment is used.)
  • TUTOR: Lines starting with a tab (after any indentation required by the context) continue the previous command.

[End and Begin] using normal quotes

  • C and C++ preprocessor: The string is ended normally and continues by starting with a quote on the next line.

Libraries

To import a library is a way to read external, possibly compiled, routines, programs or packages. Imports can be classified by level (module, package, class, procedure,...) and by syntax (directive name, attributes,...)

File import

  • ASP: #include file="filename"
  • AutoIt, C, C++: #include "filename", #include <filename>
  • Falcon: load "filename"
  • Fortran: include 'filename'
  • Lua: require("filename")
  • MATLAB: addpath(directory)[6]
  • Perl: require "filename";
  • PHP: include "filename";, require "filename";

Package import

  • Ada: with package
  • C, C++: #include filename
  • Cobra: use Package.Name
  • D: import package.module;, import altname = package.module;
  • Falcon: load module, load module.submodule
  • Fortran 90+: use module, use module, only : identifier
  • Go: import altname "package/name"
  • Haskell: import Module, import qualified Module as M
  • Java, MATLAB: import package.*
  • Lua: require("modname")
  • Mathematica: <<name
  • Oberon: IMPORT module
  • Pascal: uses unit
  • Perl: use Module;
  • Python: import module, from module import *
  • Scala: import package._, import package

Class import

  • Falcon: import class
  • Java, MATLAB: import package.class
  • Python: from module import class
  • Scala: import package.class, import package.{ class1 => alternativeName, 'class2 }, import package._

Procedure/function import

  • D: import package.module : symbol;, import package.module : altsymbolname = symbol;
  • Haskell: import Module (function)
  • MATLAB: import package.function
  • Perl: use Module ('symbol');
  • Python: from module import function
  • Scala: import package.class.function, import package.class.{ function => alternativeName, otherFunction }

The above statements can also be classified by whether they are a syntactic convenience (allowing things to be referred to by a shorter name, but they can still be referred to by some fully qualified name without import), or whether they are actually required to access the code (without which it is impossible to access the code, even with fully qualified names).

Syntactic convenience

  • Java: import package.*, import package.class
  • OCaml: open module

Required to access code

  • Go: import altname "package/name"
  • Python: import module

Blocks

A block is a notation for a group of two or more statements, expressions or other units of code that are related in such a way as to comprise a whole.

Braces (aka Curly brackets) { ... }:

Parentheses ( ... )

Brackets [ ... ]

  • Smalltalk (blocks are first class objects. aka closures)

begin ... end:

do ... done:

do ... end

  • Lua, Ruby (pass blocks as arguments, for loop)

X ... end (e.g. if ... end):

  • Bash (for & while loops), Ruby (if, while, until, def, class, module statements), OCaml (for & while loops), MATLAB (if & switch conditionals, for & while loops, try clause, package, classdef, properties, methods, events, & function blocks), Lua (then / else & function)

(begin ...):

(progn ...):

(do ...):

Indentation

Others

  • Bash, sh, and ksh: if ... fi, do ... done, case ... esac;
  • ALGOL 68: begin ... end, ( ... ), if ... fi, do ... od
  • Lua: repeat ... until
  • COBOL: IF ... END-IF, PERFORM ... END-PERFORM

Comments

Comments can be classified by:

  • style (inline/block)
  • parse rules (ignored/interpolated/stored in memory)
  • recursivity (nestable/non-nestable)
  • uses (docstrings/throwaway comments/other)

Inline comments

Inline comments are generally those that use a newline character to indicate the end of a comment, and an arbitrary delimiter or sequence of tokens to indicate the beginning of a comment.

Examples:

SymbolLanguages
CFortran 77 and earlier; the 'C' must be in column 1 of a line to indicate a comment.
REM, ::, :BASIC, COMMAND.COM, cmd.exe
NB.J; from the (historically) common abbreviation Nota bene, the Latin for "note well".
APL; the mnemonic is the glyph (jot overstruck with shoe-down) resembles a desk lamp, and hence "illuminates" the foregoing.
#bash, Cobra, Perl, Python, Ruby, Windows PowerShell, PHP, Maple
%TeX, Prolog, MATLAB,[7] Erlang, S-Lang, Visual Prolog
//ActionScript, C (C99), C++, C#, D, Go, Java, JavaScript, Object Pascal (Delphi), Objective-C, PHP, Scala, SASS
'Visual Basic, VBScript, RealBasic
!Fortran, Basic Plus, Inform
;AutoHotkey, AutoIt, Lisp, Common Lisp, Clojure, Rebol, Scheme, many assemblers
--Euphoria, Haskell, SQL, Ada, AppleScript, Eiffel, Lua, VHDL, SGML
*COBOL, PAW, many assemblers
||Curl
"Vimscript
\Forth
::Batch file[8]

Block comments

Block comments are generally those that use a delimiter to indicate the beginning of a comment, and another delimiter to indicate the end of a comment. In this context, whitespace and newline characters are not counted as delimiters.

Examples:

SymbolLanguages
¢ ~ ¢, # ~ #, co ~ co, comment ~ commentALGOL 68
/* */ActionScript, AutoHotkey, C, C++, C#, D, Go, Java, JavaScript, Objective-C, PHP, PL/I, Scala (can be nested), SASS, SQL, Visual Prolog, CSS
#cs #ceAutoIt
/+ +/D (can be nested)
/# #/Cobra (can be nested)
<# #>Powershell
=begin =cutPerl
=begin =endRuby
#<tag></code> <code>#</tag>S-Lang
{- -}Haskell (can be nested)
(* *)Object Pascal (Delphi), ML, Mathematica, Pascal, Applescript, OCaml (can be nested), Standard ML (can be nested), Maple
{ }Object Pascal (Delphi), Pascal
|# #|Curl
%{ %}MATLAB[7]
#| |#Lisp, Scheme, Racket (can be nested in all three).
--[[ ]]Lua
" "Smalltalk
(comment ...)Clojure

Unique variants

Fortran

  • The indentation of lines in FORTRAN 66/77 is significant. The actual statement is in columns 7 through 72 of a line. Any non-space character in column 6 indicates that this line is a continuation of the previous line. A 'C' in column 1 indicates that this entire line is a comment. Columns 1 though 5 may contain a number which serves as a label. Columns 73 though 80 are ignored and may be used for comments; in the days of punched cards, these columns often contained a sequence number so that the deck of cards could be sorted into the correct order if someone accidentally dropped the cards. Fortran 90 removed the need for the indentation rule and added inline comments, using the ! character as the comment delimiter.

Cobra

  • Cobra supports block comments with "/# ... #/" which is like the "/* ... */" often found in C-based languages, but with two differences. The # character is reused from the single-line comment form "# ...", and the block comments can be nested which is convenient for commenting out large blocks of code.

Curl

  • Curl supports block comments with user-defined tags as in |foo# ... #foo|.

Lua

  • Like raw strings, there can be any number of equals signs between the square brackets, provided both the opening and closing tags have a matching number of equals signs; this allows nesting as long as nested block comments/raw strings use a different number of equals signs than their enclosing comment: --[[comment --[=[ nested comment ]=] ]]. Lua discards the first newline (if present) that directly follows the opening tag.

Perl

  • Block comments in Perl are considered part of the documentation, and are given the name Plain Old Documentation (POD). Technically, Perl does not have a convention for including block comments in source code, but POD is routinely used as a workaround.

PHP

  • PHP supports standard C/C++ style comments, but supports Perl style as well.

Python

  • The use of the triple-(double)quotes although sometimes used to comment-out lines of source, does not actually form a comment. The enclosed text becomes a string, usually a string statement. Python usually ignores a lone string as a statement (except when a string is the first statement in the body of a module, class or function; see docstring).

Ruby

  • As with Python and Perl, Ruby has no specific block-comment syntax. However, like Perl, documentation blocks can be used as block comments as they are ignored by the interpreter.

S-Lang

  • The region of lines enclosed by the #<tag> and #</tag> delimiters are ignored by the interpreter. The tag name can be any sequence of alphanumeric characters that may be used to indicate how the enclosed block is to be deciphered. For example, #<latex> could indicate the start of a block of LaTeX formatted documentation.

Scheme and Racket

  • The next complete syntactic component (s-expression) can be commented out with #; .

Esoteric languages

Comment comparison

There is a wide variety of syntax styles for declaring comments in source code. BlockComment in italics is used here to indicate block comment style. InlineComment in italics is used here to indicate inline comment style.

LanguageIn-line commentBlock comment
Ada, Eiffel, Euphoria, Occam, SPARK, ANSI SQL, ToolBook OpenScript, and VHDL-- InlineComment 
ALGOL 60 comment BlockComment;
ALGOL 68 ¢ BlockComment ¢

comment BlockComment comment
co BlockComment co
# BlockComment #
£ BlockComment £

AppleScript-- InlineComment(* BlockComment *)
Assembly language (varies); InlineComment   one example (most assembly languages use line comments only) 
AutoHotkey; InlineComment/* BlockComment */
AWK, Bash, Bourne shell, C shell, Maple, R, Tcl, and Windows PowerShell# InlineComment<# BlockComment #>
BASIC (various dialects):'InlineComment (not all dialects)

REM InlineComment

 
C (K&R, ANSI/C89/C90), CHILL, PL/I, and REXX /* BlockComment */
C (C99), C++, Go, and JavaScript// InlineComment/* BlockComment */
C#// InlineComment
/// InlineComment (XML documentation comment)
/* BlockComment */
/** BlockComment */ (XML documentation comment)
CobolInlineComment (when * is in column 7) 
Curl|| InlineComment|# BlockComment #|

|foo# BlockComment #|

Cobra# InlineComment/# BlockComment #/ (nestable)
D// InlineComment
/// Documentation InlineComment (ddoc comments)
/* BlockComment */
/** Documentation BlockComment */ (ddoc comments)

/+ BlockComment +/ (nestable)
/++ Documentation BlockComment +/ (nestable, ddoc comments)

DCL$! InlineComment 
ECMAScript (JavaScript, ActionScript, etc.)// InlineComment/* BlockComment */
Forth\ InlineComment( BlockComment ) (single line only)

( before -- after ) stack comment convention

FORTRAN 66/77C InlineComment (the letter 'C' in the first column makes the entire line a comment). 
Fortran 90! InlineComment (all characters on the line, from the exclamation mark onwards, are comments) 
Haskell-- InlineComment{- BlockComment -}
Java// InlineComment/* BlockComment */

/** BlockComment */ (Javadoc documentation comment)

Lisp and Scheme; InlineComment#| BlockComment |#
Lua-- InlineComment--[==[ BlockComment]==] (variable number of = signs)
Maple# InlineComment(* BlockComment *)
Mathematica (* BlockComment *)
Matlab% InlineComment%{
BlockComment (nestable)
%}

Note: Both percent–bracket symbols must be the only non-whitespace characters on their respective lines.
Object Pascal (Delphi)// InlineComment(* BlockComment *)
{ BlockComment }
OCaml (* BlockComment (* nestable *) *)
Pascal, Modula-2, Modula-3, Oberon, and ML: (* BlockComment *) (OCaml comments are nestable)
Perl and Ruby# InlineComment=begin
BlockComment
=cut
(POD documentation comment)

__END__
Comments after end of code

PHP# InlineComment
// InlineComment
/* BlockComment */
/** Documentation BlockComment */ (PHP Doc comments)
PILOTR:InlineComment 
PL/SQL and TSQL-- InlineComment/* BlockComment */
Python# InlineComment""" BlockComment """

(Documentation string when first line of module, class, method, or function)

REALbasic' InlineComment
// InlineComment
rem InlineComment
 
SAS * BlockComment;
/* BlockComment */
Seed7# InlineComment(* BlockComment *)
Simula comment BlockComment;
! BlockComment;
Smalltalk "BlockComment"
Smarty {* BlockComment *}
Standard ML (* BlockComment *)
TeX, LaTeX, PostScript, Erlang, and S-Lang% InlineComment 
Texinfo@c InlineComment

@comment InlineComment

 
TUTOR* InlineComment
command $$ InlineComment
 
Visual Basic' InlineComment
Rem InlineComment
 
Visual Basic .NET' InlineComment

''' InlineComment (XML documentation comment)
Rem InlineComment

 
Visual Prolog% InlineComment/* BlockComment */

See also

References

  1. ^ a b For multiple statements on one line
  2. ^ Three different kinds of clauses, each separates phrases and the units differently:
      1. serial-clause using go-on-token (viz. semicolon): begin a; b; c end - units are executed in order.
      2. collateral-clause using and-also-token (viz. “,”): begin a, b, c end - order of execution is to be optimised by the compiler.
      3. parallel-clause using and-also-token (viz. “,”): par begin a, b, c end - units must be run in parallel threads.
  3. ^ semicolon - result of receding statement hidden, comma - result displayed
  4. ^ http://ss64.com/nt/syntax-brackets.html
  5. ^ Mathworks.com
  6. ^ For an M-file (MATLAB source) to be accessible by name, its parent directory must be in the search path (or current directory).
  7. ^ a b Mathworks.com
  8. ^ SS64.com
    Prev  (Comparison of programming lang ...) (Comparison of programming paradigms)  Next    





Tags: Comparison of programming languages (syntax), Information Science, 482, Comparison of programming languages (syntax) Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations String functions List comprehension Object oriented programming Object oriented constructors Database access Evaluation strategy List of, Hello World, programs ALGOL 58's influence on ALGOL 60 ALGOL 60: Comparisons w, Comparison of programming languages (syntax), English, Instruction Examples, Tutorials, Reference, Books, Guide regular tuition program, pts-ptn.net
 Afternoon / Evening Lecture Program

 Various Kinds Adverts
 Psychotest Tips & Tricks
 Job Vacancies
 Book Reader
 Waivers Tuition Application
 Download Brochures / Catalogs
 Online Registration
 Online College Programs in the Best 168 PTS
 Free Tuition Fees
 Special Class
 Master Degree Program
 Regular Day Tuition
College Info
Accredited & Qualified
STMIKMJ Jakarta
STIE Gema
STIE IGI
STTM STIE WP
STEI Jogja
STIE Hidayatullah
STEBI Bina Essa
UMJ: FTan FISIP
Univ. Muhammadiyah Smrg
Univ. Muhammadiyah Sby
UNSUB
STMIK MJ UNKRIS
Univ. Thamrin: FE FASILKOM
ISTA ITBU
STIE Trianandra STIE IGI
STT Mandala Bandung
STMIK STIKOM Bali STTB
POLNAS Denpasar
Walisongo: STIEG STTG
STT Bina Tunggal Bks.
STIKI
UNDARIS Semarang
INDOCAKTI
UPRI
STIE Hidayatullah Depok
UNISA Dharma Andigha
University of Nusantara
UHAMZAH
UTS Makassar
STT Duta Bangsa
STIE GICI IMWI Sukabumi
UNAKI KAHURIPAN
STEI Jogja STIE Pemuda
University of Mpu Tantular
USCND Langsa
USM Indonesia STTM
UNUGHA UM Palangkaraya
STIE WD IKIP WD
STIE Ganesha Yuppentek
STT Muttaqien
STIT BATAM IAI AS
UCM STIE GEMA
University of Megou
STIE PIONEER
STIMAIMMI STIEABI
UPGRIS UICM Bandung
AL-AZHAR UNUSA
Tanri Abeng University
STIE AMKOP STIE WP
Univ. Boyolali UDB
UNIBA ITB AD
UNU KALBAR
Ubudiyah ISIF
STEBI Global Mulia
STT Sapta Taruna
Bali Dwipa University
UNU Kaltim UHS
IVET University
CENDEKIA STAI DB
STIE Mitra STiPSi
UNIPI Bandung
STIE Al-Rifa'ie
UNTARA Pelita Bangsa
Patria Artha
Widya Kartika University
UTN Bogor IGN Bogor
Parna Raya
STAI Terpadu Yogyakarta
STIT Al-Hikmah Lampung
Deli Sumatera University
STIA Bayuangga
UI Mandiri
STAI Muhammadiyah Probolinggo
STEBI Bina Essa
STAI Muhammadiyah Tulungagung
Politeknik Harapan Bangsa Surakarta
STIKes Sapta Bakti
ITeKes Tri Tunas Nasional
STEBI Badri Mashduqi
STIA Maulana Yusuf
STAI Miftahul Ulum
STIH Gunung Jati
STIE PPI Balaraja
Poltekkes Kerta Cendekia
ITB Pelita Raya
Poltek Ganesha
Universitas Moch. Sroedji
STIT Al-Hidayah Tasikmalaya
STIT Nur Ahadiyah
Politeknik Aisyiyah
Politeknik Santo Paulus Surakarta
IAI Al-Ghurabaa Jakarta
STAI AL Akbar Surabaya
Universitas Mahakarya Asia Yogyakarta
Politeknik Bhakti Kartini
Univ. Muhammadiyah Smrg
STMIK MJ UNKRIS
Thamrin: FE FASILKOM
STT Bina Tunggal Bks.
STIKI UNDARIS Semarang
INDOCAKTI
UPRI
STIE Hidayatullah Depok
UNISA Dharma Andigha
University of Nusantara
UHAMZAH
UTS Makassar
STT Duta Bangsa
STIE GICI IMWI Sukabumi
UNAKI KAHURIPAN
STEI Jogja STIE Pemuda
University of Mpu Tantular
USCND Langsa
USM Indonesia
UM Palangkaraya
UNUGHA STIE WD IKIP WD
STIE Ganesha Yuppentek
STT Muttaqien
University of Megou
STIE PIONEER
STIMAIMMI
AL-AZHAR UNUSA
Tanri Abeng University
STIE AMKOP STIE WP
Univ. Boyolali UDB
UNIBA ITB AD
UNU KALBAR
Ubudiyah ISIF
STEBI Global Mulia
STT Sapta Taruna
Bali Dwipa University
UNU Kaltim UHS
IVET University
CENDEKIA STAI DB
STIE Mitra STiPSi
UNIPI Bandung
STIE Al-Rifa'ie
UNTARA Pelita Bangsa
Patria Artha
Widya Kartika University
UTN Bogor IGN Bogor
Parna Raya
STAI Terpadu Yogyakarta
STIT Al-Hikmah Lampung
Deli Sumatera University
STIA Bayuangga
UI Mandiri
STAI Muhammadiyah Probolinggo
STEBI Bina Essa
STAI Muhammadiyah Tulungagung
Politeknik Harapan Bangsa Surakarta
STIKes Sapta Bakti
ITeKes Tri Tunas Nasional
STEBI Badri Mashduqi
STIA Maulana Yusuf
STAI Miftahul Ulum
STIH Gunung Jati
STIE PPI Balaraja
Poltekkes Kerta Cendekia
ITB Pelita Raya
Poltek Ganesha
Moch. Sroedji University
STIT Al-Hidayah Tasikmalaya
STIT Nur Ahadiyah
Politeknik Aisyiyah
Politeknik Santo Paulus Surakarta
IAI Al-Ghurabaa Jakarta
STAI AL Akbar Surabaya
Universitas Mahakarya Asia Yogyakarta
Politeknik Bhakti Kartini
MM STIE IGI
MIKOM, MIA Fisip Umj
MM STIE Ganesha
MM UNKRIS MM STIMAIMMI MM STIEABI
MM STIE Mitra MM UNTARA
MM UNKRIS MIKom Fisip UMJ MIA FISIP UMJ MM STIE Partner MM UNTARA MM Pelita Bangsa< /a>
MM STIE Ganesha
MM STIMAIMMI MM STIEABI
MM STIE IGI MM STIE GICI MKS ITB Ahmad Dahlan
MM IGN MKom IGN
KPT Higher Education Consultants
Chat with staff
Employee Class

(Please click below)
Admission / New Student
__Registration

Campus Locations & Maps
Study Program (D3, S1, S2)
___(+ Curriculum & Prospectus)

Master Program (S2)
Cost of Education
Education System
Lecture Time (Schedule)
Lecturers
Excellence & Advantages
Public Transportation
Request for Scholarship
List of Scholarship Recipients


PHOTO GALLERY



 Informatics Science Tutorials
 Various Discussion
 Al-Qur'an Online
 Prayer Schedule

Catalog/Brochure Request
(Free via POS)
Recipient's name

Address

City + Province

Postal Code

Email (not required)

⛧ must be filled in correctly
Or send name and
Your address via SMS to mobile:
08523 1234 000


FREE DOWNLOAD
Kelas Karyawan Brochure
Combined All Areas of Indonesia

pdf (11,2 MB)ZIP (8,8 MB)
Image/JPG (36,2 MB)
Kelas Karyawan Brochure
JABODETABEK

pdf (5,5 MB)ZIP (4,4 MB)
Image/JPG (13,2 MB)
Kelas Karyawan Brochure
Java and Bali

pdf (4,4 MB)ZIP (3,5 MB)
Image/JPG (14,5 MB)
Kelas Karyawan Brochure
West Java

pdf (2,8 MB)ZIP (2,2 MB)
Image/JPG (7,1 MB)
Kelas Karyawan Brochure
SULAWESI

pdf (1,9 MB)ZIP (1,5 MB)
Image/JPG (5,6 MB)
Kelas Karyawan Brochure
SUMATERA & BATAM

pdf (2,2 MB)ZIP (1,7 MB)
Image/JPG (6,5 MB)
Regular Program Brochure
pdf (4,1 Mb)ZIP (8,4 Mb)
"New Breakthrough" Book
Strategies to Increase Revenue
PTS, Quality Education
& Resources PTS

pdf(6 Mb)Image/JPG(16 Mb)

New Solution
Strategies Increase
PTS revenue,
PTS Education Quality,
and PTS Resources
Full information, click
http://kpt.co.id

Vacancy

PT. Gilland Ganesha

  • Design Grafis
  • Senior Programmer

Detailed information visit:
Job Vacancy

Water dispenser, hair dryer cat, medicine cat, etc.
155 cat breeds in the world

Twitter Kuliah Karyawan

PTS-PTS Link
PTS Ranking & Reputable
S1, S2, D3 Education

Manfaat dan khasiat Vitamin B2, Khasiat alpha-tocopherol (E), Germinasi biji / benih Perilla (Shiso), etc.
Khasiat Shungiku

Principal Guide
please click below
ATM Locations (Jabodetabek)
Aid organizations landslide
BKKBN, BMG, BakornasPBP
Embassy Cape Verde
Link to Rep. Dominican
National Library of the World
Parties in Mexico
Rental Site Iran
Website BSEC, BTWC

binatunggal.ac.id  |  undaris.web.id  |  um-bengkulu.web.id  |  p2k.buddhidharma.ac.id