- Notifications
You must be signed in to change notification settings - Fork8
RDDL lexer/parser in Python3.
License
thiagopbueno/pyrddl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
RDDL lexer/parser in Python3.
$ pip3 install pyrddl
Thepyrddl
script provides ways to parse and inspect RDDL filesfrom the command line.
$pyrddl --helpusage: pyrddl [-h] [-v] rddlRDDL lexer/parser in Python3.positional arguments: rddl RDDL filepathoptional arguments: -h, --help show this help message and exit -v, --verbose verbosity mode
Thepyrddl
package provides an API for integrating RDDL parserwith your own Python package/project.
frompyrddl.parserimportRDDLParser# read RDDL filewithopen(filepath,'r')asfile:rddl=file.read()# buid parserparser=RDDLParser()parser.build()# parse RDDLmodel=parser.parse(rddl)# AST
Copyright (c) 2018-2019 Thiago Pereira Bueno All Rights Reserved.
pyrddl is free software: you can redistribute it and/or modify itunder the terms of the GNU Lesser General Public License as published bythe Free Software Foundation, either version 3 of the License, or (atyour option) any later version.
pyrddl is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU LesserGeneral Public License for more details.
You should have received a copy of the GNU Lesser General Public Licensealong with pyrddl. If not, seehttp://www.gnu.org/licenses/.
About
RDDL lexer/parser in Python3.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.