xo-reader2 xo-expresion2: work on define-expressions [WIP]
This commit is contained in:
parent
f0e7a186a8
commit
da0d736946
14 changed files with 431 additions and 4 deletions
39
include/xo/expression2/DGlobalSymtab.hpp
Normal file
39
include/xo/expression2/DGlobalSymtab.hpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/** @file DGlobalSymtab.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Binding.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
class DUniqueString;
|
||||
|
||||
/** @class DGlobalSymtab
|
||||
* @brief symbol table for toplevel environment
|
||||
**/
|
||||
struct DGlobalSymtab {
|
||||
public:
|
||||
|
||||
|
||||
public:
|
||||
/** @defgroup xo-expression2-symboltable-facet symboltable facet**/
|
||||
///@{
|
||||
|
||||
/** true for global symbol table **/
|
||||
bool is_global_symtab() const noexcept { return true; }
|
||||
|
||||
/** lookup binding for variable @p sym **/
|
||||
Binding lookup_binding(const DUniqueString * sym) const noexcept;
|
||||
|
||||
///@}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end DGlobalSymtab.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue