lua_semantics 0.9.0

semantic analysis and enhanced AST converter for lua_parser crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::Block;
use crate::Expression;

/// while statement
#[derive(Clone, Debug)]
pub struct StmtWhile {
    pub condition: Expression,
    pub block: Block,
}
impl StmtWhile {
    pub fn new(condition: Expression, block: Block) -> Self {
        Self { condition, block }
    }
}