Skip to main content

parse

Function parse 

Source
pub fn parse(input: &mut Input<'_>) -> PResult<Type>
Expand description

Parse a type expression, including an optional fixed-size array suffix.

Type     ::= BaseType ('[' ArrayLen ']')?
BaseType ::= int | int8 | int16 | int32 | int64
           | uint | uint8 | uint16 | uint32 | uint64
           | bool | byte | Address | StructName
ArrayLen ::= integer-literal | const-name