The P-Lingua language for Membrane Computing
P-Lingua is a comprehensive framework for membrane computing that provides a complete ecosystem for defining, parsing, simulating, and generating code for P-systems (membrane systems).
Detailed architectural insights with Mermaid diagrams covering:
- System Architecture: High-level design patterns and data flows
- Component Deep Dive: Internal architecture of parser, simulator, and generator
- Usage Examples: Practical demonstrations and integration guides
- Linux OS (tested on Ubuntu 16.04 and Ubuntu 18.04)
- GCC 4.9.0 or higher (with support for regex)
- Flex
- Bison
- libboost-filesystem-dev
- libboost-program-options-dev
sudo apt-get install build-essential flex bison libboost-filesystem-dev libboost-program-options-dev
- make grammar
- make compiler
- make simulator
- sudo make install
graph TD
A[P-Lingua Source] --> B[Parser]
B --> C[P-System Model]
C --> D[Simulator]
C --> E[Code Generator]
D --> F[Results]
E --> G[Generated Code]
style A fill:#e3f2fd
style C fill:#f3e5f5
style F fill:#e8f5e8
style G fill:#fff3e0
The framework consists of three main components:
- Parser: Transforms P-Lingua source into executable models
- Simulator: Executes membrane computing simulations
- Generator: Produces optimized C++ implementations