diff --git a/labiba-parser/README.md b/labiba-parser/README.md index e4db3f5..47d6f6a 100644 --- a/labiba-parser/README.md +++ b/labiba-parser/README.md @@ -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 diff --git a/labiba-transformer/README.md b/labiba-transformer/README.md index 15e1def..e8ed2be 100644 --- a/labiba-transformer/README.md +++ b/labiba-transformer/README.md @@ -35,6 +35,9 @@ function مثل() { ``` +## repl.it +[https://repl.it/@SamehFakoua/Labiba-Transformer-Example](https://repl.it/@SamehFakoua/Labiba-Transformer-Example) + ## Install Using npm: