Source code

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Links)
 
(5 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
== Text-based source code formats ==
 
== Text-based source code formats ==
  
See [[Programming Languages]] for a complete list.
+
Programming languages that use a plain text source code format are not listed here. Refer to [[Programming Languages]] instead.
  
* [[Assembly language]]: .asm, .s
+
== Source metadata ==
* [[BASIC]]: .bas -- Some BASICs are stored in plain text, others are tokenized as noted above
+
* [[Debian source control file]]
* [[Bourne shell script]]: .sh
+
* [[Emacs file variable]]
* [[C]]: .c, .cc, .h
+
* [[Shebang]]
* [[C++]]: .cpp, .cxx
+
* [[C Sharp|C#]]: .cs
+
* [[ChordQL]]
+
* [[Java]] : .j, .jav, .java
+
* [[JavaScript]]: .js
+
* [[M4]]: .m4
+
* [[Matlab]]: .m
+
* [[Music Macro Language]]: .mmi
+
* [[Objective-C]]: .m, .h
+
* [[Pascal]]: .pas
+
* [[Programmable Command Language|PCL]]: .pcl  -- DEC TOPS-20 Programmable Command Language
+
* [[Pixilang]]: .pixi
+
* [[Perl]]: .pl, .pm
+
* [[PHP]]: .php
+
* [[Python]]: .py, .pyc, .pyo, .pyd
+
* [[RPG]]/RPGLE/RPG IV/RPG ILE: .rpgle, .sqlrpgle
+
  
 
== See also ==
 
== See also ==
Line 48: Line 32:
 
* [[Executables]]
 
* [[Executables]]
 
* [[Programming Languages]]
 
* [[Programming Languages]]
 +
* [[Document#Documentation combined with source code]]
  
 
== Links ==
 
== Links ==
 
* [http://www.cooperhewitt.org/object-of-the-day/2013/08/26/planetary-collecting-and-preserving-code-living-object Planetary: collecting and preserving code as a living object]
 
* [http://www.cooperhewitt.org/object-of-the-day/2013/08/26/planetary-collecting-and-preserving-code-living-object Planetary: collecting and preserving code as a living object]
 +
* [https://www.sourcecodepoetry.com/ Source Code Poetry]

Latest revision as of 04:56, 30 October 2020

File Format
Name Source code
Ontology

{{{caption}}}

Source code is the program code of a programming language as stored in a computer's memory or in a file or other storage medium (programs have been stored on cassettes, punched cards, and many other media). Except in interpreted languages (like BASIC) which execute the program directly from the source, source code needs to be compiled or assembled into executables in the target machine code (possibly passing through intermediate stages of object code needing to be linked or code in some intermediary language that is in turn compiled, assembled or interpreted).

Most of the time, program source code is stored as plain text (in a character encoding), so it can be viewed or edited in any text viewer or editor, though programmer-oriented development environments offer enhanced features such as language-specific syntax highlighting and integrated access to compilers. However, there are also some specialized source code formats that do not use plain text, instead doing some sort of tokenization to the keywords and syntactic elements of the language. This was more common on early computers that had much more limited memory, disk space, and bandwidth than the present ones.

Contents

[edit] Non-text-based source code formats

[edit] Text-based source code formats

Programming languages that use a plain text source code format are not listed here. Refer to Programming Languages instead.

[edit] Source metadata

[edit] See also

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox