oak_msil/parser/
mod.rs

1#![doc = include_str!("readme.md")]
2
3use crate::kind::MsilToken;
4
5/// MSIL 解析
6#[derive(Clone, Debug)]
7pub struct MsilParser {
8    /// 当前解析位置
9    position: usize,
10    /// Token 列表
11    tokens: Vec<MsilToken>,
12}
13
14impl MsilParser {
15    /// 创建新的 MSIL 解析
16    pub fn new() -> Self {
17        Self { position: 0, tokens: Vec::new() }
18    }
19}
20
21impl Default for MsilParser {
22    fn default() -> Self {
23        Self::new()
24    }
25}