Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

RDDL lexer/parser in Python3.

License

NotificationsYou must be signed in to change notification settings

thiagopbueno/pyrddl

Repository files navigation

RDDL lexer/parser in Python3.

Quickstart

$ pip3 install pyrddl

Usage

Script mode

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

Programmatic 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

License

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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp