| Crates.io | swamp-modules |
| lib.rs | swamp-modules |
| version | 0.2.30 |
| created_at | 2025-03-29 14:54:26.659068+00 |
| updated_at | 2025-09-08 08:47:34.275456+00 |
| description | Module support for Swamp |
| homepage | |
| repository | https://github.com/swamp/semantic |
| max_upload_size | |
| id | 1611375 |
| size | 34,304 |
Data structures for representing modules and their contents in the Swamp programming language.
This crate defines how modules are structured and how symbols (types, functions, constants, etc.) are organized and accessed within them.
Module / ModuleRef: Represents a compiled Swamp module.SymbolTable: A key structure holding all the named definitions (symbols) exported by or
defined within a module. It allows looking up types, functions, constants, aliases, type
blueprints, and linked modules by name.Symbol Enum: Defines the different kinds of entities that can be stored in a SymbolTable,
such as Type, FunctionDefinition, Constant, Alias, Blueprint, Module, etc.swamp-types and swamp-semantic to
represent the actual definitions stored in the symbol table.Add this to your Cargo.toml:
[dependencies]
swamp-modules = "0.2.29"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp