Skip to content

Commit 3b99d45

Browse files
authored
Update README.md
1 parent 48c2edb commit 3b99d45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ There are several kinds of combinators included in `better-parse`:
213213
val andChain = leftAssociative(term, andOperator) { l, _, r -> And(l, r) }
214214
```
215215
216-
# Grammar
216+
## Grammar
217217
218218
As a convenient way of defining a grammar of a language, there is an abstract class `Grammar`, that collects the `by`-delegated
219219
properties into a `Tokenizer` automatically, and also behaves as a composition of the `Lexer` and the `rootParser`.
@@ -251,7 +251,7 @@ val term by
251251
252252
A `Grammar` implementation can override the `tokenizer` property to provide a custom implementation of `Tokenizer`.
253253
254-
# Syntax trees
254+
## Syntax trees
255255
256256
A `Parser<T>` can be converted to another `Parser<SyntaxTree<T>>`, where a `SyntaxTree<T>`, along with the parsed `T`
257257
contains the children syntax trees, the reference to the parser and the positions in the input sequence.
@@ -290,9 +290,9 @@ There are optional arguments for customizing the transformation:
290290

291291
See [`SyntaxTreeDemo.kt`](https://github.com/h0tk3y/better-parse/blob/master/demo/src/main/kotlin/com/example/SyntaxTreeDemo.kt) for an example of working with syntax trees.
292292

293-
# Examples
293+
## Examples
294294

295295
* A boolean expressions parser that constructs a simple AST: [`BooleanExpression.kt`](https://github.com/h0tk3y/better-parse/blob/master/demo/src/main/kotlin/com/example/BooleanExpression.kt)
296296
* An integer arithmetic expressions evaluator: [`ArithmeticsEvaluator.kt`](https://github.com/h0tk3y/better-parse/blob/master/demo/src/main/kotlin/com/example/ArithmeticsEvaluator.kt)
297297
* A toy programming language parser: [(link)](https://github.com/h0tk3y/compilers-course/blob/master/src/main/kotlin/com/github/h0tk3y/compilersCourse/parsing/Parser.kt)
298-
298+
* A sample JSON parser by [silmeth](https://github.com/silmeth): [(link)](https://github.com/silmeth/jsonParser)

0 commit comments

Comments
 (0)