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.SymbolEnum: Defines the different kinds of entities that can be stored in aSymbolTable, such asType,FunctionDefinition,Constant,Alias,Blueprint,Module, etc.- Integration: Relies heavily on types defined in
swamp-typesandswamp-semanticto represent the actual definitions stored in the symbol table.
Installation
Add this to your Cargo.toml:
[]
= "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