More bytecode ops
This commit is contained in:
parent
9243c0b291
commit
5bc0d813e5
7 changed files with 395 additions and 120 deletions
|
@ -786,6 +786,14 @@ impl Into<String> for &AbstractTypeDescription {
|
|||
}
|
||||
|
||||
impl AbstractTypeDescription {
|
||||
pub fn parse_full(s: &str) -> Result<Self, Error> {
|
||||
let (c, parsed) = Self::parse_first(s)?;
|
||||
|
||||
assert!(c == s.len());
|
||||
|
||||
Ok(parsed)
|
||||
}
|
||||
|
||||
pub fn parse_first(s: &str) -> Result<(usize, Self), Error> {
|
||||
let mut offset: usize = 0;
|
||||
let arrays_parsed = s.trim_start_matches("[");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue