This comparison of programming languages compares the features of language syntax (format) for over 50 computer programming languages.
Programming language expressions can be broadly classified into four syntax structures:
prefix notation
Lisp (* (+ 2 3) (expt 4 5))
infix notation
Fortran (2 + 3) * (4 ** 5)
suffix, postfix, or Reverse Polish notation
Forth 2 3 + 4 5 ** *
math-like notation
TUTOR (2 + 3)(45) $$ note implicit multiply operator
When a programming languages has statements, they typically have conventions for:
statement separators;
statement terminators; and
line continuation
A statement separator demarcates the boundary between two separate statements. A statement terminator defines the end of an individual statement. Languages that interpret the end of line to be the end of a statement are called "line-oriented" languages.
"Line continuation" is a convention in line-oriented 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.
Line continuation is generally done as part of lexical analysis: a newline normally results in a token being added to the token stream, unless line continuation is detected.
Whitespace – Languages that do not need continuations
Ada – Lines terminate with semicolon
C# – Lines terminate with semicolon
JavaScript – Lines terminate with semicolon (which may be inferred)
Lua
OCaml
Ampersand as last character of line
Fortran 90, Fortran 95, Fortran 2003, Fortran 2008
Backslash as last character of line
bash and other Unix shells
C and C++ preprocessor
Mathematica and Wolfram Language
Python
Ruby
JavaScript – only within single- or double-quoted strings
Backtick as last character of line
PowerShell
Hyphen as last character of line
SQL*Plus
Underscore as last character of line
AutoIt
Cobra
Visual Basic
Xojo
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.
Cette page est générée automatiquement et peut contenir des informations qui ne sont pas correctes, complètes, à jour ou pertinentes par rapport à votre recherche. Il en va de même pour toutes les autres pages de ce site. Veillez à vérifier les informations auprès des sources officielles de l'EPFL.
This course focuses on mobile application programming for the Android ecosystem. Students learn to develop distributed Apps on mobile platforms, interfacing with multiple heterogeneous devices and the
The "Introduction to Applied Data Science" (I2ADS) course is aimed at students of all levels to train them in the core computer science software stack and techniques forming the pillars of open & repr
This course teaches the journey taken by software engineering teams from incipient ideas to software products that solve real problems for real people.
Kotlin est un langage de programmation orienté objet et fonctionnel, avec un typage dynamique qui permet de compiler pour la machine virtuelle Java, JavaScript, et vers plusieurs plateformes en natif (grâce à LLVM). Son développement provient principalement d'une équipe de programmeurs chez JetBrains basée à Saint-Pétersbourg en Russie (son nom vient de l'île de Kotline, près de St. Pétersbourg). Google annonce pendant la conférence Google I/O 2017 que Kotlin devient le second langage de programmation officiellement pris en charge par Android après Java.
The syntax of the Python programming language is the set of rules that defines how a Python program will be written and interpreted (by both the runtime system and by human readers). The Python language has many similarities to Perl, C, and Java. However, there are some definite differences between the languages. It supports multiple programming paradigms, including structured, object-oriented programming, and functional programming, and boasts a dynamic type system and automatic memory management.
La syntaxe JavaScript est un ensemble de règles qui définissent ce qui constitue un programme valide en langage JavaScript. Brendan Eich a résumé ainsi le lignage de la syntaxe dans le premier paragraphe JavaScript 1.1 des spécifications : Les variables en JavaScript n'ont pas de type défini, et n'importe quelle valeur peut être stockée dans n'importe quelle variable. Les variables peuvent être déclarées avec const ou let. La différence entre ces deux mots clés est que les variables déclarées avec const ne peuvent être réaffectés alors qu'avec let si.
Explore les trucs et astuces de MATLAB pour les ingénieurs, couvrant l'installation, les tableaux logiques, le tracé des courbes, l'approximation des fonctions, les fonctions anonymes et l'intégration numérique.
Analyser les réponses de la politique monétaire et budgétaire à l’accumulation de la dette publique et l’impact du Covid-19 sur les économies mondiales.
Writing correct software is hard, yet in systems that have a high failure cost or are not easily upgraded like blockchains, bugs and security problems cannot be tolerated. Therefore, these systems are perfect use cases for formal verification, the task of ...
Over the past decade, the Scala community has shown great interest in using type-level programming to obtain additional type safety.Unfortunately, the lack of support from the Scala compiler has been a barrier to the adoption of that technique, notably due ...
GADTs are a very useful language feature that allow encoding some invariants in types. GADT reasoning is currently implemented in Scala and Dotty, but it’s plagued with soundness issues. To get a better understanding of GADTs in Scala, we explore how they ...