Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameh Fakoua committed Jun 16, 2019
1 parent 743bd0f commit 69aadf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 8 additions & 6 deletions labiba-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@ Labiba Parser generates AST according to babel AST format

## Example:
```sh
import {parse} from 'labiba-parser';

const labiba = require('labiba-parser');
let labibaCode =`
//Comment
متغير سامح = 1;
مهمة مثل() {
ارجاع 'مرحبا';
}
مثل()
`

let ast = parse(labibaCode)

let ast = labiba.parse(labibaCode)
console.log(ast)

```
## repl.it
[https://repl.it/@SamehFakoua/Labiba-Parser-Example](https://repl.it/@SamehFakoua/Labiba-Parser-Example)

## Install

Expand Down
3 changes: 3 additions & 0 deletions labiba-transformer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function مثل() {

```

## repl.it
[https://repl.it/@SamehFakoua/Labiba-Transformer-Example](https://repl.it/@SamehFakoua/Labiba-Transformer-Example)

## Install

Using npm:
Expand Down

0 comments on commit 69aadf8

Please sign in to comment.