Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Semantic Indentation

< >
Example from 1 languages: Python
class Person (object): def __init__(self, name): self.name = name
Example from 1 languages: PureScript
-- https://github.com/purescript/documentation/blob/master/language/Syntax.md -- Syntax is whitespace sensitive. The general rule of thumb is that declarations which span multiple lines should be indented past the column on which they were first defined on their subsequent lines. foo = bar + baz
Example from 1 languages: FlowchartFun
Node A goes to: Node B
Example from 1 languages: Particles
example title Particle Notation
Example from 1 languages: Scroll
* A link to PLDB https://pldb.io
Example from 1 languages: Cirru
print + 1 2 , 11
Example from 1 languages: Z
defun message msg do print : Here's a message print msg print : End of message.
Example from 1 languages: Speedie
class Person |string| name
Example from 1 languages: Crap
// Similar to python or lua
Example from 2 languages: Note, Space
settings title Note
Example from 1 languages: Sheep
define pythtree ax:real ay:real bx:real by:real depth:int do cx = ax-ay+by end
*

Languages with Semantic Indentation include Python, Haskell, CoffeeScript, Markdown, YAML, Nim, Elm, Pug, F#, PureScript, HAML, Make, Sass, reStructuredText, Imba, Literate CoffeeScript, FlowchartFun, wisp, Particles, Nemerle, Boo, Scroll, SCSS, Cyber, XL, LiveScript, Stylus, Org, Inform, Argdown, ABC, Cobra, bog, Occam, Genie, Curry, Miranda, Cirru, Z, Spin, Ohayo, Aldor, ISWIM, Speedie, Quaint, ELFE, Crap, Calcit, PROMAL, TQL, Note, BuddyScript, p4p, Space, beads-lang, Truth, Sweet Expressions, noon, Indental, Misty, Sheep, McKeeman Form, I-expressions, converge, Ordered graph data language, CSL, net-format, MADCAP VI, MADCAP, bml

*

