Girish Mahajan (Editor)

Linear syntax

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

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.

Contents

C

Linear example in C:

Non-linear example in C:

HTML

Linear example in HTML:

Non-linear example in HTML:

SQL

Linear example in SQL:

Non-linear example in SQL:

References

Linear syntax Wikipedia