Skip to content

Commit

Permalink
CLI: info added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
remorhaz committed Apr 18, 2018
1 parent 3bf21a1 commit 6d0a320
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,30 @@
Unilex is lexical analyzer generator (similar to `lex` and `flex`) with Unicode support.
It's written in PHP and generates code in PHP.

## Requirements
* PHP 7.1+

```
[WIP] Work in progress
```
## Requirements
* PHP 7.1+

***
## License
UniLex library is licensed under MIT license.

## Installation
Installation is as simple as any other [composer](https://getcomposer.org/) library's one:
```
composer require remorhaz/php-unilex
```

## Usage
### CLI
You can use command-line utility to build token matcher from specification:
```
vendor/bin/unilex -desc="My example matcher." path/to/spec/LexerSpec.php > path/to/target/TokenMatcher.php
```

### Phing
Library includes custom Phing tasks to build token matcher from specification:
```xml
<?xml version="1.0" encoding="UTF-8" ?>
Expand Down

0 comments on commit 6d0a320

Please sign in to comment.