diff --git a/src/protocol/ast.rs b/src/protocol/ast.rs index 87e0135bc0e117077ba4a62a7682c557ca1ae55d..a0b2c384c1a9684c8d213a3c57621a4769c4200a 100644 --- a/src/protocol/ast.rs +++ b/src/protocol/ast.rs @@ -1838,7 +1838,7 @@ pub struct CallExpression { #[derive(Debug, Clone, PartialEq, Eq)] pub enum Method { - // Builtin, accessible by programmer + // Builtin function, accessible by programmer Get, Put, Fires, @@ -1846,10 +1846,12 @@ pub enum Method { Length, Assert, Print, - // Builtin, not accessible by programmer + // Builtin function, not accessible by programmer SelectStart, // SelectStart(total_num_cases, total_num_ports) SelectRegisterCasePort, // SelectRegisterCasePort(case_index, port_index, port_id) SelectWait, // SelectWait() -> u32 + // Builtin component, + ComponentRandomU32, // User-defined UserFunction, UserComponent, @@ -1860,6 +1862,7 @@ impl Method { use Method::*; match self { Get | Put | Fires | Create | Length | Assert | Print => true, + ComponentRandomU32 => true, _ => false, } }