File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ attribute type is `char32_t`:
505505 static_assert(std::is_same_v<decltype(result), std::optional<char32_t>>));
506506
507507The good news is that usually you don't parse characters individually. When
508- you parse with _ch_, you usually parse repetition of then , which will produce
508+ you parse with _ch_, you usually parse repetition of them , which will produce
509509a _std_str_, regardless of whether you're in Unicode parsing mode or not. If
510510you do need to parse individual characters, and want to lock down their
511511attribute type, you can use _cp_ and/or _cu_ to enforce a non-polymorphic
@@ -551,7 +551,7 @@ tables below:
551551 [[`p1 || p2`] [`_bp_tup_<_ATTR_np_(p1), _ATTR_np_(p2)>`]]
552552 [[`p1 || p2 || p3`] [`_bp_tup_<_ATTR_np_(p1), _ATTR_np_(p2), _ATTR_np_(p3)>`]]
553553
554- [[`p1 % p2`] [`std::string` if `_ATTR_np_(p )` is `char` or `char32_t`, otherwise `std::vector<_ATTR_np_(p1)>`]]
554+ [[`p1 % p2`] [`std::string` if `_ATTR_np_(p1 )` is `char` or `char32_t`, otherwise `std::vector<_ATTR_np_(p1)>`]]
555555
556556 [[`p[a]`] [None.]]
557557
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ things:
584584
585585* This rule object itself is called `doubles`.
586586
587- * We've given `doubles` the diagnstic text `"doubles"` so that _Parser_ knows
587+ * We've given `doubles` the diagnostic text `"doubles"` so that _Parser_ knows
588588 how to refer to it when producing a trace of the parser during debugging.
589589
590590Ok, so if `doubles` is a parser, what does it do? We define the rule's
@@ -3608,7 +3608,7 @@ to `_trace_::off`.
36083608
36093609If we trace a substantial parser, we will see a *lot* of output. Each code
36103610point of the input must be considered, one at a time, to see if a certain rule
3611- matches. An an example, let's trace a parse using the JSON parser from
3611+ matches. As an example, let's trace a parse using the JSON parser from
36123612_ex_json_. The input is `"null"`. `null` is one of the types that a
36133613Javascript value can have; the top-level parser in the JSON parser example is:
36143614
You can’t perform that action at this time.
0 commit comments