Languages without Semantic Indentation include JavaScript, C, Java, HTML, CSS, Perl, Ruby, PHP, Go, XML, JSON, TypeScript, SQL, C#, R, PowerShell, Bash, Rust, Swift, Scala, Lua, MATLAB, Kotlin, Clojure, Elixir, Erlang, SAS, Objective-C, Prolog, Julia, Mathematica, COBOL, Dart, CUDA, Racket, Solidity, Visual Basic, Pascal, Ada, Fortran, TOML, PostgreSQL, Crystal, MySQL, Reason, D, GraphQL, Haxe, Scheme, awk, Tex, Groovy, SPSS, Chapel, OCaml, Gleam, LLVM IR, HCL, Smalltalk, SVG, VHDL, Tcl, JSON5, Idris, Forth, Deno, Visual Basic .NET, Protocol Buffers, Ini, ARM, Yacc, APL, odin, Embedded Crystal, OpenCL, LaTeX, Red, J, fish, Maple, starlark, ANTLR, V, Flow, IDL, Fennel, KaTeX, Dhall, Standard ML, Delphi, Stata, ABAP, PostCSS, Verilog, ActionScript, Ballerina, PRQL, Hy, FLUX, Factor, BASIC, Squirrel, C3, Wren, AutoHotkey, PostScript, ColdFusion, XQuery, Common Lisp, Smali, Eiffel, PEG.js, EDN, MoonScript, MUMPS, API Blueprint, NetLogo, Koka, DOT, Zephir, Vala, Lex, Jsonnet, VBScript, Frege, Logo, Pig Latin, M4, Dafny, carp, PL/SQL, Nginx, Nearley, Terra, QML, GNU Octave, Opa, Eve, Halide, Nextflow, Agda, Processing, mlir, CIR, Jison, Taichi, PL/I, AMPL, Regular Expressions, Emacs Lisp, POV-Ray SDL, Hjson, Hack, Wolfram Language, unison, GAP, Lil, YASnippet, mgmt, Applescript, Ceylon, SystemVerilog, Expect, Modula-2, DTrace, x86 Assembly, Rexx, progsbase, Cue, Ron, Oberon, ECL, PowerBuilder, ALGOL 60, Click, Scilab, idyll, WDL, TLA+, Slope, JAI, AutoIt, K, Observable, Clean, Simula, eC, Golo, Transact-SQL, Felix, CWL, datascript, AGC, Bison, Ring, Sage, Mercury, Mirah, Logica, BCPL, CIL, SuperCollider, AspectJ, Datalog, Mu, Dylan, Xojo, SugarSS, Modula-3, REBOL, ArkScript, Closure Templates, Raku, Oz, EBNF, JCL, Lily, mun-lang, Modelica, Maxima, Neko, xBase, B, Self, JFlex, Veryl, ATS, NewLisp, Fancy, Xtend, CLIPS, SourcePawn, Io, LFE, Isabelle, NCAR Command Language, Fantom, NSIS, Pike, PAWN, Befunge, Object Pascal, Filebench WML, OpenSCAD, X10, Logtalk, Turing, Icon, Dockerfile, Whiley, Lasso, LilyPond, Csound, P4, UrWeb, E, Objective C++, Java Properties, PureBasic, JSON with Comments, lispyscript, Praat Script, Euphoria, LiveCode, Cg, Clipper, Angelscript, IGOR Pro, dlvm, GDScript, Logos, JADE, Gherkin, Ch, Limbo, Monkey, XSLT, Guile, SNOBOL, spry, Objective-J, Croc, Classroom Object Oriented Language, Spatial, Harbour, Volt, Ragel, Concise Encoding, Alloy, dex, Pan, CIL, Apex, Ren'Py, neut, MQL5, Mask, Jule, Falcon, Vigil, Java Bytecode, PicoLisp, OX, spiral, C shell, popr, PL/M, Seed7, Tea, OCL, Not Quite C, NestedText, Netwide Assembler, UNLAMBDA, Script.NET, Augmented Backus-Naur Form, FreeBASIC, Linden Scripting Language, Opal, Fortress, Gentoo Ebuild, PARI/GP, DM, LPC, PIC, MAXScript, NetLinx, Joy, Eclipse Command Language, ldpl, Jasmin, Vale, Bluespec, RELAX NG, Game Maker Language, Oberon-2, S-PLUS, BitBake, dedukti, SETL, HOPE, Dc, Strips, BETA, Cycript, SMT, Structured Query Reporter, Unicon, monte, storyscript, Slice, Nymph, HiveQL, LoomScript, Cell, Sather, COMPONENT PASCAL, Lingo, LotusScript, Hocon, Rc, MiniD, gentee, Claro, WebIDL, CartoCSS, Ezhil, XS, LookML, Grammatical Framework, SRecode Template, Type Language, Refal, RenderScript, Gambas, Brightscript, Adventure Game Studio Script, Not eXactly C, Maya Embedded Language, Edje Data Collection, GCC Machine Description, ShaderLab, KRL, tht, Project Mentat, Orc, MOO, Charity, CLIST, BLISS, kai, Parser 3, Wart, Action!, Frink, HAGGIS, QB64, JCOF, Mouse, silk, manool, S-algol, Heron, Recfiles, NetRexx, Yet Another Scripting Language, KiXtart, OpenVera, JS++, Alpine Abuild, ARexx, XBase++, MVEL, PowerBASIC, Yoix, NS Basic, xxl, winxed, Rescript, Mary, neeilang, Plus, Simple Actor Language System and Architecture, EuLisp, carth, Language Server Index Format, Lite-C, taf, Bel, Judoscript, Fj枚lnir, owen-lang, Rust MIR, Xbasic, FutureBASIC, SIL, PowerQuery M, Handel-C, OEM, VHDL-AMS, blockml, SimCode, Ion, Tuple space, Fable, True BASIC, blz, Ren, False, omega, ISETL, Pnuts, S3, MACRO-10, XPL0, hilvl, Arden syntax, ProbeVue, Action Code Script, z80, Atomese, fizz, flagship, Guix Workflow Language, ActiveVFP, JSL, Operational Control Language, CLOS, epsilon, Plot, rosette-lang, Zimpl, lain, stella, verifpal, holyc, ThinBasic, FML, StarOffice Basic, Cach茅 Basic, Fibonacci, ArchieML, Bla, luau, OptimJ, Finite State Language, Module Management System, Soy, Parrot BASIC, XBLite, ca65 Assembly, GraphQL Schema Definition Language, Literate Agda, rbs, Reactive Plan Language, WxBasic, StruQL, SubX, Yedalog, Turbo Basic, Treelang, bioscript, ctalk-lang, dslx, Manchester syntax, Portable Bit Map Format, Netpbm grayscale image format, ppm-format, txr, wescheme, CFScript, ddfql, turnstile, Creative Basic, tremor-query, rbscript, sora, zephyr-asdl, WebAssembly Text Format

*

View all concepts with or missing a hasSemanticIndentation measurement

*

Read more about Semantic Indentation on the web: 1.

- Build the next great programming language Add About Search Keywords Livestreams Labs Resources Acknowledgements