Skip to main content

oak_actionscript/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![warn(missing_docs)]
6
7//! Actionscript support for the Oak language framework.
8
9/// Abstract Syntax Tree (AST) definitions for ActionScript.
10pub mod ast;
11mod builder;
12
13mod language;
14/// Lexer for ActionScript.
15pub mod lexer;
16/// Language Server Protocol (LSP) and editor integration for ActionScript.
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
18pub mod lsp;
19
20/// Parser for ActionScript.
21pub mod parser;
22
23#[cfg(feature = "lsp")]
24#[cfg(feature = "mcp")]
25/// Model Context Protocol (MCP) support for ActionScript.
26pub mod mcp;
27
28// Re-export main types
29pub use crate::{
30    ast::ActionScriptRoot,
31    builder::ActionScriptBuilder,
32    language::ActionScriptLanguage,
33    lexer::{ActionScriptLexer, ActionScriptTokenType},
34    parser::{ActionScriptElementType, ActionScriptParser},
35};
36
37#[cfg(feature = "oak-pretty-print")]
38pub use crate::lsp::formatter::ActionScriptFormatter;
39
40#[cfg(feature = "oak-highlight")]
41pub use crate::lsp::highlighter::ActionScriptHighlighter;
42
43#[cfg(feature = "lsp")]
44pub use crate::lsp::ActionScriptLanguageService;
45
46#[cfg(feature = "lsp")]
47pub use crate::mcp::serve_actionscript_mcp;