Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Torben Köhn committed Mar 4, 2016
1 parent e0d844a commit 332cc34
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ If no spaces are encountered, it just returns `null`.

Now we want to parse the assignment-operator (`=`) (or rather, validate that it's there)
```php

if (!$reader->peekChar('='))
throw new Exception("Failed to read: Assignment expected");

Expand Down Expand Up @@ -93,7 +92,6 @@ If you want to add other escaping, use the first parameter of `readString`.

Now you have all parts parsed to make up your actual action
```php

echo "Set `$identifier` to `$string`"; //Set `someString` to `some string`
```

Expand All @@ -105,7 +103,6 @@ This was just a small example, Tale Reader is made for loop-parsing.
## Build a small tokenizer

```php

use Tale\Reader;

//Some C-style example code
Expand Down Expand Up @@ -216,7 +213,6 @@ var_dump($tokens);
['type' => 'blockEnd']
]
*/

```


Expand All @@ -232,7 +228,6 @@ a(href=getUri('/abc', true), title=(title ? title : 'Sorry, no title.'))

To parse this, let's do the following:
```php

//Scan Identifier ("a")
$identifier = $reader->readIdentifier();

Expand Down

0 comments on commit 332cc34

Please sign in to comment.