swamp-modules

Crates.ioswamp-modules
lib.rsswamp-modules
version0.2.30
created_at2025-03-29 14:54:26.659068+00
updated_at2025-09-08 08:47:34.275456+00
descriptionModule support for Swamp
homepage
repositoryhttps://github.com/swamp/semantic
max_upload_size
id1611375
size34,304
Peter Bjorklund (piot)

documentation

README

Swamp Modules

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.

Overview

  • 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.
  • Integration: Relies heavily on types defined in swamp-types and swamp-semantic to represent the actual definitions stored in the symbol table.

Installation

Add this to your Cargo.toml:

[dependencies]
swamp-modules = "0.2.29"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright

Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp

Commit count: 0

cargo fmt