add read_term_from_chars/3 (#637)

This commit is contained in:
Mark
2023-07-15 11:20:20 -06:00
parent b234ef7ea3
commit 5a7da721cd
4 changed files with 41 additions and 3 deletions

View File

@@ -418,7 +418,9 @@ enum SystemClauseType {
CurrentTime,
#[strum_discriminants(strum(props(Arity = "1", Name = "$quoted_token")))]
QuotedToken,
#[strum_discriminants(strum(props(Arity = "2", Name = "$read_term_from_chars")))]
#[strum_discriminants(strum(props(Arity = "2", Name = "$read_from_chars")))]
ReadFromChars,
#[strum_discriminants(strum(props(Arity = "5", Name = "$read_term_from_chars")))]
ReadTermFromChars,
#[strum_discriminants(strum(props(Arity = "1", Name = "$reset_block")))]
ResetBlock,
@@ -1735,6 +1737,7 @@ fn generate_instruction_preface() -> TokenStream {
&Instruction::CallStripModule |
&Instruction::CallCurrentTime |
&Instruction::CallQuotedToken |
&Instruction::CallReadFromChars |
&Instruction::CallReadTermFromChars |
&Instruction::CallResetBlock |
&Instruction::CallResetSCCBlock |
@@ -1959,6 +1962,7 @@ fn generate_instruction_preface() -> TokenStream {
&Instruction::ExecuteStripModule |
&Instruction::ExecuteCurrentTime |
&Instruction::ExecuteQuotedToken |
&Instruction::ExecuteReadFromChars |
&Instruction::ExecuteReadTermFromChars |
&Instruction::ExecuteResetBlock |
&Instruction::ExecuteResetSCCBlock |