Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Syntax (logic)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Rules used for constructing, or transforming the symbols and words of a language}} [[File:Formal languages.svg|thumb|300px|right|This diagram shows the syntactic entities which may be constructed from [[formal language]]s.<ref>[http://dictionary.reference.com/browse/syntax Dictionary Definition]</ref> The [[symbol (formal)|symbols]] and [[string (computer science)|strings of symbols]] may be broadly divided into [[nonsense]] and [[well-formed formula]]s. A formal language is identical to the set of its well-formed formulas. The set of well-formed formulas may be broadly divided into [[theorem]]s and non-theorems.]] {{Formal languages}} In [[logic]], '''syntax''' is anything having to do with [[formal language]]s or [[formal system]]s without regard to any [[interpretation (logic)|interpretation]] or [[meaning (linguistics)|meaning]] given to them. Syntax is concerned with the rules used for constructing, or transforming the symbols and words of a language, as contrasted with the [[Formal semantics (logic)|semantics]] of a language which is concerned with its meaning. The [[symbol (formal)|symbols]], [[well-formed formula|formulas]], [[formal system|system]]s, [[theorem]]s and [[formal proof|proofs]] expressed in formal languages are syntactic entities whose properties may be studied without regard to any meaning they may be given, and, in fact, need not be given any. Syntax is usually associated with the rules (or grammar) governing the composition of texts in a formal language that constitute the [[well-formed formula]]s of a formal system. In [[computer science]], the term ''[[Syntax (programming languages)|syntax]]'' refers to the rules governing the composition of well-formed [[Expression (mathematics)|expressions]] in a [[programming language]]. As in mathematical logic, it is independent of semantics and interpretation.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)