promela | Promela parser using PLY | Parser library
kandi X-RAY | promela Summary
kandi X-RAY | promela Summary
A parser for the [Promela modeling language] [PLY] (Python lex-yacc) is used to generate the parser. Classes for a Promela abstract tree are included and used for representing the result of parsing. A short tutorial can be found in the file [doc.md] To install:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Return a string representation of the node
- Return a string representation of the arguments
- Return the active string
- Return a string representation of the definition
- Return a string representation of the entry
- Indent a string
- Convert x to a string
- Write node to graph g
- Generate a unique node number
- Convert g to pg
- Define a goto statement
- Process one declaration
- Create one variable definition
- Rebuild a table
- Return a string representation of the context
- Build the parser table
- Return a string representation of the variable
- Convert the node to G
- Return a string representation of the block
- Convert the statement into a pg node
promela Key Features
promela Examples and Code Snippets
Community Discussions
Trending Discussions on promela
QUESTION
First, I'll summarize the project where I'm working so it's easier to understand the problem (I'm not use to write in English, sorry for the mistakes I could commit).
I've been working on a Promela model for path planning on natural terrain for a robot using LTL conditions. In summary, the model have to read the map information from an extern file (maps can be seen as a 2D matrix containing the height of each cell), and depending on the slope between adjacent cells, the robot could navegate through some path or not. Each cell of the map is associated with one state.
I've been testing the model with some tiny maps defined directly into the Promela model, and the path is correctly generated. To test bigger and more detailed maps (real natural terrain maps), I need to use embedded C code to preprocess the file, generating boolean values (1 for allowed movements and 0 for prohibited movements) so I could assign them to Promela variables and consider them into the LTL condition.
The problem appears when I try to add needed C libraries (like math.h) to my embedded code. I tried using c_code
and c_decl
functions.
(in Init proccess, to initialize the map where I'm working):
...ANSWER
Answered 2020-Jul-08 at 09:46Finally, I found the solution. I was trying to include C libraries inside the init process of the model. It's a wrong way to do this. The correct way is using the c_code instruction before init process:
QUESTION
I'm new to Promela, and I'm not sure what the issue with my code is:
...ANSWER
Answered 2020-Mar-04 at 08:29This error
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install promela
You can use promela like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page