PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Line Comments

< >
Example from Java, JavaScript, C, C++, PHP, C#, Go, Scala, Swift, Rust, Kotlin, TypeScript, Objective-C, Dart, Verilog, Solidity, Reason, Delphi, F#, Yacc, Groovy, D, OpenCL, Chapel, Haxe, Pug, ANTLR, Lasso, CIL, Protocol Buffers, V, BCPL, Processing, Dylan, Hack, FLUX, DOT, idyll, Rust MIR, Fantom, Squirrel, Ballerina, Nemerle, Zephir, Vala, Flow, QML, Scilab, Io, xBase, Click, Ceylon, Java Bytecode, JSON5, Clean, SystemVerilog, SuperCollider, Stata, Bison, HCL, POV-Ray SDL, Pike, Deno, odin, MiniD, Wren, ATS, C3, Dafny, Lex, eC, Xojo, Alloy, Modelica, PEG.js, halide, Clipper, Objective-J, Bicep, ECL, PowerBuilder, Less, AspectJ, XBase++, Falcon, Croc, Ion, mlir, CIL, Cue, Eve, Koka, Argdown, Ron, OpenVera, SIL, BETA, Cg, PAWN, IGOR Pro, Felix, P4, Taichi, JAI, LPC, MQL5, Jule, Angelscript, Pizza, beads-lang, Volt, JADE, Yoix, NetLinx, Concise Encoding, OpenSCAD, Apex, DM, Linden Scripting Language, ShaderLab, FutureBASIC, Mask, Harbour, Whiley, CartoCSS, SugarSS, Ch, Observable, Game Maker Language, Objective C++, Not Quite C, OX, Slice, mun-lang, SimCode, JSON with Comments, MVEL, SCSS, Script.NET, Cell, Cycript, winxed, Strips, Not eXactly C, Spatial, LoomScript, Flow9, Type Language, Treelang, Operational Control Language, Fable, Cypher Query Language, Maya Embedded Language, Logos, KRL, Q#, NS Basic, tht, dslx, Vale, gentee, Rescript, spiral, Hocon, CIR, Frink, flagship, DAX, ddfql, Tuple space, neeilang, hilvl, PowerQuery M, holyc, CFScript, Nymph, Jsonnet, Language Server Index Format, Ligo, Adventure Game Studio Script, dlvm, epsilon, JS++, Judoscript, Finite State Language, Soy, HuJSON, silk, owen-lang, verifpal, StruQL, kai, fizz, JSL, OEM, Lite-C, Sophia, Heron, Action Code Script, xxl, Pnuts, ctalk-lang, OptimJ, sora, rbscript, Deesel, Tick C, cooC, Real-Time Concurrent C, Static Typescript:
// A comment
# A comment
-- A comment
% A comment
Example from Fortran:
C A comment
Example from COBOL:
MOVE ABC to XYZ *> This is a comment.
; A comment
Example from SAS, ABAP, SNOBOL, Refal, ActiveVFP:
* A comment
' A comment
Example from BASIC, Batchfile:
REM A comment
Example from APL:
⍝ A comment
Example from Forth:
\ A comment
! A comment
Example from HAML:
-# A comment
Example from J:
NB. A comment
Example from TLA:
\* A comment
Example from K:
/ A comment
Example from HOPE:
--- A comment
Example from High Level Assembly:
// comment
Example from Slope:
; I am a comment
Example from Quaint:
;; A comment
Example from Cyber:
-- Counts iterations.
Example from Mouse:
~ A comment
“”” A comment
#<A comment>
Example from popr:
__ A comment
Example from Lexon:
COMMENT A comment

