Skip to content

A simple programming language designed for studying parsing and how to use lark-parser in specific scenarios for a particular case.

Notifications You must be signed in to change notification settings

dewantrie/lark-grammar-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Lark Parser

Example usage of the Lark Parser

Guides

From the project directory, run the following:

conda create -n py310 python=3.10
conda activate py310
pip install lark-parser
python app.py

Input

i have two cars: a red honda brio and a white honda jazz

Output

{'data': [{'unknown': 'i'}, {'unknown': 'have'}, {'unknown': 'two'}, {'unknown': 'cars:'}, {'unknown': 'a'}, {'color': 'red'}, {'brand': 'honda'}, {'model': 'brio'}, {'unknown': 'and'}, {'unknown': 'a'}, {'color': 'white'}, {'brand': 'honda'}, {'model': 'jazz'}]}

About

A simple programming language designed for studying parsing and how to use lark-parser in specific scenarios for a particular case.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages