Jump to content

Linear syntax

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 12.201.1.34 (talk) at 15:05, 12 December 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer programming, linear syntax is 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, it is optional as compilers do not rely on those characters to parse and compile the code. HTML, C, and SQL code are examples of linear syntax; they all rely on commas, semicolons, and parentheses to parse the code.


SQL LINEAR 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 LINEAR SYNTAX

<html><head><TITLE>Web Page</TITLE></head><body>

Heading

This is a Web page.

</body></html>