Languages with Line Comments include Java, JavaScript, C, Python, SQL, C++, PHP, Perl, MATLAB, C#, Fortran, Ruby, MySQL, R, Go, COBOL, Scala, Swift, Ada, PostgreSQL, Rust, Kotlin, PowerShell, ARM, Haskell, Lua, TypeScript, SAS, Prolog, Bash, Clojure, Objective-C, Elixir, Visual Basic, Erlang, Scheme, Julia, Dart, Tcl, VBA, ActionScript, Verilog, Solidity, Reason, BASIC, awk, Delphi, Crystal, CoffeeScript, F#, Maple, Elm, Eiffel, YAML, Yacc, Racket, Groovy, D, Sage, Common Lisp, GraphQL, VHDL, LaTeX, Nginx, APL, OpenCL, Smali, LLVM IR, Nim, PostScript, Visual Basic .NET, Chapel, Red, Haxe, Pug, WebAssembly, LFE, PureBasic, Forth, fish, ANTLR, MIPS architecture, Lasso, VBScript, Oz, CIL, Applescript, Tex, Idris, Protocol Buffers, ABAP, AMPL, Simula, PureScript, Logo, sed, PicoLisp, V, BCPL, PL/SQL, Processing, Dylan, Hack, HAML, REBOL, FLUX, DOT, Nearley, idyll, Rust MIR, MoonScript, Fantom, Squirrel, Terra, Monkey, BlitzBasic, Agda, EuLisp, Ballerina, MUMPS, Frege, AutoIt, Emacs Lisp, x86 Assembly, Zig, GNU Octave, Makefile, Lean, TOML, Hy, Nemerle, NewLisp, Zephir, Vala, X10, Icon, Turing, Flow, J, QML, Scilab, Mercury, Io, xBase, Click, Pony, Boo, QBasic, Ceylon, Java Bytecode, SPARQL, JSON5, Clean, SystemVerilog, SuperCollider, CLIPS, Stata, Cython, NetLogo, SNOBOL, Bison, HCL, AGC, PL/pgSQL, API Blueprint, POV-Ray SDL, Pike, Deno, odin, Ini, Batchfile, TLA, MiniD, Wren, ATS, C3, Dafny, ClojureScript, Csound, S-algol, Perl 6, Lex, eC, Xojo, FoxPRO, Alloy, Dhall, Embedded Crystal, E, LiveScript, Modelica, AutoHotkey, PEG.js, halide, Clipper, Objective-J, Bicep, ECL, M4, Datalog, wisp, PowerBuilder, Less, Seed7, GAP, Classroom Object Oriented Language, Pig Latin, YASnippet, PRQL, Transact-SQL, AspectJ, SETL, XBase++, KaTeX, starlark, Falcon, Netwide Assembler, Cap'n Proto, Dc, LiveCode, unison, PEG, Croc, NSIS, Golo, WxBasic, Ion, True BASIC, JCL, Augmented Backus-Naur Form, Fennel, mlir, Sather, K, CWL, SourcePawn, CIL, WDL, Cue, datascript, Ren'Py, Eve, Ragel, Java Properties, Reia, Koka, Argdown, HLSL, Ring, muPad, Ron, Unicon, HOPE, High Level Assembly, Gosu, OpenVera, SIL, GLSL, Hjson, Expect, BETA, Action!, carp, Cg, LilyPond, QB64, progsbase, PAWN, IGOR Pro, UNLAMBDA, Felix, P4, Taichi, Futhark, Slope, JAI, LPC, Euphoria, MQL5, Jule, Guile, Angelscript, Dockerfile, Pizza, beads-lang, mgmt, NCAR Command Language, KiXtart, Volt, Filebench WML, Spin, JADE, Bel, Yoix, ThinBasic, NetLinx, Concise Encoding, CLOS, Cryptol, LookML, Mu, Aldor, OpenSCAD, Apex, BlitzMax, DM, Logica, Gettext Catalog, Linden Scripting Language, GDScript, Eclipse Command Language, Nit, clay, PIC, Tea, ShaderLab, FutureBASIC, Mask, PowerBASIC, Turbo Basic, ArkScript, Harbour, StarOffice Basic, Whiley, zephyr-asdl, Praat Script, carth, CartoCSS, SugarSS, Ch, Jasmin, Literate Agda, Refal, Observable, Fancy, Game Maker Language, storyscript, Objective C++, Not Quite C, omega, OX, Alpine Abuild, Slice, mun-lang, BLISS, SimCode, Vigil, GCC Machine Description, ActiveVFP, JSON with Comments, Shen, Brightscript, MVEL, SCSS, Script.NET, Cell, Cycript, Raku, winxed, Caché Basic, Strips, SMT, Ezhil, spry, Pan, Not eXactly C, Mary, Spatial, SRecode Template, Creative Basic, LoomScript, Flow9, Type Language, Treelang, dex, Operational Control Language, VHDL-AMS, Fable, Opal, FML, Cypher Query Language, Quaint, Maya Embedded Language, Logos, XBLite, lispyscript, Gerbil Scheme, HiveQL, Guix Workflow Language, MACRO-10, Cyber, KRL, Q#, NS Basic, Module Management System, turnstile, S-PLUS, tht, dslx, Xbasic, NestedText, Rc, Redcode, OCL, Gentoo Ebuild, Vale, gentee, PROMAL, Rescript, BitBake, neut, spiral, RELAX NG, Grammatical Framework, Parser 3, Hocon, CIR, Parrot BASIC, Frink, Gherkin, flagship, JSLT, DAX, Recfiles, ddfql, Tuple space, neeilang, hilvl, PowerQuery M, Ren, Yet Another Scripting Language, holyc, CFScript, Zimpl, Nymph, Jsonnet, Boron, Mouse, Language Server Index Format, Ligo, Adventure Game Studio Script, C shell, Charity, Pawn, dlvm, epsilon, GraphQL Schema Definition Language, Z, JS++, manool, Uniform eXchange Format, Judoscript, parasail, Finite State Language, Soy, HuJSON, silk, Claro, Fjölnir, z80, owen-lang, verifpal, StruQL, Yedalog, popr, kai, BuddyScript, fizz, JSL, ldpl, pointless, OEM, Project Mentat, Easytrieve, Lite-C, Structured Query Reporter, Caché ObjectScript, Sophia, tremor-query, Heron, taf, atomese, Reactive Plan Language, FloScript, Action Code Script, ISETL, Boogie, rosette-lang, rbs, xxl, Pnuts, Bla, Lexon, Portable Bit Map Format, blz, ca65 Assembly, ctalk-lang, CLPR, Plot, Netpbm grayscale image format, wah, Wart, stella, Savi, OptimJ, AmbientTalk, Robots.txt, ppm-format, YAMP, Amazon Redshift, USD, wescheme, Rita, lain, luau, sora, SubX, Sweet Expressions, PromQL, boa, Spice, rbscript, Deesel, PacmanConf, PkgConfig, Lighttpd configuration file, Tick C, cooC, Real-Time Concurrent C, GAEA, bawk, Static Typescript, Progol

Languages without Line Comments include HTML, XML, JSON, CSS, Pascal, Mathematica, Modula-2, Regular Expressions, OCaml, Modula-3, Smalltalk, Markdown, XQuery, SPSS, Rexx, ML, SVG, Standard ML, OWL, Object Pascal, Wolfram Language, JSONiq, Superjson, Marp, ADLIB, Extended Pascal, Modula-2+

Read more about Line Comments on the web: 1.

HTML of this page generated by Features.ts

hasLazyEvaluation.html · hasLineComments.html · hasLists.html

View source

PLDB - Build the next great programming language · Search · v2023 · Day 157 · Docs · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com