Class RepetitionValue
java.lang.Object
svm.value.Value
svm.value.RepetitionValue
RepetitionValue.
record_value
repetition_value
::= <boolean_value>+
::= <character_value>+ | text_value
::= <integer_value>+ | <size_value>+
::= <real_value>+ | <longreal_value>+
::= <attribute_address>+ | <object_address>+
::= <general_address>+ | <program_address>+
::= <routine_address>+ | <record_value>+
text_value ::= text long_string
boolean_value ::= true | false
character_value ::= c-char byte
integer_value ::= c-int integer_literal:string
real_value ::= c-real real_literal:string
longreal_value ::= c-lreal real_literal:string
size_value ::= c-size type | nosize
attribute_address
::= < c-dot attribute:tag >* c-aaddr attribute:tag
::= anone
object_address
::= c-oaddr global_or_const:tag
::= onone
general_address
::= < c-dot attr:tag >* c-gaddr global_or_const:tag
::= gnone
program_address ::= c-paddr label:tag | nowhere
routine_address ::= c-raddr body:tag | nobody
record_value
::= c-record structured_type
<attribute_value>+ endrecord
Link to GitHub: Source File.
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault ConstructorprivateRepetitionValue(Type type, Vector<Value> values) Construct a new RepetitionValue with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidemit(DataSegment dseg) Add this value to the given DataSegmentstatic RepetitionValueofScode()Scans the remaining S-Code belonging to this RepetitionValue.static RepetitionValueCreate a new RepetitionValue of the given value.voidUtility print method.toString()
-
Field Details
-
values
-
-
Constructor Details
-
RepetitionValue
public RepetitionValue()Default Constructor -
RepetitionValue
-
-
Method Details
-
ofValue
Create a new RepetitionValue of the given value.- Parameters:
value- the value- Returns:
- a new RepetitionValue with the value
-
ofScode
Scans the remaining S-Code belonging to this RepetitionValue. Then construct a new RepetitionValue instance.- Returns:
- that RepetitionValue instance.
-
emit
Description copied from class:ValueAdd this value to the given DataSegment -
print
-
toString
-