Fix typo: lanugage -> language
This commit is contained in:
parent
89e1157a29
commit
103d37adc4
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ It's unlikely that you'll be able to satisfy these two properties just by transl
|
|||
|
||||
It's usually a good idea to find a formal specification for the language you're trying to parse. This specification will most likely contain a context-free grammar. As you read through the rules of this CFG, you will probably discover a complex and cyclic graph of relationships. It might be unclear how you should navigate this graph as you define your grammar.
|
||||
|
||||
Although languages have very different constructs, their constructs can often be categorized in to similar groups like *Declarations*, *Definitions*, *Statements*, *Expressions*, *Types*, and *Patterns*. In writing your grammar, a good first step is to create just enough structure to include all of these basic *groups* of symbols. For a lanugage like Go, you might start with something like this:
|
||||
Although languages have very different constructs, their constructs can often be categorized in to similar groups like *Declarations*, *Definitions*, *Statements*, *Expressions*, *Types*, and *Patterns*. In writing your grammar, a good first step is to create just enough structure to include all of these basic *groups* of symbols. For a language like Go, you might start with something like this:
|
||||
|
||||
```js
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue