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 output 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:
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:
!!!!! to:
!!!!!Arrays and Array Lists Added 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 ( 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 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:
* in decimal comma mode ** to:
* in decimal comma mode, @@decimalComma@@ is shown instead of @@decimalPoint@@, @@decimalCommaModePartSeparator@@ is shown instead of @@decimalPointModePartSeparator@@ and @@decimalCommaModeDigitSeparator@@ is shown instead of @@decimalPointModeDigitSeparator@@. 2010-01-27 11:49
by -
Changed lines 160-163 from:
* in decimal point mode ** to:
* in decimal point mode, @@decimalPoint@@ is shown instead of @@decimalComma@@, @@decimalPointModePartSeparator@@ is shown instead of @@decimalCommaModePartSeparator@@ and @@decimalPointModeDigitSeparator@@ is shown instead of @@decimalCommaModeDigitSeparator@@. 2010-01-27 11:48
by -
Changed lines 161-163 from:
** @@decimalPoint@@ is shown to:
** @@decimalPoint@@ is shown instead of @@decimalComma@@ ** @@decimalPointModePartSeparator@@ is shown instead of @@decimalCommaModePartSeparator@@ ** @@decimalPointModeDigitSeparator@@ is shown instead of @@decimalCommaModeDigitSeparator@@ 2010-01-27 11:47
by -
Changed lines 155-158 from:
* * * * @@digitSeparator@@ and @@decimalPoint@@ are never the same symbol to:
* all values in a list are shown with identical formatting. * all values in a list are shown with identical imaginary part designators. * real and imaginary parts are shown with identical formatting. Added lines 160-167:
* in decimal point mode: ** @@decimalPoint@@ is shown ** @@decimalPointModePartSeparator@@ is shown ** @@decimalPointModeDigitSeparator@@ is shown * in decimal comma mode: ** @@decimalComma@@ is shown ** @@decimalCommaModePartSeparator@@ is shown ** @@decimalCommaModeDigitSeparator@@ is shown 2010-01-27 11:27
by -
Changed lines 132-138 from:
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:
* values in a list are * for values in a list @@imaginaryPartDesignator@@ is * in pair notation, values in a list have identical formatting in every detail. to:
* all values in a list are shown in the same notation. * for all values in a list @@imaginaryPartDesignator@@ is the same. * in pair notation, all values in a list have identical formatting in every detail. 2010-01-27 09:23
by -
Deleted lines 145-154:
Formatting detail means the following: * any padding * any formatting related to the sign * any formatting related to the fill character * any formatting related to digit grouping * the character used as a decimal point * any formatting related to the exponent, * whether or not engineering format is used * the number of integral, fractional and exponent digits shown if specified by the format 2010-01-27 07:52
by -
Changed lines 148-150 from:
* * * the style of to:
* any padding * any formatting related to the sign * any formatting related to the fill character * any formatting related to digit grouping Changed line 153 from:
* to:
* any formatting related to the exponent, 2010-01-27 07:50
by -
Changed lines 146-154 from:
to:
Formatting detail means the following: * 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 * the number of integral, fractional and exponent digits shown if specified by the format 2010-01-27 07:48
by -
Changed line 146 from:
[-Formatting detail means 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 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:
* in pair notation, values in a list have identical formatting in every * in pair notation, real and imaginary part have identical formatting in every to:
* in pair notation, values in a list have identical formatting in every detail. * in pair notation, real and imaginary part have identical formatting in every detail. 2010-01-27 07:37
by -
Changed lines 141-142 from:
* to:
* in pair notation, values in a list have identical formatting in every possible detail. * in pair notation, real and imaginary part have identical formatting in every possible detail. 2010-01-27 07:31
by -
Changed lines 139-141 from:
* values in a list are always shown in the same notation * for all values in a list * to:
* values in a list are always shown in the same notation. * for values in a list @@imaginaryPartDesignator@@ is always the same. * for values in a list and for all components formatting is always the same. 2010-01-27 07:25
by -
Changed line 139 from:
* values in a list are always shown in the same notation. to:
* values in a list are always shown in the same notation and format. 2010-01-27 07:21
by -
Changed line 140 from:
* for values in a list @@imaginaryPartDesignator@@ is to:
* for all values in a list @@imaginaryPartDesignator@@ is the same. 2010-01-27 07:20
by -
Changed line 140 from:
* values in a list to:
* for values in a list @@imaginaryPartDesignator@@ is always the same. 2010-01-27 07:18
by -
Added line 140:
* values in a list always show the same imaginary part designator. 2010-01-27 07:11
by -
Changed lines 111-112 from:
decimalDigit decimalDigit? decimalDigit? ( to:
decimalDigit decimalDigit? decimalDigit? ( digitSeparator? digitGroup )* ; Changed lines 114-115 from:
( ( ( decimalDigit to:
( ( ( decimalDigit digitSeparator? )? decimalDigit )? decimalDigit )? decimalDigit ; Changed lines 117-118 from:
( decimalDigit ( decimalDigit ( decimalDigit to:
( decimalDigit ( decimalDigit ( decimalDigit digitSeparator )? )? )* decimalDigit ; Changed line 125 from:
to:
digitSeparator : Changed line 141 from:
* @@ to:
* @@digitSeparator@@ and @@decimalPoint@@ are never the same symbol. 2010-01-27 07:09
by -
Changed lines 111-112 from:
decimalDigit decimalDigit? decimalDigit? ( to:
decimalDigit decimalDigit? decimalDigit? ( digitGroupSeparator? digitGroup )* ; Changed lines 114-115 from:
( ( ( decimalDigit to:
( ( ( decimalDigit digitGroupSeparator? )? decimalDigit )? decimalDigit )? decimalDigit ; Changed lines 117-118 from:
( decimalDigit ( decimalDigit ( decimalDigit to:
( decimalDigit ( decimalDigit ( decimalDigit digitGroupSeparator )? )? )* decimalDigit ; Changed line 125 from:
to:
digitGrouSeparator : Changed line 141 from:
* @@ to:
* @@digitGroupSeparator@@ and @@decimalPoint@@ are never the same symbol. 2010-01-27 07:02
by -
Changed lines 139-141 from:
* * * the numeric value represented by @@ to:
* real and imaginary parts are always shown in the same format. * @@separator@@ and @@decimalPoint@@ never both use the same symbol. * the numeric value represented by @@engExponent@@ is always divisible by three. * the numeric value represented by @@simpleNonZeroDecimalRealNumber@@ is never zero. 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:
to:
fixedFmtDecimal exponent ; 2010-01-27 06:44
by -
Changed lines 85-88 from:
sign? fillChar* ( to:
realNumberOtherFormats : sign? fillChar* ( fixedFmtDecimal | engFmtDecimal | expFmtDecimal ) ; fixedFmtDecimal : Changed line 91 from:
to:
engFmtDecimal : Changed line 94 from:
to:
expFmtDecimal : 2010-01-27 06:41
by -
Changed lines 68-73 from:
'(' realComponent componentSeparator imaginaryComponent ; realComponent to:
'(' realPart partSeparator imaginaryPart ')' ; realPart : Changed line 73 from:
to:
imaginaryPart : Changed line 76 from:
to:
partSeparator : 2010-01-26 17:04
by -
Changed lines 56-63 from:
whitespace+ to:
unpaddedComplexPair | leftPaddedComplexPair | rightPaddedComplexPair ; leftPaddedComplexPair : whitespace+ unpaddedComplexPair ; rightPaddedComplexPair : unpaddedComplexPair whitespace+ ; Changed lines 67-70 from:
'(' whitespace to:
unpaddedComplexPair : '(' whitespace complexPairComponents whitespace ')' ; complexPairComponents : Changed lines 74-75 from:
to:
formattedRealNumber ; Changed lines 77-78 from:
to:
formattedRealNumber ; Changed line 82 from:
to:
formattedRealNumber : 2010-01-26 17:00
by -
Deleted line 137:
Added line 140:
* the numeric value represented by @@simpleNonZeroDecimalRealNumber@@ must not be zero. 2010-01-26 16:59
by -
Added line 138:
* the numeric value represented by @@simpleNonZeroDecimalRealNumber@@ must not be zero 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:57
by -
Added lines 11-12:
!!!!!Mathematical Notation Added lines 52-53:
!!!!!Pair Notation 2010-01-26 16:11
by -
Changed lines 40-41 from:
decimalDigit+ to:
decimalDigit+ decimalPoint decimalDigit+ ; Deleted lines 119-121:
'.' | ',' ; Added lines 125-127:
decimalPoint : '.' | ',' ; 2010-01-26 16:08
by -
Changed lines 28-29 from:
simpleSign? to:
simpleSign? simpleNonZeroDecimalRealNumber ; Changed lines 31-32 from:
to:
simpleNonZeroDecimalRealNumber imaginaryPartDesignator; Changed line 39 from:
to:
simpleNonZeroDecimalRealNumber : Deleted lines 49-51:
simpleNonZeroDecimalRealNumber : decimalDigit+ '.' decimalDigit+ ; 2010-01-26 16:05
by -
Changed lines 9-15 from:
to:
compactNotation | expandedNotation | pairNotation ; compactNotation : compactNotationAllPartsZero | compactNotationImaginaryPartZero | compactNotationRealPartZero | compactNotationAllPartsNonZero ; compactNotationAllPartsZero : Changed lines 18-27 from:
to:
compactNotationImaginaryPartZero : compactRealPart ; compactNotationRealPartZero ; simpleSign? compactImaginaryPart ; compactNotationAllPartsNonZero : compactRealPart simpleSign compactImaginaryPart ; compactRealPart : Changed lines 30-35 from:
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:
'0' mathNotationImaginaryComponentZero : simpleSign? simpleSign simpleSign? 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:
to:
imaginaryPartDesignator : 'i' | 'j' ; simpleDecimalRealNumber : 2010-01-26 11:18
by -
Deleted lines 54-56:
parenthesesEnclosedComplexNumber : Deleted lines 55-57:
bracesEnclosedComplexNumber : '{' whitespace complexNumberComponents whitespace '}' ; 2010-01-26 11:15
by -
Changed lines 9-10 from:
mathNotation | to:
mathNotation | pairNotation ; Changed line 42 from:
to:
pairNotation : 2010-01-24 18:00
by -
Changed line 40 from:
decimalDigit+ to:
decimalDigit+ '.' decimalDigit+ ; 2010-01-24 11:31
by -
Changed lines 9-10 from:
to:
mathNotation | compoundNotation ; Changed lines 12-15 from:
to:
mathNotationAllComponentsZero | mathNotationImaginaryComponentZero | mathNotationRealComponentZero | mathNotationAllComponentsNonZero ; mathNotationAllComponentsZero : Changed line 18 from:
to:
mathNotationImaginaryComponentZero : Changed lines 21-27 from:
to:
mathNotationRealComponentZero ; mathNotationImaginaryComponent 'i' ; mathNotationAllComponentsNonZero : mathNotationImaginaryComponent 'i' mathNotationRealComponentWithForcedSign ; mathNotationRealComponent : Changed line 30 from:
to:
mathNotationRealComponentWithForcedSign : Changed line 33 from:
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:
rightPaddedComplexNumberValue : simpleFormat : fixedFmtNumeral : engFmtNumeral : 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:
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 @@COMPLEX@@, @@LONGCOMPLEX@@ !!!Syntax The 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 * @@separator@@ and @@decimalPoint@@ must never both use the same symbol. * the numeric value represented by @@engExponent@@ must always be divisible by three. |