refactor(interpreter): Step 1 - Setup expressions module structure

- Move expressions.rs to expressions/mod.rs
- Create empty module files: operators.rs, calls.rs, access.rs, builtins.rs
- Add module declarations to mod.rs
- Build passes successfully

Next: Step 2 - Extract operator functions
This commit is contained in:
Moe Charm
2025-08-16 12:41:19 +09:00
parent 38faaeaeeb
commit b0ed2920fd
5 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,5 @@
/*!
* Field access operations
*/
use super::*;

View File

@ -0,0 +1,5 @@
/*!
* Builtin box methods and birth methods
*/
use super::*;

View File

@ -0,0 +1,5 @@
/*!
* Method calls and from delegation calls
*/
use super::*;

View File

@ -6,6 +6,12 @@
* Core philosophy: "Everything is Box" with clean expression evaluation
*/
// Module declarations
mod operators;
mod calls;
mod access;
mod builtins;
use super::*;
use crate::ast::UnaryOperator;
use crate::boxes::{buffer::BufferBox, JSONBox, HttpClientBox, StreamBox, RegexBox, IntentBox, SocketBox, HTTPServerBox, HTTPRequestBox, HTTPResponseBox};

View File

@ -0,0 +1,5 @@
/*!
* Binary and unary operator evaluation
*/
use super::*;