Jump to content

Linear syntax

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ErrantX (talk | contribs) at 11:20, 27 January 2011 (clean, wikify). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Linear syntax is a computer programming term for an expression that can be parsed from left to right. Linear syntax implies the ability to write code without the use of line feed or carriage return characters. Although the use of such characters is recommended for code readability they are optional, as compilers do not rely on them to parse and compile the code. HTML, C, and SQL code are examples of languages that employ linear syntax; they all rely on commas, semicolons, and parentheses to separate code blocks.

SQL syntax

SELECT ATABLE.ACOL1, ATABLE.ACOL2, ATABLE.ACOL3, BTABLE.BCOL3, CTABLE.CCOL5 FROM ATABLE, BTABLE, CTABLE WHERE ATABLE.ACOL1=BTABLE.ACOL1 AND BTABLE.BCOL5=CTABLE.CCOL1 ORDER BY ATABLE.ACOL3 DESC

HTML syntax

<html><head><title>Web Page</title></head><body>This is a web page.</body></html>