Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
Output Formats For Numeric Types Representing Complex NumbersWiP.OutputFormatsForNumericTypesRepresentingComplexNumbers HistoryHide minor edits - Show changes to markup 2010-01-28 13:42
by -
Changed line 200 from:
<runtime host dependent ASCII control sequence for new line> to:
<runtime host dependent ASCII control sequence for new line> ; 2010-01-28 13:41
by -
Added lines 198-200:
newline : <runtime host dependent ASCII control sequence for new line> 2010-01-28 13:36
by -
Changed lines 16-17 from:
defaultListSeparator | userDefinedListSeparator ; to:
defaultListSeparator | userDefinedListSeparator | newline ; Changed line 29 from:
newline | character whitespace? ; to:
character whitespace? ; 2010-01-28 13:34
by -
Changed line 29 from:
character whitespace? ; to:
newline | character whitespace? ; 2010-01-28 12:49
by -
Changed line 143 from:
integralPart decimalPoint fractionalPart ; to:
integralPart ( decimalPoint | decimalComma ) fractionalPart ; 2010-01-28 10:29
by -
Changed line 32 from:
Arraysto:
Arrays and Array ListsAdded lines 36-38:
complexNumberArrayList : complexNumberArray ( listSeparator complexNumberArray )* ; 2010-01-28 08:40
by -
Added lines 30-53:
@] Arrays[@ complexNumberArray : openingArrayDelimiter complexNumberValueList closingArrayDelimiter ; openingArrayDelimiter : ( defaultOpeningArrayDelimiter | userDefinedOpeningArrayDelimiter ) whitespace ; closingArrayDelimiter : whitespace ( defaultClosingArrayDelimiter | userDefinedOpeningArrayDelimiter ) ; defaultOpeningArrayDelimiter : '{' ; defaultClosingArrayDelimiter : '}' ; userDefinedOpeningArrayDelimiter : '(' | '[' ; userDefinedClosingArrayDelimiter : ')' | ']' ; 2010-01-28 06:40
by -
Changed lines 12-28 from:
complexNumberValue ( ',' whitespace complexNumberValue )* ; to:
complexNumberValue ( listSeparator complexNumberValue )* ; listSeparator : defaultListSeparator | userDefinedListSeparator ; defaultListSeparator : defaultListSeparatorForValuesWithCommas | defaultListSeparatorForValuesWithoutCommas ; defaultListSeparatorForValuesWithCommas : ';' whitespace ; defaultListSeparatorForValuesWithoutCommas : ',' whitespace ; userDefinedListSeparator : character whitespace? ; 2010-01-27 13:05
by -
Changed line 93 from:
negativeSign? decimalDigit '.' decimalDigit+ exponent ; to:
negativeSign? decimalDigit decimalPoint decimalDigit+ exponent ; 2010-01-27 12:35
by -
Changed line 46 from:
decimalDigit+ decimalPoint decimalDigit+ ; to:
decimalDigit+ ( decimalPoint | decimalComma ) decimalDigit+ ; 2010-01-27 11:51
by -
Changed lines 161-164 from:
to:
2010-01-27 11:49
by -
Changed lines 160-163 from:
to:
2010-01-27 11:48
by -
Changed lines 161-163 from:
to:
2010-01-27 11:47
by -
Changed lines 155-158 from:
to:
Added lines 160-167:
2010-01-27 11:27
by -
Changed lines 132-138 from:
whitespace | '.' | ',' ; to:
decimalPointModeDigitSeparator | decimalCommaModeDigitSeparator ; decimalPointModeDigitSeparator : whitespace | ',' ; decimalCommaModeDigitSeparator : whitespace | '.' ; 2010-01-27 11:24
by -
Added lines 81-83:
decimalPointModePartSeparator | decimalCommaModePartSeparator ; decimalPointModePartSeparator : Added lines 86-88:
decimalCommaModePartSeparator : ';' whitespace ; Changed lines 102-103 from:
engIntegralPart decimalPoint fractionalPart engExponent ; to:
engIntegralPart ( decimalPoint | decimalComma ) fractionalPart engExponent ; Changed lines 138-141 from:
'.' | ',' ; to:
'.' ; decimalComma : ',' ; 2010-01-27 09:24
by -
Changed lines 139-141 from:
to:
2010-01-27 09:23
by -
Deleted lines 145-154:
Formatting detail means the following:
2010-01-27 07:52
by -
Changed lines 148-150 from:
to:
Changed line 153 from:
to:
2010-01-27 07:50
by -
Changed lines 146-154 from:
Formatting detail means the appearance of the sign, the fill character used, the style of digit grouping, the character used as a decimal point, the appearance of the exponent, whether or not engineering format is used and if specified by the format, the number of integral, fractional and exponent digits shown to:
Formatting detail means the following:
2010-01-27 07:48
by -
Changed line 146 from:
Formatting detail means sign style, filler style, digit grouping style, decimal point style, exponent style and if specified by the format, the number of integral, fractional and exponent digits shown to:
Formatting detail means the appearance of the sign, the fill character used, the style of digit grouping, the character used as a decimal point, the appearance of the exponent, whether or not engineering format is used and if specified by the format, the number of integral, fractional and exponent digits shown 2010-01-27 07:46
by -
Changed line 146 from:
Formatting detail means sign style, filler style, digit grouping style, decimal point style, exponent style and the number of integral, fractional and exponent digits shown if their number is specified by the format to:
Formatting detail means sign style, filler style, digit grouping style, decimal point style, exponent style and if specified by the format, the number of integral, fractional and exponent digits shown 2010-01-27 07:44
by -
Added line 146:
Formatting detail means sign style, filler style, digit grouping style, decimal point style, exponent style and the number of integral, fractional and exponent digits shown if their number is specified by the format 2010-01-27 07:38
by -
Changed lines 141-142 from:
to:
2010-01-27 07:37
by -
Changed lines 141-142 from:
to:
2010-01-27 07:31
by -
Changed lines 139-141 from:
to:
2010-01-27 07:25
by -
Changed line 139 from:
to:
2010-01-27 07:21
by -
Changed line 140 from:
to:
2010-01-27 07:20
by -
Changed line 140 from:
to:
2010-01-27 07:18
by -
Added line 140:
2010-01-27 07:11
by -
Changed lines 111-112 from:
decimalDigit decimalDigit? decimalDigit? ( digitGroupSeparator? digitGroup )* ; to:
decimalDigit decimalDigit? decimalDigit? ( digitSeparator? digitGroup )* ; Changed lines 114-115 from:
( ( ( decimalDigit digitGroupSeparator? )? decimalDigit )? decimalDigit )? decimalDigit ; to:
( ( ( decimalDigit digitSeparator? )? decimalDigit )? decimalDigit )? decimalDigit ; Changed lines 117-118 from:
( decimalDigit ( decimalDigit ( decimalDigit digitGroupSeparator )? )? )* decimalDigit ; to:
( decimalDigit ( decimalDigit ( decimalDigit digitSeparator )? )? )* decimalDigit ; Changed line 125 from:
digitGrouSeparator : to:
digitSeparator : Changed line 141 from:
to:
2010-01-27 07:09
by -
Changed lines 111-112 from:
decimalDigit decimalDigit? decimalDigit? ( separator? digitGroup )* ; to:
decimalDigit decimalDigit? decimalDigit? ( digitGroupSeparator? digitGroup )* ; Changed lines 114-115 from:
( ( ( decimalDigit separator? )? decimalDigit )? decimalDigit )? decimalDigit ; to:
( ( ( decimalDigit digitGroupSeparator? )? decimalDigit )? decimalDigit )? decimalDigit ; Changed lines 117-118 from:
( decimalDigit ( decimalDigit ( decimalDigit separator )? )? )* decimalDigit ; to:
( decimalDigit ( decimalDigit ( decimalDigit digitGroupSeparator )? )? )* decimalDigit ; Changed line 125 from:
separator : to:
digitGrouSeparator : Changed line 141 from:
to:
2010-01-27 07:02
by -
Changed lines 139-141 from:
to:
2010-01-27 06:57
by -
Changed line 12 from:
complexNumberValue ( ',' whitespace complexNumberValue)* ; to:
complexNumberValue ( ',' whitespace complexNumberValue )* ; 2010-01-27 06:57
by -
Added lines 10-12:
complexNumberValueList : complexNumberValue ( ',' whitespace complexNumberValue)* ; Added line 14:
Deleted lines 135-139:
@] Complex Number Lists[@ complexNumberValueList : complexNumberValue ( ',' whitespace complexNumberValue)* ; 2010-01-27 06:56
by -
Added lines 132-136:
@] Complex Number Lists[@ complexNumberValueList : complexNumberValue ( ',' whitespace complexNumberValue)* ; 2010-01-27 06:46
by -
Changed line 95 from:
fixedFmtNumeral exponent ; to:
fixedFmtDecimal exponent ; 2010-01-27 06:44
by -
Changed lines 85-88 from:
realNumerOtherFormats : sign? fillChar* ( fixedFmtNumeral | engFmtNumeral | expFmtNumeral ) ; fixedFmtNumeral : to:
realNumberOtherFormats : sign? fillChar* ( fixedFmtDecimal | engFmtDecimal | expFmtDecimal ) ; fixedFmtDecimal : Changed line 91 from:
engFmtNumeral : to:
engFmtDecimal : Changed line 94 from:
expFmtNumeral : to:
expFmtDecimal : 2010-01-27 06:41
by -
Changed lines 68-73 from:
'(' whitespace complexPairComponents whitespace ')' ; complexPairComponents : realComponent componentSeparator imaginaryComponent ; realComponent : to:
'(' realPart partSeparator imaginaryPart ')' ; realPart : Changed line 73 from:
imaginaryComponent : to:
imaginaryPart : Changed line 76 from:
componentSeparator : to:
partSeparator : 2010-01-26 17:04
by -
Changed lines 56-63 from:
unpaddedComplexNumber | leftPaddedComplexNumber | rightPaddedComplexNumber ; leftPaddedComplexNumber : whitespace+ unpaddedComplexNumber ; rightPaddedComplexNumber : unpaddedComplexNumber whitespace+ ; to:
unpaddedComplexPair | leftPaddedComplexPair | rightPaddedComplexPair ; leftPaddedComplexPair : whitespace+ unpaddedComplexPair ; rightPaddedComplexPair : unpaddedComplexPair whitespace+ ; Changed lines 67-70 from:
unpaddedComplexNumber : '(' whitespace complexNumberComponents whitespace ')' ; complexNumberComponents : to:
unpaddedComplexPair : '(' whitespace complexPairComponents whitespace ')' ; complexPairComponents : Changed lines 74-75 from:
realNumber ; to:
formattedRealNumber ; Changed lines 77-78 from:
realNumber ; to:
formattedRealNumber ; Changed line 82 from:
realNumber : to:
formattedRealNumber : 2010-01-26 17:00
by -
Deleted line 137:
Added line 140:
2010-01-26 16:59
by -
Added line 138:
2010-01-26 16:58
by -
Changed line 10 from:
to:
@] Changed line 12 from:
to:
[@ Changed line 52 from:
to:
@] Changed line 54 from:
to:
[@ 2010-01-26 16:11
by -
Changed lines 40-41 from:
decimalDigit+ '.' decimalDigit+ ; to:
decimalDigit+ decimalPoint decimalDigit+ ; Deleted lines 119-121:
decimalPoint : '.' | ',' ; Added lines 125-127:
decimalPoint : '.' | ',' ; 2010-01-26 16:08
by -
Changed lines 28-29 from:
simpleSign? simpleDecimalRealNumber ; to:
simpleSign? simpleNonZeroDecimalRealNumber ; Changed lines 31-32 from:
simpleDecimalRealNumber imaginaryPartDesignator; to:
simpleNonZeroDecimalRealNumber imaginaryPartDesignator; Changed line 39 from:
simpleDecimalRealNumber : to:
simpleNonZeroDecimalRealNumber : Deleted lines 49-51:
simpleNonZeroDecimalRealNumber : decimalDigit+ '.' decimalDigit+ ; 2010-01-26 16:05
by -
Changed lines 9-15 from:
mathNotation | pairNotation ; mathNotation : mathNotationAllPartsZero | mathNotationImaginaryPartZero | mathNotationRealPartZero | mathNotationAllPartsNonZero ; mathNotationAllPartsZero : to:
compactNotation | expandedNotation | pairNotation ; compactNotation : compactNotationAllPartsZero | compactNotationImaginaryPartZero | compactNotationRealPartZero | compactNotationAllPartsNonZero ; compactNotationAllPartsZero : Changed lines 18-27 from:
mathNotationImaginaryPartZero : mathNotationRealPart ; mathNotationRealPartZero ; mathNotationImaginaryPart ; mathNotationAllPartsNonZero : mathNotationRealPart mathNotationImaginaryPartWithForcedSign ; mathNotationRealPart : to:
compactNotationImaginaryPartZero : compactRealPart ; compactNotationRealPartZero ; simpleSign? compactImaginaryPart ; compactNotationAllPartsNonZero : compactRealPart simpleSign compactImaginaryPart ; compactRealPart : Changed lines 30-35 from:
mathNotationImaginaryPart : simpleSign? simpleDecimalRealNumber imaginaryPartDesignator; mathNotationImaginaryPartWithForcedSign : simpleSign simpleDecimalRealNumber imaginaryPartDesignator ; to:
compactImaginaryPart : simpleDecimalRealNumber imaginaryPartDesignator; Added lines 40-51:
decimalDigit+ '.' decimalDigit+ ; expandedNotation : expandedRealPart simpleSign expandedImaginaryPart ; expandedRealPart : '0' | simpleNonZeroDecimalRealNumber ; expandedImaginaryPart : ( '0' | simpleNonZeroDecimalRealNumber ) imaginaryPartDesignator ; simpleNonZeroDecimalRealNumber : 2010-01-26 11:30
by -
Added lines 30-32:
mathNotationImaginaryPart : simpleSign? simpleDecimalRealNumber imaginaryPartDesignator; Deleted lines 34-36:
mathNotationImaginaryPart : simpleSign? simpleDecimalRealNumber imaginaryPartDesignator; 2010-01-26 11:28
by -
Changed lines 12-35 from:
mathNotationAllComponentsZero | mathNotationImaginaryComponentZero | mathNotationRealComponentZero | mathNotationAllComponentsNonZero ; mathNotationAllComponentsZero : '0' '.' '0' ; mathNotationImaginaryComponentZero : mathNotationRealComponent ; mathNotationRealComponentZero ; mathNotationImaginaryComponent 'i' ; mathNotationAllComponentsNonZero : mathNotationImaginaryComponent 'i' mathNotationRealComponentWithForcedSign ; mathNotationRealComponent : simpleSign? simpleDecimalRealNumeral ; mathNotationRealComponentWithForcedSign : simpleSign simpleDecimalRealNumeral ; mathNotationImaginaryComponent : simpleSign? simpleDecimalRealNumeral ; to:
mathNotationAllPartsZero | mathNotationImaginaryPartZero | mathNotationRealPartZero | mathNotationAllPartsNonZero ; mathNotationAllPartsZero : '0' ; mathNotationImaginaryPartZero : mathNotationRealPart ; mathNotationRealPartZero ; mathNotationImaginaryPart ; mathNotationAllPartsNonZero : mathNotationRealPart mathNotationImaginaryPartWithForcedSign ; mathNotationRealPart : simpleSign? simpleDecimalRealNumber ; mathNotationImaginaryPartWithForcedSign : simpleSign simpleDecimalRealNumber imaginaryPartDesignator ; mathNotationImaginaryPart : simpleSign? simpleDecimalRealNumber imaginaryPartDesignator; Changed lines 39-42 from:
simpleDecimalRealNumeral : to:
imaginaryPartDesignator : 'i' | 'j' ; simpleDecimalRealNumber : 2010-01-26 11:18
by -
Deleted lines 54-56:
parenthesesEnclosedComplexNumber | bracesEnclosedComplexNumber ; parenthesesEnclosedComplexNumber : Deleted lines 55-57:
bracesEnclosedComplexNumber : '{' whitespace complexNumberComponents whitespace '}' ; 2010-01-26 11:15
by -
Changed lines 9-10 from:
mathNotation | compoundNotation ; to:
mathNotation | pairNotation ; Changed line 42 from:
compoundNotation : to:
pairNotation : 2010-01-24 18:00
by -
Changed line 40 from:
decimalDigit+ decimalPoint decimalDigit+ ; to:
decimalDigit+ '.' decimalDigit+ ; 2010-01-24 11:31
by -
Changed lines 9-10 from:
simpleNotation | compoundNotation ; to:
mathNotation | compoundNotation ; Changed lines 12-15 from:
simpleNotationAllComponentsZero | simpleNotationImaginaryComponentZero | simpleNotationRealComponentZero | simpleNotationAllComponentsNonZero ; simpleNotationAllComponentsZero : to:
mathNotationAllComponentsZero | mathNotationImaginaryComponentZero | mathNotationRealComponentZero | mathNotationAllComponentsNonZero ; mathNotationAllComponentsZero : Changed line 18 from:
simpleNotationImaginaryComponentZero : to:
mathNotationImaginaryComponentZero : Changed lines 21-27 from:
simpleNotationRealComponentZero ; simpleImaginaryComponent 'i' ; simpleNotationAllComponentsNonZero : simpleImaginaryComponent 'i' simpleRealComponentWithForcedSign ; simpleRealComponent : to:
mathNotationRealComponentZero ; mathNotationImaginaryComponent 'i' ; mathNotationAllComponentsNonZero : mathNotationImaginaryComponent 'i' mathNotationRealComponentWithForcedSign ; mathNotationRealComponent : Changed line 30 from:
simpleRealComponentWithForcedSign : to:
mathNotationRealComponentWithForcedSign : Changed line 33 from:
simpleImaginaryComponent : to:
mathNotationImaginaryComponent : Added lines 76-81:
realNumberSimpleFormat | realNumberOtherFormats ; realNumberSimpleFormat : negativeSign? decimalDigit '.' decimalDigit+ exponent ; realNumerOtherFormats : 2010-01-24 10:12
by -
Changed lines 9-35 from:
unpaddedComplexNumberValue | leftPaddedComplexNumberValue | rightPaddedComplexNumberValue ; leftPaddedComplexNumberValue : padding+ unPaddedComplexNumberValue ; rightPaddedComplexNumberValue : unpaddedComplexNumberValue padding+ ; unpaddedComplexNumberValue : simpleFormat | otherFormats ; otherFormats : sign? fillChar* ( fixedFmtNumeral | engFmtNumeral | expFmtNumeral ) suffix? ; simpleFormat : negativeSign? decimalDigit '.' decimalDigit+ exponent ; fixedFmtNumeral : integralPart decimalPoint fractionalPart ; engFmtNumeral : engIntegralPart decimalPoint fractionalPart engExponent ; expFmtNumeral : fixedFmtNumeral exponent ; padding : to:
simpleNotation | compoundNotation ; simpleNotation : simpleNotationAllComponentsZero | simpleNotationImaginaryComponentZero | simpleNotationRealComponentZero | simpleNotationAllComponentsNonZero ; simpleNotationAllComponentsZero : '0' '.' '0' ; simpleNotationImaginaryComponentZero : simpleRealComponent ; simpleNotationRealComponentZero ; simpleImaginaryComponent 'i' ; simpleNotationAllComponentsNonZero : simpleImaginaryComponent 'i' simpleRealComponentWithForcedSign ; simpleRealComponent : simpleSign? simpleDecimalRealNumeral ; simpleRealComponentWithForcedSign : simpleSign simpleDecimalRealNumeral ; simpleImaginaryComponent : simpleSign? simpleDecimalRealNumeral ; simpleSign : '+' | '-' ; simpleDecimalRealNumeral : decimalDigit+ decimalPoint decimalDigit+ ; compoundNotation : unpaddedComplexNumber | leftPaddedComplexNumber | rightPaddedComplexNumber ; leftPaddedComplexNumber : whitespace+ unpaddedComplexNumber ; rightPaddedComplexNumber : unpaddedComplexNumber whitespace+ ; whitespace : Added lines 54-86:
unpaddedComplexNumber : parenthesesEnclosedComplexNumber | bracesEnclosedComplexNumber ; parenthesesEnclosedComplexNumber : '(' whitespace complexNumberComponents whitespace ')' ; bracesEnclosedComplexNumber : '{' whitespace complexNumberComponents whitespace '}' ; complexNumberComponents : realComponent componentSeparator imaginaryComponent ; realComponent : realNumber ; imaginaryComponent : realNumber ; componentSeparator : ',' whitespace ; realNumber : sign? fillChar* ( fixedFmtNumeral | engFmtNumeral | expFmtNumeral ) ; fixedFmtNumeral : integralPart decimalPoint fractionalPart ; engFmtNumeral : engIntegralPart decimalPoint fractionalPart engExponent ; expFmtNumeral : fixedFmtNumeral exponent ; Changed lines 94-95 from:
' ' | '*' | '0' ; to:
whitespace | '*' | '0' ; Changed lines 115-116 from:
' ' | '.' | ',' ; to:
whitespace | '.' | ',' ; Deleted lines 121-126:
suffix : character* ; character : <any printable ASCII character except single quotation mark> 2010-01-24 08:55
by -
Added lines 1-83:
Types
SyntaxThe EBNF for the textual representation of values of types that represent complex numbers is complexNumberValue : unpaddedComplexNumberValue | leftPaddedComplexNumberValue | rightPaddedComplexNumberValue ; leftPaddedComplexNumberValue : padding+ unPaddedComplexNumberValue ; rightPaddedComplexNumberValue : unpaddedComplexNumberValue padding+ ; unpaddedComplexNumberValue : simpleFormat | otherFormats ; otherFormats : sign? fillChar* ( fixedFmtNumeral | engFmtNumeral | expFmtNumeral ) suffix? ; simpleFormat : negativeSign? decimalDigit '.' decimalDigit+ exponent ; fixedFmtNumeral : integralPart decimalPoint fractionalPart ; engFmtNumeral : engIntegralPart decimalPoint fractionalPart engExponent ; expFmtNumeral : fixedFmtNumeral exponent ; padding : ' ' ; sign : ' ' | '+' | '-' ; negativeSign : '-' ; fillChar : ' ' | '*' | '0' ; integralPart : decimalDigit decimalDigit? decimalDigit? ( separator? digitGroup )* ; engIntegralPart : ( ( ( decimalDigit separator? )? decimalDigit )? decimalDigit )? decimalDigit ; fractionalPart : ( decimalDigit ( decimalDigit ( decimalDigit separator )? )? )* decimalDigit ; exponent : 'E' ( '+' | '-' ) decimalDigit decimalDigit+ ; engExponent : exponent ; decimalPoint : '.' | ',' ; separator : ' ' | '.' | ',' ; digitGroup : decimalDigit decimalDigit decimalDigit ; decimalDigit : '0' .. '9' ; suffix : ''' character* ''' ; character : <any printable ASCII character except single quotation mark> Static Semantics
|