summaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl2.html
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-05 16:04:58 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-05 16:04:58 +0000
commit72261ff1ee3fe1fda6a0007fc994c18c4f455219 (patch)
tree93da002561294a71f416cca9484caf6294faea57 /docs/tutorial/LangImpl2.html
parente0a34353ee4bf0d990c55f6a9f593666bffb69ab (diff)
downloadllvm-72261ff1ee3fe1fda6a0007fc994c18c4f455219.tar.gz
llvm-72261ff1ee3fe1fda6a0007fc994c18c4f455219.tar.bz2
llvm-72261ff1ee3fe1fda6a0007fc994c18c4f455219.tar.xz
Fix some typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl2.html')
-rw-r--r--docs/tutorial/LangImpl2.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html
index d364f4de3e..2a0d4870e0 100644
--- a/docs/tutorial/LangImpl2.html
+++ b/docs/tutorial/LangImpl2.html
@@ -212,7 +212,7 @@ FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
<p>
The <tt>Error</tt> routines are simple helper routines that our parser will use
to handle errors. The error recovery in our parser will not be the best and
-are not particular user-friendly, but it will be enough for our tutorial. These
+is not particular user-friendly, but it will be enough for our tutorial. These
routines make it easier to handle errors in routines that have various return
types: they always return null.</p>
@@ -284,7 +284,7 @@ return null on an error.</p>
calling <tt>ParseExpression</tt> (we will soon see that <tt>ParseExpression</tt> can call
<tt>ParseParenExpr</tt>). This is powerful because it allows us to handle
recursive grammars, and keeps each production very simple. Note that
-parenthesis do not cause construction of AST nodes themselves. While we could
+parentheses do not cause construction of AST nodes themselves. While we could
do this, the most important role of parens are to guide the parser and provide
grouping. Once the parser constructs the AST, parens are not needed.</p>
@@ -432,7 +432,7 @@ the expression "a+b+(c+d)*e*f+g". Operator precedence parsing considers this
as a stream of primary expressions separated by binary operators. As such,
it will first parse the leading primary expression "a", then it will see the
pairs [+, b] [+, (c+d)] [*, e] [*, f] and [+, g]. Note that because parentheses
-are primary expressions that the binary expression parser doesn't need to worry
+are primary expressions, the binary expression parser doesn't need to worry
about nested subexpressions like (c+d) at all.
</p>
@@ -631,7 +631,7 @@ static PrototypeAST *ParsePrototype() {
</div>
<p>Given this, a function definition is very simple, just a prototype plus
-and expression to implement the body:</p>
+an expression to implement the body:</p>
<div class="doc_code">
<pre>