Skip to main content

oak_cpp/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6//! Cpp support for the Oak language framework.
7
8/// AST 模块。
9pub mod ast;
10/// 类型定义模块。
11/// 语言配置模块。
12pub mod language;
13/// 词法分析器模块。
14pub mod lexer;
15/// 语法分析器模块。
16pub mod parser;
17
18pub use crate::{ast::CppRoot, language::CppLanguage, lexer::CppLexer, parser::CppParser};
19pub use lexer::token_type::CppTokenType;
20pub use parser::element_type::CppElementType;