-
Book Overview & Buying
-
Table Of Contents
Build Your Own Programming Language - Second Edition
By :
The first step in any programming language is reading the individual characters of the input source code and figuring out which characters are grouped together. In a natural language, this would include looking at the adjacent sequences of letters to identify the words. In a programming language, clusters of characters form variable names, reserved words, or sometimes operators or punctuation marks that are several characters long. This chapter will teach you how to read source code and identify the words and punctuation from the raw characters using pattern matching.
In this chapter, we’re going to cover the following main topics:
First, let’s look at the several kinds of words that appear in program source code. A natural language reader must distinguish...