diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/evaluate/ConstantExpressionEvaluator.kt b/compiler/frontend/src/org/jetbrains/jet/lang/evaluate/ConstantExpressionEvaluator.kt index bd5829abd2a..979524f516e 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/evaluate/ConstantExpressionEvaluator.kt +++ b/compiler/frontend/src/org/jetbrains/jet/lang/evaluate/ConstantExpressionEvaluator.kt @@ -85,7 +85,7 @@ public class ConstantExpressionEvaluator private (val trace: BindingTrace) : Jet if (text == null) return null val result: Any? = when (expression.getNode().getElementType()) { JetNodeTypes.INTEGER_CONSTANT -> parseLong(text) - JetNodeTypes.FLOAT_CONSTANT -> parseDouble(text) + JetNodeTypes.FLOAT_CONSTANT -> parseFloatingLiteral(text) JetNodeTypes.BOOLEAN_CONSTANT -> parseBoolean(text) JetNodeTypes.CHARACTER_CONSTANT -> CompileTimeConstantResolver.parseChar(expression) JetNodeTypes.NULL -> null @@ -450,6 +450,13 @@ public fun parseLong(text: String): Long? { } } +private fun parseFloatingLiteral(text: String): Any? { + if (text.toLowerCase().endsWith('f')) { + return parseFloat(text) + } + return parseDouble(text) +} + private fun parseDouble(text: String): Double? { try { return java.lang.Double.parseDouble(text) @@ -459,6 +466,15 @@ private fun parseDouble(text: String): Double? { } } +private fun parseFloat(text: String): Float? { + try { + return java.lang.Float.parseFloat(text) + } + catch (e: NumberFormatException) { + return null + } +} + private fun parseBoolean(text: String): Boolean { if ("true".equals(text)) { return true diff --git a/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex b/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex index 91d7687f703..6a48b922506 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex +++ b/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex @@ -95,10 +95,11 @@ BIN_INTEGER_LITERAL=0[Bb]({DIGIT})* //FLOAT_LITERAL=(({FLOATING_POINT_LITERAL1})[Ff])|(({FLOATING_POINT_LITERAL2})[Ff])|(({FLOATING_POINT_LITERAL3})[Ff])|(({FLOATING_POINT_LITERAL4})[Ff]) //DOUBLE_LITERAL=(({FLOATING_POINT_LITERAL1})[Dd]?)|(({FLOATING_POINT_LITERAL2})[Dd]?)|(({FLOATING_POINT_LITERAL3})[Dd]?)|(({FLOATING_POINT_LITERAL4})[Dd]) DOUBLE_LITERAL={FLOATING_POINT_LITERAL1}|{FLOATING_POINT_LITERAL2}|{FLOATING_POINT_LITERAL3}|{FLOATING_POINT_LITERAL4} -FLOATING_POINT_LITERAL1=({DIGIT})+"."({DIGIT})+({EXPONENT_PART})? -FLOATING_POINT_LITERAL2="."({DIGIT})+({EXPONENT_PART})? -FLOATING_POINT_LITERAL3=({DIGIT})+({EXPONENT_PART}) -FLOATING_POINT_LITERAL4=({DIGIT})+ +FLOATING_POINT_LITERAL1=({DIGIT})+"."({DIGIT})+({EXPONENT_PART})?({FLOATING_POINT_LITERAL_SUFFIX})? +FLOATING_POINT_LITERAL2="."({DIGIT})+({EXPONENT_PART})?({FLOATING_POINT_LITERAL_SUFFIX})? +FLOATING_POINT_LITERAL3=({DIGIT})+({EXPONENT_PART})({FLOATING_POINT_LITERAL_SUFFIX})? +FLOATING_POINT_LITERAL4=({DIGIT})+({FLOATING_POINT_LITERAL_SUFFIX})? +FLOATING_POINT_LITERAL_SUFFIX=[Ff] EXPONENT_PART=[Ee]["+""-"]?({DIGIT})* HEX_FLOAT_LITERAL={HEX_SIGNIFICAND}{BINARY_EXPONENT}[Ff] //HEX_DOUBLE_LITERAL={HEX_SIGNIFICAND}{BINARY_EXPONENT}[Dd]? diff --git a/compiler/frontend/src/org/jetbrains/jet/lexer/_JetLexer.java b/compiler/frontend/src/org/jetbrains/jet/lexer/_JetLexer.java index 991044b3511..44e02d903f1 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lexer/_JetLexer.java +++ b/compiler/frontend/src/org/jetbrains/jet/lexer/_JetLexer.java @@ -1,4 +1,4 @@ -/* The following code was generated by JFlex 1.4.3 on 9/13/13 12:54 AM */ +/* The following code was generated by JFlex 1.4.3 on 12/4/13 10:49 AM */ package org.jetbrains.jet.lexer; @@ -14,8 +14,8 @@ import org.jetbrains.jet.lexer.JetTokens; /** * This class is a scanner generated by * JFlex 1.4.3 - * on 9/13/13 12:54 AM from the specification file - * /Users/geevee/kotlin/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex + * on 12/4/13 10:49 AM from the specification file + * C:/Development/kotlin/compiler/frontend/src/org/jetbrains/jet/lexer/Jet.flex */ class _JetLexer implements FlexLexer { /** initial size of the lookahead buffer */ @@ -44,14 +44,14 @@ class _JetLexer implements FlexLexer { * Translates characters to character classes */ private static final String ZZ_CMAP_PACKED = - "\11\0\1\3\1\7\1\0\1\3\23\0\1\3\1\14\1\26\1\13"+ - "\1\10\1\70\1\66\1\24\1\74\1\75\1\36\1\63\1\77\1\22"+ - "\1\20\1\12\1\15\11\1\1\71\1\76\1\64\1\61\1\65\1\62"+ - "\1\11\1\2\1\17\2\2\1\21\1\2\11\4\1\23\3\4\1\56"+ - "\3\4\1\16\2\4\1\72\1\25\1\73\1\0\1\4\1\6\1\44"+ - "\1\50\1\37\1\60\1\42\1\54\1\46\1\33\1\34\1\51\1\45"+ - "\1\53\1\4\1\41\1\40\1\43\1\4\1\47\1\35\1\32\1\27"+ - "\1\57\1\52\1\16\1\55\1\4\1\30\1\67\1\31\54\0\1\4"+ + "\11\0\1\3\1\7\1\0\1\3\23\0\1\3\1\14\1\27\1\13"+ + "\1\10\1\71\1\67\1\25\1\75\1\76\1\37\1\64\1\100\1\23"+ + "\1\20\1\12\1\15\11\1\1\72\1\77\1\65\1\62\1\66\1\63"+ + "\1\11\1\2\1\17\2\2\1\22\1\21\11\4\1\24\3\4\1\57"+ + "\3\4\1\16\2\4\1\73\1\26\1\74\1\0\1\4\1\6\1\45"+ + "\1\51\1\40\1\61\1\43\1\55\1\47\1\34\1\35\1\52\1\46"+ + "\1\54\1\4\1\42\1\41\1\44\1\4\1\50\1\36\1\33\1\30"+ + "\1\60\1\53\1\16\1\56\1\4\1\31\1\70\1\32\54\0\1\4"+ "\12\0\1\4\4\0\1\4\5\0\27\4\1\0\37\4\1\0\u013f\4"+ "\31\0\162\4\4\0\14\4\16\0\5\4\11\0\1\4\213\0\1\4"+ "\13\0\1\4\1\0\3\4\1\0\1\4\1\0\24\4\1\0\54\4"+ @@ -128,7 +128,7 @@ class _JetLexer implements FlexLexer { "\1\16\3\3\1\17\15\3\1\20\1\21\1\22\1\23"+ "\1\24\2\1\1\25\1\26\1\27\1\30\1\31\1\32"+ "\1\33\1\34\1\35\1\36\1\35\1\0\1\37\2\35"+ - "\1\40\1\0\1\40\3\41\1\42\1\43\1\0\1\44"+ + "\1\40\1\0\1\40\3\41\1\42\1\43\1\0\2\44"+ "\1\0\1\45\1\0\1\46\1\0\1\47\1\50\1\51"+ "\1\52\1\53\1\0\1\54\1\44\2\2\1\44\1\55"+ "\1\56\1\57\1\60\2\13\1\0\3\3\1\61\1\62"+ @@ -138,14 +138,14 @@ class _JetLexer implements FlexLexer { "\1\105\1\106\1\44\1\3\2\0\1\107\1\110\1\111"+ "\1\112\4\0\1\113\4\3\1\114\10\3\1\115\4\3"+ "\1\116\1\117\2\3\1\120\1\121\1\122\2\0\2\40"+ - "\1\45\1\46\1\123\1\124\1\44\1\0\1\125\1\3"+ + "\1\45\1\46\1\123\1\124\2\44\1\0\1\125\1\3"+ "\1\126\1\3\1\127\4\3\1\130\1\131\4\3\1\132"+ "\1\3\1\133\1\101\1\0\1\134\1\135\1\136\1\137"+ "\1\3\1\140\3\3\1\141\1\142\1\143\1\0\1\3"+ "\1\144\1\3\1\145\1\3\1\146\1\147"; private static int [] zzUnpackAction() { - int [] result = new int[228]; + int [] result = new int[230]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; @@ -170,38 +170,38 @@ class _JetLexer implements FlexLexer { private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\100\0\200\0\300\0\u0100\0\u0140\0\u0180\0\u01c0"+ - "\0\u0200\0\u0240\0\u0280\0\u02c0\0\u0300\0\u0340\0\u0380\0\u03c0"+ - "\0\u0400\0\u0440\0\u0480\0\u04c0\0\u0500\0\u0180\0\u0180\0\u0540"+ - "\0\u0580\0\u05c0\0\u0600\0\u0640\0\u0680\0\u06c0\0\u0700\0\u0740"+ - "\0\u0780\0\u07c0\0\u0800\0\u0840\0\u0880\0\u08c0\0\u0900\0\u0940"+ - "\0\u0980\0\u0180\0\u09c0\0\u0a00\0\u0a40\0\u0a80\0\u0ac0\0\u0b00"+ - "\0\u0b40\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u0b80"+ - "\0\u0180\0\u0bc0\0\u0c00\0\u0180\0\u0180\0\u0c40\0\u0c80\0\u0cc0"+ - "\0\u0d00\0\u0180\0\u0d40\0\u0d80\0\u0180\0\u0180\0\u0dc0\0\u0e00"+ - "\0\u0e40\0\u0e80\0\u0ec0\0\u0f00\0\u0f40\0\u0180\0\u0f80\0\u0fc0"+ - "\0\u0180\0\u1000\0\u1040\0\u1080\0\u10c0\0\u1100\0\u1140\0\u1180"+ - "\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u11c0\0\u1200\0\u1240"+ - "\0\u1280\0\u12c0\0\u0200\0\u0200\0\u0200\0\u1300\0\u0180\0\u1340"+ - "\0\u1380\0\u13c0\0\u1400\0\u1440\0\u1480\0\u14c0\0\u1500\0\u1540"+ - "\0\u1580\0\u15c0\0\u1600\0\u1640\0\u1680\0\u16c0\0\u0200\0\u1700"+ - "\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180\0\u0180"+ - "\0\u0180\0\u1740\0\u1780\0\u0180\0\u0180\0\u17c0\0\u1800\0\u1840"+ - "\0\u1880\0\u0180\0\u0180\0\u0180\0\u18c0\0\u0180\0\u1900\0\u1940"+ - "\0\u1980\0\u19c0\0\u19c0\0\u0180\0\u1a00\0\u1a40\0\u1a80\0\u1ac0"+ - "\0\u0180\0\u1b00\0\u1b40\0\u1b80\0\u1bc0\0\u0200\0\u1c00\0\u1c40"+ - "\0\u1c80\0\u1cc0\0\u1d00\0\u1d40\0\u1d80\0\u1dc0\0\u0180\0\u1e00"+ - "\0\u1e40\0\u1e80\0\u1ec0\0\u0200\0\u0200\0\u1f00\0\u1f40\0\u0200"+ - "\0\u0200\0\u0180\0\u1f80\0\u1fc0\0\u0180\0\u2000\0\u0180\0\u0180"+ - "\0\u0180\0\u0180\0\u2040\0\u18c0\0\u0200\0\u2080\0\u0200\0\u20c0"+ - "\0\u0200\0\u2100\0\u2140\0\u2180\0\u21c0\0\u0200\0\u0200\0\u2200"+ - "\0\u2240\0\u2280\0\u22c0\0\u0200\0\u2300\0\u0200\0\u0180\0\u2340"+ - "\0\u0c80\0\u0200\0\u0200\0\u0200\0\u2380\0\u0200\0\u23c0\0\u2400"+ - "\0\u2440\0\u0200\0\u0200\0\u0200\0\u2480\0\u24c0\0\u0200\0\u2500"+ - "\0\u0200\0\u2540\0\u0200\0\u0200"; + "\0\0\0\101\0\202\0\303\0\u0104\0\u0145\0\u0186\0\u01c7"+ + "\0\u0208\0\u0249\0\u028a\0\u02cb\0\u030c\0\u034d\0\u038e\0\u03cf"+ + "\0\u0410\0\u0451\0\u0492\0\u04d3\0\u0514\0\u0186\0\u0186\0\u0555"+ + "\0\u0596\0\u05d7\0\u0618\0\u0659\0\u069a\0\u06db\0\u071c\0\u075d"+ + "\0\u079e\0\u07df\0\u0820\0\u0861\0\u08a2\0\u08e3\0\u0924\0\u0965"+ + "\0\u09a6\0\u0186\0\u09e7\0\u0a28\0\u0a69\0\u0aaa\0\u0aeb\0\u0b2c"+ + "\0\u0b6d\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u0bae"+ + "\0\u0186\0\u0bef\0\u0c30\0\u0186\0\u0186\0\u0c71\0\u0cb2\0\u0cf3"+ + "\0\u0d34\0\u0186\0\u0d75\0\u0db6\0\u0186\0\u0186\0\u0df7\0\u0186"+ + "\0\u0e38\0\u0e79\0\u0eba\0\u0efb\0\u0f3c\0\u0f7d\0\u0186\0\u0fbe"+ + "\0\u0fff\0\u0186\0\u1040\0\u1081\0\u10c2\0\u1103\0\u1144\0\u1185"+ + "\0\u11c6\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u1207\0\u1248"+ + "\0\u1289\0\u12ca\0\u130b\0\u0208\0\u0208\0\u0208\0\u134c\0\u0186"+ + "\0\u138d\0\u13ce\0\u140f\0\u1450\0\u1491\0\u14d2\0\u1513\0\u1554"+ + "\0\u1595\0\u15d6\0\u1617\0\u1658\0\u1699\0\u16da\0\u171b\0\u0208"+ + "\0\u175c\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186\0\u0186"+ + "\0\u0186\0\u0186\0\u179d\0\u17de\0\u0186\0\u0186\0\u181f\0\u1860"+ + "\0\u18a1\0\u18e2\0\u0186\0\u0186\0\u0186\0\u1923\0\u0186\0\u1964"+ + "\0\u19a5\0\u19e6\0\u1a27\0\u1a27\0\u0186\0\u1a68\0\u1aa9\0\u1aea"+ + "\0\u1b2b\0\u0186\0\u1b6c\0\u1bad\0\u1bee\0\u1c2f\0\u0208\0\u1c70"+ + "\0\u1cb1\0\u1cf2\0\u1d33\0\u1d74\0\u1db5\0\u1df6\0\u1e37\0\u0186"+ + "\0\u1e78\0\u1eb9\0\u1efa\0\u1f3b\0\u0208\0\u0208\0\u1f7c\0\u1fbd"+ + "\0\u0208\0\u0208\0\u0186\0\u1ffe\0\u203f\0\u0186\0\u2080\0\u0186"+ + "\0\u0186\0\u0186\0\u0186\0\u20c1\0\u2102\0\u2102\0\u0208\0\u2143"+ + "\0\u0208\0\u2184\0\u0208\0\u21c5\0\u2206\0\u2247\0\u2288\0\u0208"+ + "\0\u0208\0\u22c9\0\u230a\0\u234b\0\u238c\0\u0208\0\u23cd\0\u0208"+ + "\0\u0186\0\u240e\0\u0cb2\0\u0208\0\u0208\0\u0208\0\u244f\0\u0208"+ + "\0\u2490\0\u24d1\0\u2512\0\u0208\0\u0208\0\u0208\0\u2553\0\u2594"+ + "\0\u0208\0\u25d5\0\u0208\0\u2616\0\u0208\0\u0208"; private static int [] zzUnpackRowMap() { - int [] result = new int[228]; + int [] result = new int[230]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; @@ -226,259 +226,262 @@ class _JetLexer implements FlexLexer { private static final String ZZ_TRANS_PACKED_0 = "\1\7\1\10\1\11\1\12\1\11\1\7\1\13\1\12"+ "\1\14\1\15\1\16\1\17\1\20\1\21\2\11\1\22"+ - "\1\11\1\23\1\11\1\24\1\7\1\25\1\11\1\26"+ + "\2\11\1\23\1\11\1\24\1\7\1\25\1\11\1\26"+ "\1\27\1\30\1\11\1\31\1\32\1\33\1\34\1\35"+ "\1\36\1\37\1\40\1\41\2\11\1\42\1\43\1\11"+ "\1\44\1\11\1\45\1\11\1\46\1\47\1\50\1\51"+ "\1\52\1\53\1\54\1\55\1\56\1\57\1\60\1\61"+ "\1\62\1\63\1\64\1\65\1\66\1\67\7\70\1\71"+ - "\1\72\14\70\1\73\1\74\60\70\1\75\1\72\14\70"+ + "\1\72\15\70\1\73\1\74\60\70\1\75\1\72\15\70"+ "\1\75\1\76\51\70\2\0\1\77\1\0\1\77\1\0"+ - "\1\100\7\0\2\77\1\0\1\77\1\0\1\77\3\0"+ + "\1\100\7\0\2\77\1\0\2\77\1\0\1\77\3\0"+ "\1\77\2\0\1\101\3\77\1\0\22\77\17\0\12\102"+ - "\1\103\23\102\1\104\41\102\1\7\1\10\1\11\1\12"+ + "\1\103\24\102\1\104\41\102\1\7\1\10\1\11\1\12"+ "\1\11\1\7\1\13\1\12\1\14\1\15\1\16\1\17"+ - "\1\20\1\21\2\11\1\22\1\11\1\23\1\11\1\24"+ + "\1\20\1\21\2\11\1\22\2\11\1\23\1\11\1\24"+ "\1\7\1\25\1\11\1\105\1\106\1\30\1\11\1\31"+ "\1\32\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ "\2\11\1\42\1\43\1\11\1\44\1\11\1\45\1\11"+ "\1\46\1\47\1\50\1\51\1\52\1\53\1\54\1\55"+ "\1\56\1\57\1\60\1\61\1\62\1\63\1\64\1\65"+ - "\1\66\1\67\101\0\1\10\13\0\1\10\2\0\1\107"+ - "\1\110\20\0\1\110\36\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\22\11\22\0\1\12\3\0\1\12\70\0"+ - "\6\111\2\0\70\111\2\0\1\112\1\0\1\112\1\0"+ - "\1\113\7\0\2\112\1\0\1\112\1\0\1\112\3\0"+ - "\1\112\2\0\4\112\1\0\22\112\21\0\1\114\1\0"+ - "\1\114\1\0\1\115\2\0\1\116\4\0\2\114\1\0"+ - "\1\114\1\0\1\114\3\0\1\114\2\0\4\114\1\0"+ - "\22\114\31\0\1\117\23\0\1\120\22\0\1\121\32\0"+ - "\1\122\117\0\1\123\24\0\1\124\17\0\1\125\13\0"+ - "\1\125\1\126\1\127\1\107\1\110\20\0\1\110\5\0"+ - "\1\127\30\0\1\130\13\0\1\130\2\0\1\131\101\0"+ - "\1\132\36\0\1\133\3\0\1\134\12\0\7\24\1\0"+ - "\14\24\1\135\1\136\52\24\26\0\1\137\52\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\1\11\1\140\2\11\1\0\10\11"+ - "\1\141\5\11\1\142\3\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\3\11\1\143\1\0\2\11\1\144\12\11\1\145"+ - "\4\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\146\2\0\4\11\1\0"+ - "\22\11\100\0\1\147\17\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\1\11\1\150\12\11\1\151\5\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\4\11\1\0\11\11\1\152"+ - "\10\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\153\2\0\4\11\1\0"+ - "\22\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ - "\14\11\1\154\5\11\20\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\5\11\1\155\14\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\3\11\1\156\1\0\22\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\3\11\1\157\16\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\10\11"+ - "\1\160\11\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\1\11"+ - "\1\161\2\11\1\0\22\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\162"+ - "\2\0\4\11\1\0\1\11\1\163\3\11\1\164\14\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\11\2\0\1\11\1\165\2\11"+ + "\1\66\1\67\102\0\1\10\13\0\1\10\2\0\1\107"+ + "\1\110\1\111\20\0\1\111\11\0\1\110\24\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\22\11\22\0\1\12"+ + "\3\0\1\12\71\0\6\112\2\0\71\112\2\0\1\113"+ + "\1\0\1\113\1\0\1\114\7\0\2\113\1\0\2\113"+ + "\1\0\1\113\3\0\1\113\2\0\4\113\1\0\22\113"+ + "\21\0\1\115\1\0\1\115\1\0\1\116\2\0\1\117"+ + "\4\0\2\115\1\0\2\115\1\0\1\115\3\0\1\115"+ + "\2\0\4\115\1\0\22\115\31\0\1\120\24\0\1\121"+ + "\22\0\1\122\32\0\1\123\121\0\1\124\24\0\1\125"+ + "\17\0\1\126\13\0\1\126\1\127\1\130\1\107\1\110"+ + "\1\111\20\0\1\111\5\0\1\130\3\0\1\110\24\0"+ + "\1\131\13\0\1\131\2\0\1\132\103\0\1\133\36\0"+ + "\1\134\3\0\1\135\12\0\7\24\1\0\15\24\1\136"+ + "\1\137\52\24\27\0\1\140\52\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\1\11\1\141\2\11\1\0\10\11\1\142\5\11"+ + "\1\143\3\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\3\11"+ + "\1\144\1\0\2\11\1\145\12\11\1\146\4\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\147\2\0\4\11\1\0\22\11\101\0"+ + "\1\150\17\0\2\11\1\0\2\11\7\0\3\11\1\0"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\1\11\1\151\12\11\1\152\5\11\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\4\11\1\0\11\11\1\153\10\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\154\2\0\4\11\1\0\22\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\4\11\1\0\14\11\1\155"+ + "\5\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\5\11\1\156\14\11\20\0\2\11\1\0\2\11\7\0"+ + "\3\11\1\0\2\11\1\0\1\11\3\0\1\11\2\0"+ + "\3\11\1\157\1\0\22\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\3\11\1\160\16\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\10\11\1\161\11\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\1\11\1\162\2\11"+ "\1\0\22\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\5\11\1\166\14\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\4\11\1\0\1\11\1\167\20\11\100\0\1\170"+ - "\3\0\1\171\73\0\1\172\1\0\1\173\75\0\1\174"+ - "\77\0\1\175\104\0\1\176\100\0\1\177\71\0\1\200"+ - "\107\0\1\201\6\0\7\70\2\0\14\70\2\0\51\70"+ - "\2\0\1\202\1\0\1\202\1\0\1\203\7\0\2\202"+ - "\1\0\1\202\1\0\1\202\3\0\1\202\1\204\1\0"+ - "\4\202\1\0\22\202\17\0\7\205\1\0\17\205\1\206"+ - "\50\205\26\0\1\207\52\0\2\77\1\0\2\77\7\0"+ - "\3\77\1\0\1\77\1\0\1\77\3\0\1\77\2\0"+ - "\4\77\1\0\22\77\17\0\6\210\2\0\70\210\1\0"+ - "\2\77\1\0\2\77\7\0\3\77\1\0\1\77\1\0"+ - "\1\77\3\0\1\77\2\0\1\77\1\211\2\77\1\0"+ - "\22\77\55\0\1\212\53\0\1\213\66\0\1\130\13\0"+ - "\1\130\2\0\1\214\60\0\1\215\13\0\1\215\4\0"+ - "\1\215\40\0\1\215\14\0\6\111\1\216\1\0\70\111"+ - "\1\0\2\112\1\0\2\112\7\0\3\112\1\0\1\112"+ - "\1\0\1\112\3\0\1\112\2\0\4\112\1\0\22\112"+ - "\17\0\6\217\2\0\70\217\1\0\2\114\1\0\2\114"+ - "\7\0\3\114\1\0\1\114\1\0\1\114\3\0\1\114"+ - "\2\0\4\114\1\0\22\114\17\0\6\220\2\0\70\220"+ - "\7\117\1\0\70\117\36\0\1\221\41\0\7\122\1\0"+ - "\70\122\35\0\1\222\3\0\1\223\117\0\1\224\17\0"+ - "\1\125\13\0\1\125\2\0\1\225\1\110\20\0\1\110"+ - "\36\0\2\126\12\0\1\126\1\0\1\126\1\226\1\126"+ - "\1\0\1\227\13\0\1\126\2\0\1\126\1\227\1\126"+ - "\3\0\1\126\3\0\1\126\3\0\1\126\20\0\1\127"+ - "\13\0\1\127\2\0\1\230\60\0\1\130\13\0\1\130"+ - "\3\0\1\110\20\0\1\110\35\0\7\24\1\0\70\24"+ - "\26\0\1\231\52\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\2\11"+ - "\1\232\1\11\1\0\10\11\1\233\11\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\234\2\0\4\11\1\0\5\11\1\235\10\11"+ - "\1\236\3\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\4\11\1\237\15\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\4\11\1\0\4\11\1\240\15\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\2\11\1\241\17\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\163\2\0\4\11"+ + "\1\0\1\11\1\164\3\11\1\165\14\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\1\11\1\166\2\11\1\0\22\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\5\11"+ - "\1\242\14\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\12\11\1\243\7\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\4\11\1\0\14\11\1\244\5\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\3\11\1\245\1\0\22\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\4\11\1\0\1\246\21\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ + "\1\167\14\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\1\11\1\170\20\11\101\0\1\171\3\0\1\172"+ + "\74\0\1\173\1\0\1\174\76\0\1\175\100\0\1\176"+ + "\105\0\1\177\101\0\1\200\72\0\1\201\110\0\1\202"+ + "\6\0\7\70\2\0\15\70\2\0\51\70\2\0\1\203"+ + "\1\0\1\203\1\0\1\204\7\0\2\203\1\0\2\203"+ + "\1\0\1\203\3\0\1\203\1\205\1\0\4\203\1\0"+ + "\22\203\17\0\7\206\1\0\20\206\1\207\50\206\27\0"+ + "\1\210\52\0\2\77\1\0\2\77\7\0\3\77\1\0"+ + "\2\77\1\0\1\77\3\0\1\77\2\0\4\77\1\0"+ + "\22\77\17\0\6\211\2\0\71\211\1\0\2\77\1\0"+ + "\2\77\7\0\3\77\1\0\2\77\1\0\1\77\3\0"+ + "\1\77\2\0\1\77\1\212\2\77\1\0\22\77\56\0"+ + "\1\213\53\0\1\214\67\0\1\131\13\0\1\131\2\0"+ + "\1\215\61\0\1\216\13\0\1\216\3\0\1\110\1\0"+ + "\1\216\31\0\1\110\6\0\1\216\14\0\6\112\1\217"+ + "\1\0\71\112\1\0\2\113\1\0\2\113\7\0\3\113"+ + "\1\0\2\113\1\0\1\113\3\0\1\113\2\0\4\113"+ + "\1\0\22\113\17\0\6\220\2\0\71\220\1\0\2\115"+ + "\1\0\2\115\7\0\3\115\1\0\2\115\1\0\1\115"+ + "\3\0\1\115\2\0\4\115\1\0\22\115\17\0\6\221"+ + "\2\0\71\221\7\120\1\0\71\120\37\0\1\222\41\0"+ + "\7\123\1\0\71\123\36\0\1\223\3\0\1\224\120\0"+ + "\1\225\17\0\1\126\13\0\1\126\2\0\1\226\1\110"+ + "\1\111\20\0\1\111\11\0\1\110\24\0\2\127\12\0"+ + "\1\127\1\0\1\127\1\227\2\127\1\0\1\230\13\0"+ + "\1\127\2\0\1\127\1\230\1\127\3\0\1\127\3\0"+ + "\1\127\3\0\1\127\20\0\1\130\13\0\1\130\2\0"+ + "\1\231\61\0\1\131\13\0\1\131\3\0\1\110\1\111"+ + "\20\0\1\111\11\0\1\110\23\0\7\24\1\0\71\24"+ + "\27\0\1\232\52\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\2\11"+ + "\1\233\1\11\1\0\10\11\1\234\11\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\235\2\0\4\11\1\0\5\11\1\236\10\11"+ + "\1\237\3\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\4\11\1\240\15\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\4\11\1\241\15\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\2\11\1\242\17\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\5\11"+ + "\1\243\14\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\12\11\1\244\7\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\14\11\1\245\5\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\3\11\1\246\1\0\22\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\4\11\1\0\1\247\21\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\22\11"+ - "\1\0\1\247\16\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\1\250"+ + "\1\0\1\250\16\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\1\251"+ "\3\11\1\0\22\11\20\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\3\11\1\251\16\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\2\11\1\252\1\11\1\0\3\11\1\253"+ + "\3\11\1\0\2\11\1\0\1\11\3\0\1\11\2\0"+ + "\4\11\1\0\3\11\1\252\16\11\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\2\11\1\253\1\11\1\0\3\11\1\254"+ "\16\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ - "\2\11\1\254\17\11\20\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\10\11\1\255\11\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\4\11\1\0\14\11\1\256\5\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\2\11\1\257\1\11\1\0"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\2\11\1\255\17\11\20\0\2\11\1\0\2\11\7\0"+ + "\3\11\1\0\2\11\1\0\1\11\3\0\1\11\2\0"+ + "\4\11\1\0\10\11\1\256\11\11\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\4\11\1\0\14\11\1\257\5\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\2\11\1\260\1\11\1\0"+ "\22\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ - "\10\11\1\260\3\11\1\261\5\11\100\0\1\262\17\0"+ - "\2\202\1\0\2\202\7\0\3\202\1\0\1\202\1\0"+ - "\1\202\3\0\1\202\2\0\4\202\1\0\22\202\17\0"+ - "\6\263\2\0\70\263\1\0\2\264\12\0\1\264\1\0"+ - "\1\264\1\0\1\264\15\0\1\264\2\0\1\264\1\0"+ - "\1\264\3\0\1\264\3\0\1\264\3\0\1\264\45\0"+ - "\1\74\51\0\6\210\1\265\1\0\70\210\1\0\2\77"+ - "\1\0\2\77\7\0\3\77\1\0\1\77\1\0\1\77"+ - "\3\0\1\77\2\0\2\77\1\266\1\77\1\0\22\77"+ - "\20\0\1\215\13\0\1\215\62\0\6\217\1\267\1\0"+ - "\70\217\6\220\1\270\1\0\70\220\12\0\1\271\66\0"+ - "\2\272\1\0\2\272\7\0\3\272\1\0\1\272\1\0"+ - "\1\272\3\0\1\272\2\0\4\272\1\0\22\272\20\0"+ - "\1\130\13\0\1\130\63\0\2\273\12\0\1\273\1\0"+ - "\1\273\1\214\1\273\15\0\1\273\2\0\1\273\1\0"+ - "\1\273\3\0\1\273\3\0\1\273\3\0\1\273\20\0"+ - "\1\215\13\0\1\215\4\0\1\274\40\0\1\274\34\0"+ - "\1\214\60\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\3\11\1\275"+ - "\1\0\22\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\1\11\1\276\20\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\4\11\1\0\3\11\1\277\16\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\2\11\1\300\1\11\1\0\22\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\10\11\1\261\3\11\1\262\5\11\101\0\1\263\17\0"+ + "\2\203\1\0\2\203\7\0\3\203\1\0\2\203\1\0"+ + "\1\203\3\0\1\203\2\0\4\203\1\0\22\203\17\0"+ + "\6\264\2\0\71\264\1\0\2\265\12\0\1\265\1\0"+ + "\1\265\1\0\2\265\15\0\1\265\2\0\1\265\1\0"+ + "\1\265\3\0\1\265\3\0\1\265\3\0\1\265\46\0"+ + "\1\74\51\0\6\211\1\266\1\0\71\211\1\0\2\77"+ + "\1\0\2\77\7\0\3\77\1\0\2\77\1\0\1\77"+ + "\3\0\1\77\2\0\2\77\1\267\1\77\1\0\22\77"+ + "\20\0\1\216\13\0\1\216\3\0\1\110\33\0\1\110"+ + "\23\0\6\220\1\270\1\0\71\220\6\221\1\271\1\0"+ + "\71\221\12\0\1\272\67\0\2\273\1\0\2\273\7\0"+ + "\3\273\1\0\2\273\1\0\1\273\3\0\1\273\2\0"+ + "\4\273\1\0\22\273\20\0\1\131\13\0\1\131\64\0"+ + "\2\274\12\0\1\274\1\0\1\274\1\215\2\274\15\0"+ + "\1\274\2\0\1\274\1\0\1\274\3\0\1\274\3\0"+ + "\1\274\3\0\1\274\20\0\1\275\13\0\1\275\5\0"+ + "\1\276\40\0\1\276\34\0\1\215\61\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\3\11\1\277\1\0\22\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\1\11\1\300\20\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\3\11"+ "\1\301\16\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\3\11\1\302\16\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\1\303\3\11\1\0\22\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\3\11\1\304\1\0\22\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\3\11\1\305\16\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\14\11"+ - "\1\306\5\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\3\11\1\307\16\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\4\11\1\0\6\11\1\310\13\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\311\2\0\4\11\1\0\22\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\5\11\1\312\14\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\14\11"+ - "\1\313\5\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\2\11\1\314\17\11\20\0\2\11\1\0\2\11"+ - "\7\0\3\11\1\0\1\11\1\0\1\11\3\0\1\11"+ - "\2\0\3\11\1\315\1\0\22\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\3\11\1\316\1\0\22\11\17\0\6\263"+ - "\1\317\1\0\70\263\1\0\2\320\12\0\1\320\1\0"+ - "\1\320\1\0\1\320\15\0\1\320\2\0\1\320\1\0"+ - "\1\320\3\0\1\320\3\0\1\320\3\0\1\320\20\0"+ - "\2\77\1\0\2\77\7\0\3\77\1\0\1\77\1\0"+ - "\1\77\3\0\1\77\2\0\3\77\1\321\1\0\22\77"+ - "\20\0\2\273\12\0\1\273\1\0\1\273\1\0\1\273"+ - "\1\0\1\227\13\0\1\273\2\0\1\273\1\227\1\273"+ - "\3\0\1\273\3\0\1\273\3\0\1\273\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\13\11\1\322\6\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\11\2\0\1\323\3\11\1\0"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\2\11"+ + "\1\302\1\11\1\0\22\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\3\11\1\303\16\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\3\11\1\304\16\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\1\305\3\11\1\0"+ "\22\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ - "\10\11\1\324\11\11\20\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\2\11\1\325\1\11\1\0\22\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\3\11\1\326\1\0\22\11\20\0\2\11"+ - "\1\0\2\11\7\0\3\11\1\0\1\11\1\0\1\11"+ - "\3\0\1\11\2\0\4\11\1\0\1\327\21\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\4\11\1\0\5\11\1\330"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\3\11\1\306"+ + "\1\0\22\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\3\11\1\307\16\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\14\11\1\310\5\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\3\11\1\311\16\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\6\11"+ + "\1\312\13\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\313\2\0\4\11"+ + "\1\0\22\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\5\11\1\314\14\11\20\0\2\11\1\0\2\11"+ + "\7\0\3\11\1\0\2\11\1\0\1\11\3\0\1\11"+ + "\2\0\4\11\1\0\14\11\1\315\5\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\2\11\1\316\17\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\3\11\1\317\1\0"+ + "\22\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\3\11\1\320"+ + "\1\0\22\11\17\0\6\264\1\321\1\0\71\264\1\0"+ + "\2\322\12\0\1\322\1\0\1\322\1\0\2\322\15\0"+ + "\1\322\2\0\1\322\1\0\1\322\3\0\1\322\3\0"+ + "\1\322\3\0\1\322\20\0\2\77\1\0\2\77\7\0"+ + "\3\77\1\0\2\77\1\0\1\77\3\0\1\77\2\0"+ + "\3\77\1\323\1\0\22\77\20\0\2\274\12\0\1\274"+ + "\1\0\1\274\1\0\2\274\1\0\1\230\13\0\1\274"+ + "\2\0\1\274\1\230\1\274\3\0\1\274\3\0\1\274"+ + "\3\0\1\274\20\0\1\275\13\0\1\275\64\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\13\11\1\324\6\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\11\2\0\1\325\3\11\1\0"+ + "\22\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\10\11\1\326\11\11\20\0\2\11\1\0\2\11\7\0"+ + "\3\11\1\0\2\11\1\0\1\11\3\0\1\11\2\0"+ + "\2\11\1\327\1\11\1\0\22\11\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\3\11\1\330\1\0\22\11\20\0\2\11"+ + "\1\0\2\11\7\0\3\11\1\0\2\11\1\0\1\11"+ + "\3\0\1\11\2\0\4\11\1\0\1\331\21\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\4\11\1\0\5\11\1\332"+ "\14\11\20\0\2\11\1\0\2\11\7\0\3\11\1\0"+ - "\1\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ - "\10\11\1\331\11\11\20\0\2\11\1\0\2\11\7\0"+ - "\3\11\1\0\1\11\1\0\1\11\3\0\1\11\2\0"+ - "\4\11\1\0\6\11\1\332\13\11\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\4\11\1\0\3\11\1\333\16\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\4\11\1\0\3\11\1\334"+ - "\16\11\20\0\2\335\12\0\1\335\1\0\1\335\1\0"+ - "\1\335\15\0\1\335\2\0\1\335\1\0\1\335\3\0"+ - "\1\335\3\0\1\335\3\0\1\335\20\0\2\11\1\0"+ - "\2\11\7\0\3\11\1\0\1\11\1\0\1\11\3\0"+ - "\1\11\2\0\4\11\1\0\2\11\1\336\17\11\20\0"+ - "\2\11\1\0\2\11\7\0\3\11\1\0\1\11\1\0"+ - "\1\11\3\0\1\11\2\0\1\337\3\11\1\0\22\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ + "\2\11\1\0\1\11\3\0\1\11\2\0\4\11\1\0"+ + "\10\11\1\333\11\11\20\0\2\11\1\0\2\11\7\0"+ + "\3\11\1\0\2\11\1\0\1\11\3\0\1\11\2\0"+ + "\4\11\1\0\6\11\1\334\13\11\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\4\11\1\0\3\11\1\335\16\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\4\11\1\0\3\11\1\336"+ + "\16\11\20\0\2\337\12\0\1\337\1\0\1\337\1\0"+ + "\2\337\15\0\1\337\2\0\1\337\1\0\1\337\3\0"+ + "\1\337\3\0\1\337\3\0\1\337\20\0\2\11\1\0"+ + "\2\11\7\0\3\11\1\0\2\11\1\0\1\11\3\0"+ + "\1\11\2\0\4\11\1\0\2\11\1\340\17\11\20\0"+ + "\2\11\1\0\2\11\7\0\3\11\1\0\2\11\1\0"+ + "\1\11\3\0\1\11\2\0\1\341\3\11\1\0\22\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\7\11"+ - "\1\340\12\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\2\11\1\341\17\11\20\0\2\205\12\0\1\205"+ - "\1\0\1\205\1\0\1\205\15\0\1\205\2\0\1\205"+ - "\1\0\1\205\3\0\1\205\3\0\1\205\3\0\1\205"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ - "\1\0\1\11\3\0\1\342\2\0\4\11\1\0\22\11"+ - "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\1\11"+ + "\1\342\12\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\2\11\1\343\17\11\20\0\2\206\12\0\1\206"+ + "\1\0\1\206\1\0\2\206\15\0\1\206\2\0\1\206"+ + "\1\0\1\206\3\0\1\206\3\0\1\206\3\0\1\206"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ + "\1\0\1\11\3\0\1\344\2\0\4\11\1\0\22\11"+ + "\20\0\2\11\1\0\2\11\7\0\3\11\1\0\2\11"+ "\1\0\1\11\3\0\1\11\2\0\4\11\1\0\3\11"+ - "\1\343\16\11\20\0\2\11\1\0\2\11\7\0\3\11"+ - "\1\0\1\11\1\0\1\11\3\0\1\11\2\0\4\11"+ - "\1\0\3\11\1\344\16\11\17\0"; + "\1\345\16\11\20\0\2\11\1\0\2\11\7\0\3\11"+ + "\1\0\2\11\1\0\1\11\3\0\1\11\2\0\4\11"+ + "\1\0\3\11\1\346\16\11\17\0"; private static int [] zzUnpackTrans() { - int [] result = new int[9600]; + int [] result = new int[9815]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; @@ -521,16 +524,16 @@ class _JetLexer implements FlexLexer { private static final String ZZ_ATTRIBUTE_PACKED_0 = "\6\0\1\11\16\1\2\11\22\1\1\11\7\1\6\11"+ "\1\1\1\11\1\1\1\0\2\11\2\1\1\0\1\1"+ - "\1\11\2\1\2\11\1\0\1\1\1\0\1\1\1\0"+ - "\1\1\1\0\1\11\2\1\1\11\1\1\1\0\5\1"+ - "\5\11\1\1\1\0\7\1\1\11\21\1\11\11\1\1"+ - "\1\0\2\11\1\1\2\0\1\1\3\11\1\1\1\11"+ - "\2\0\3\1\1\11\4\0\1\11\15\1\1\11\12\1"+ - "\1\11\2\0\1\11\1\1\4\11\1\1\1\0\22\1"+ - "\1\11\1\0\14\1\1\0\7\1"; + "\1\11\2\1\2\11\1\0\1\11\1\1\1\0\1\1"+ + "\1\0\1\1\1\0\1\11\2\1\1\11\1\1\1\0"+ + "\5\1\5\11\1\1\1\0\7\1\1\11\21\1\11\11"+ + "\1\1\1\0\2\11\1\1\2\0\1\1\3\11\1\1"+ + "\1\11\2\0\3\1\1\11\4\0\1\11\15\1\1\11"+ + "\12\1\1\11\2\0\1\11\1\1\4\11\2\1\1\0"+ + "\22\1\1\11\1\0\14\1\1\0\7\1"; private static int [] zzUnpackAttribute() { - int [] result = new int[228]; + int [] result = new int[230]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; @@ -901,198 +904,189 @@ class _JetLexer implements FlexLexer { { return JetTokens.NULL_KEYWORD ; } case 108: break; - case 35: - { if (lBraceCount == 0) { - popState(); - return JetTokens.LONG_TEMPLATE_ENTRY_END; - } - lBraceCount--; - return JetTokens.RBRACE; - } - case 109: break; case 19: { return JetTokens.LT ; } - case 110: break; + case 109: break; case 54: { return JetTokens.DO_KEYWORD ; } - case 111: break; + case 110: break; case 18: { return JetTokens.PLUS ; } - case 112: break; + case 111: break; case 57: { return JetTokens.PLUSEQ ; } - case 113: break; + case 112: break; case 92: { popState(); return JetTokens.THIS_KEYWORD; } - case 114: break; + case 113: break; case 28: { return JetTokens.COMMA ; } - case 115: break; + case 114: break; case 20: { return JetTokens.GT ; } - case 116: break; + case 115: break; case 4: { return JetTokens.WHITE_SPACE; } - case 117: break; + case 116: break; case 26: { return JetTokens.RPAR ; } - case 118: break; + case 117: break; case 56: { return JetTokens.DOUBLE_ARROW; } - case 119: break; + case 118: break; case 86: { return JetTokens.TRUE_KEYWORD ; } - case 120: break; + case 119: break; case 37: { return JetTokens.FIELD_IDENTIFIER; } - case 121: break; + case 120: break; case 61: { return JetTokens.ANDAND ; } - case 122: break; + case 121: break; case 66: { pushState(LONG_TEMPLATE_ENTRY); return JetTokens.LONG_TEMPLATE_ENTRY_START; } - case 123: break; + case 122: break; case 36: { return JetTokens.FLOAT_LITERAL; } - case 124: break; + case 123: break; case 40: { return JetTokens.EOL_COMMENT; } - case 125: break; + case 124: break; case 90: { return JetTokens.WHEN_KEYWORD ; } - case 126: break; + case 125: break; case 75: { pushState(RAW_STRING); return JetTokens.OPEN_QUOTE; } - case 127: break; + case 126: break; case 22: { return JetTokens.COLON ; } - case 128: break; + case 127: break; case 59: { return JetTokens.LTEQ ; } - case 129: break; + case 128: break; case 48: { return JetTokens.ARROW ; } - case 130: break; + case 129: break; case 32: { popState(); return JetTokens.IDENTIFIER; } - case 131: break; + case 130: break; case 23: { return JetTokens.LBRACKET ; } - case 132: break; + case 131: break; case 70: { yypushback(2); return JetTokens.INTEGER_LITERAL; } - case 133: break; + case 132: break; case 11: { return JetTokens.CHARACTER_LITERAL; } - case 134: break; + case 133: break; case 80: { return JetTokens.VAR_KEYWORD ; } - case 135: break; + case 134: break; case 60: { return JetTokens.GTEQ ; } - case 136: break; + case 135: break; case 2: { return JetTokens.INTEGER_LITERAL; } - case 137: break; + case 136: break; case 14: { return JetTokens.RBRACE ; } - case 138: break; + case 137: break; case 96: { return JetTokens.CLASS_KEYWORD ; } - case 139: break; + case 138: break; case 76: { return JetTokens.TRY_KEYWORD ; } - case 140: break; + case 139: break; case 8: { return JetTokens.EXCL ; } - case 141: break; + case 140: break; case 44: { return JetTokens.EXCLEQ ; } - case 142: break; + case 141: break; case 47: { return JetTokens.MINUSEQ ; } - case 143: break; + case 142: break; case 102: { return JetTokens.PACKAGE_KEYWORD ; } - case 144: break; + case 143: break; case 93: { return JetTokens.THROW_KEYWORD ; } - case 145: break; + case 144: break; case 95: { return JetTokens.SUPER_KEYWORD ; } - case 146: break; - case 69: - { if (commentDepth > 0) { - commentDepth--; - } - else { - int state = yystate(); - popState(); - zzStartRead = commentStart; - return commentStateToTokenType(state); - } - } - case 147: break; + case 145: break; case 98: { return JetTokens.WHILE_KEYWORD ; } - case 148: break; + case 146: break; case 46: { return JetTokens.MINUSMINUS; } - case 149: break; + case 147: break; case 103: { return JetTokens.CONTINUE_KEYWORD ; } - case 150: break; + case 148: break; case 73: { return JetTokens.NOT_IN; } - case 151: break; + case 149: break; case 39: { return JetTokens.ATAT ; } - case 152: break; + case 150: break; + case 71: + { pushState(DOC_COMMENT); + commentDepth = 0; + commentStart = getTokenStart(); + } + case 151: break; case 6: { return JetTokens.DIV ; } + case 152: break; + case 65: + { pushState(SHORT_TEMPLATE_ENTRY); + yypushback(yylength() - 1); + return JetTokens.SHORT_TEMPLATE_ENTRY_START; + } case 153: break; case 38: { return JetTokens.LABEL_IDENTIFIER; @@ -1106,10 +1100,14 @@ class _JetLexer implements FlexLexer { { return JetTokens.QUEST ; } case 156: break; - case 71: - { pushState(DOC_COMMENT); - commentDepth = 0; - commentStart = getTokenStart(); + case 43: + { if (zzCurrentPos == 0) { + return JetTokens.SHEBANG_COMMENT; + } + else { + yypushback(yylength() - 1); + return JetTokens.HASH; + } } case 157: break; case 62: @@ -1136,77 +1134,83 @@ class _JetLexer implements FlexLexer { { return TokenType.BAD_CHARACTER; } case 163: break; - case 65: - { pushState(SHORT_TEMPLATE_ENTRY); - yypushback(yylength() - 1); - return JetTokens.SHORT_TEMPLATE_ENTRY_START; - } - case 164: break; case 72: { return JetTokens.NOT_IS; } - case 165: break; + case 164: break; case 15: { return JetTokens.MUL ; } - case 166: break; + case 165: break; case 24: { return JetTokens.RBRACKET ; } - case 167: break; + case 166: break; case 58: { return JetTokens.PLUSPLUS ; } + case 167: break; + case 85: + { return JetTokens.THIS_KEYWORD ; + } case 168: break; + case 9: + { return JetTokens.DOT ; + } + case 169: break; + case 27: + { return JetTokens.SEMICOLON ; + } + case 170: break; + case 51: + { return JetTokens.IF_KEYWORD ; + } + case 171: break; + case 67: + { return JetTokens.ESCAPE_SEQUENCE; + } + case 172: break; case 41: { pushState(BLOCK_COMMENT); commentDepth = 0; commentStart = getTokenStart(); } - case 169: break; - case 85: - { return JetTokens.THIS_KEYWORD ; - } - case 170: break; - case 9: - { return JetTokens.DOT ; - } - case 171: break; - case 27: - { return JetTokens.SEMICOLON ; - } - case 172: break; - case 51: - { return JetTokens.IF_KEYWORD ; - } case 173: break; - case 67: - { return JetTokens.ESCAPE_SEQUENCE; - } - case 174: break; case 31: { popState(); return JetTokens.CLOSING_QUOTE; } - case 175: break; + case 174: break; case 16: { return JetTokens.EQ ; } - case 176: break; + case 175: break; case 5: { return JetTokens.AT ; } - case 177: break; + case 176: break; case 77: { return JetTokens.AS_SAFE; } - case 178: break; + case 177: break; case 25: { return JetTokens.LPAR ; } - case 179: break; + case 178: break; case 10: { return JetTokens.MINUS ; } + case 179: break; + case 69: + { if (commentDepth > 0) { + commentDepth--; + } + else { + int state = yystate(); + popState(); + zzStartRead = commentStart; + return commentStateToTokenType(state); + } + } case 180: break; case 99: { return JetTokens.FALSE_KEYWORD ; @@ -1276,43 +1280,42 @@ class _JetLexer implements FlexLexer { { return JetTokens.MULTEQ ; } case 197: break; - case 43: - { if (zzCurrentPos == 0) { - return JetTokens.SHEBANG_COMMENT; - } - else { - yypushback(yylength() - 1); - return JetTokens.HASH; - } - } - case 198: break; case 13: { return JetTokens.LBRACE ; } - case 199: break; + case 198: break; case 100: { return JetTokens.OBJECT_KEYWORD ; } - case 200: break; + case 199: break; case 97: { return JetTokens.BREAK_KEYWORD ; } - case 201: break; + case 200: break; case 83: { return JetTokens.BLOCK_COMMENT; } - case 202: break; + case 201: break; case 94: { return JetTokens.TRAIT_KEYWORD ; } - case 203: break; + case 202: break; case 64: { return JetTokens.COLONCOLON; } - case 204: break; + case 203: break; case 33: { } + case 204: break; + case 35: + { if (lBraceCount == 0) { + popState(); + return JetTokens.LONG_TEMPLATE_ENTRY_END; + } + lBraceCount--; + return JetTokens.RBRACE; + } case 205: break; case 7: { return JetTokens.HASH ; @@ -1329,14 +1332,14 @@ class _JetLexer implements FlexLexer { zzStartRead = commentStart; return commentStateToTokenType(state); } - case 229: break; + case 231: break; case DOC_COMMENT: { int state = yystate(); popState(); zzStartRead = commentStart; return commentStateToTokenType(state); } - case 230: break; + case 232: break; default: return null; } diff --git a/compiler/testData/codegen/box/constants/float.kt b/compiler/testData/codegen/box/constants/float.kt new file mode 100644 index 00000000000..5c60d382df1 --- /dev/null +++ b/compiler/testData/codegen/box/constants/float.kt @@ -0,0 +1,18 @@ +fun box(): String { + if (1F != 1.toFloat()) return "fail 1" + if (1.0F != 1.0.toFloat()) return "fail 2" + if (1e1F != 1e1.toFloat()) return "fail 3" + if (1.0e1F != 1.0e1.toFloat()) return "fail 4" + if (1e-1F != 1e-1.toFloat()) return "fail 5" + if (1.0e-1F != 1.0e-1.toFloat()) return "fail 6" + + if (1f != 1.toFloat()) return "fail 7" + if (1.0f != 1.0.toFloat()) return "fail 8" + if (1e1f != 1e1.toFloat()) return "fail 9" + if (1.0e1f != 1.0e1.toFloat()) return "fail 10" + if (1e-1f != 1e-1.toFloat()) return "fail 11" + if (1.0e-1f != 1.0e-1.toFloat()) return "fail 12" + + return "OK" +} + diff --git a/compiler/testData/diagnostics/tests/evaluate/float.kt b/compiler/testData/diagnostics/tests/evaluate/float.kt new file mode 100644 index 00000000000..67f8b0c5692 --- /dev/null +++ b/compiler/testData/diagnostics/tests/evaluate/float.kt @@ -0,0 +1,10 @@ +val a1: Float = 1F +val a2: Float = 1.0F +val a3: Float = 1e-1F +val a4: Float = 1.0e-1F + +val b5: Float = 1f +val b6: Float = 1.0f +val b7: Float = 1e-1f +val b8: Float = 1.0e-1f + diff --git a/compiler/testData/evaluate/constant/float.kt b/compiler/testData/evaluate/constant/float.kt new file mode 100644 index 00000000000..0104ba23d9d --- /dev/null +++ b/compiler/testData/evaluate/constant/float.kt @@ -0,0 +1,25 @@ +package test + +// val prop1: 1.0.toFloat() +val prop1 = 1F + +// val prop2: 1.0.toFloat() +val prop2 = 1.0F + +// val prop3: 0.1.toFloat() +val prop3 = 1e-1F + +// val prop4: 0.1.toFloat() +val prop4 = 1.0e-1F + +// val prop5: 1.0.toFloat() +val prop5 = 1f + +// val prop6: 1.0.toFloat() +val prop6 = 1.0f + +// val prop7: 0.1.toFloat() +val prop7 = 1e-1f + +// val prop8: 0.1.toFloat() +val prop8 = 1.0e-1f diff --git a/compiler/testData/psi/FloatingPointLiteral.kt b/compiler/testData/psi/FloatingPointLiteral.kt new file mode 100644 index 00000000000..3ab20212221 --- /dev/null +++ b/compiler/testData/psi/FloatingPointLiteral.kt @@ -0,0 +1,20 @@ +val array = array( + 1, + 1.0, + 1e1, + 1.0e1, + 1e-1, + 1.0e-1, + 1F, + 1.0F, + 1e1F, + 1.0e1F, + 1e-1F, + 1.0e-1F, + 1f, + 1.0f, + 1e1f, + 1.0e1f, + 1e-1f, + 1.0e-1f +) \ No newline at end of file diff --git a/compiler/testData/psi/FloatingPointLiteral.txt b/compiler/testData/psi/FloatingPointLiteral.txt new file mode 100644 index 00000000000..d398d7b2fd2 --- /dev/null +++ b/compiler/testData/psi/FloatingPointLiteral.txt @@ -0,0 +1,114 @@ +JetFile: FloatingPointLiteral.kt + NAMESPACE_HEADER + + PROPERTY + PsiElement(val)('val') + PsiWhiteSpace(' ') + PsiElement(IDENTIFIER)('array') + PsiWhiteSpace(' ') + PsiElement(EQ)('=') + PsiWhiteSpace(' ') + CALL_EXPRESSION + REFERENCE_EXPRESSION + PsiElement(IDENTIFIER)('array') + TYPE_ARGUMENT_LIST + PsiElement(LT)('<') + TYPE_PROJECTION + TYPE_REFERENCE + USER_TYPE + REFERENCE_EXPRESSION + PsiElement(IDENTIFIER)('Any') + PsiElement(GT)('>') + VALUE_ARGUMENT_LIST + PsiElement(LPAR)('(') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + INTEGER_CONSTANT + PsiElement(INTEGER_LITERAL)('1') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e1') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e1') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e-1') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e-1') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e1F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e1F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e-1F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e-1F') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1f') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0f') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e1f') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e1f') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1e-1f') + PsiElement(COMMA)(',') + PsiWhiteSpace('\n ') + VALUE_ARGUMENT + FLOAT_CONSTANT + PsiElement(FLOAT_CONSTANT)('1.0e-1f') + PsiWhiteSpace('\n') + PsiElement(RPAR)(')') \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java index dc9fdb3a31e..16bb1293e74 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -2749,6 +2749,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage doTest("compiler/testData/diagnostics/tests/evaluate/binaryMinusIndependentExpType.kt"); } + @TestMetadata("float.kt") + public void testFloat() throws Exception { + doTest("compiler/testData/diagnostics/tests/evaluate/float.kt"); + } + @TestMetadata("intOverflow.kt") public void testIntOverflow() throws Exception { doTest("compiler/testData/diagnostics/tests/evaluate/intOverflow.kt"); diff --git a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java index a22955557a5..df39ccb75a4 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java @@ -1384,6 +1384,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { doTest("compiler/testData/codegen/box/constants/constantsInWhen.kt"); } + @TestMetadata("float.kt") + public void testFloat() throws Exception { + doTest("compiler/testData/codegen/box/constants/float.kt"); + } + } @TestMetadata("compiler/testData/codegen/box/controlStructures") diff --git a/compiler/tests/org/jetbrains/jet/evaluate/EvaluateExpressionTestGenerated.java b/compiler/tests/org/jetbrains/jet/evaluate/EvaluateExpressionTestGenerated.java index e3878fd7775..f1a4f284c6e 100644 --- a/compiler/tests/org/jetbrains/jet/evaluate/EvaluateExpressionTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/evaluate/EvaluateExpressionTestGenerated.java @@ -53,6 +53,11 @@ public class EvaluateExpressionTestGenerated extends AbstractEvaluateExpressionT doConstantTest("compiler/testData/evaluate/constant/equals.kt"); } + @TestMetadata("float.kt") + public void testFloat() throws Exception { + doConstantTest("compiler/testData/evaluate/constant/float.kt"); + } + @TestMetadata("floatsAndDoubles.kt") public void testFloatsAndDoubles() throws Exception { doConstantTest("compiler/testData/evaluate/constant/floatsAndDoubles.kt"); diff --git a/compiler/tests/org/jetbrains/jet/parsing/JetParsingTestGenerated.java b/compiler/tests/org/jetbrains/jet/parsing/JetParsingTestGenerated.java index f7e7eb4d5d9..45236213439 100644 --- a/compiler/tests/org/jetbrains/jet/parsing/JetParsingTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/parsing/JetParsingTestGenerated.java @@ -162,6 +162,11 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest { doParsingTest("compiler/testData/psi/FileStart_ERR.kt"); } + @TestMetadata("FloatingPointLiteral.kt") + public void testFloatingPointLiteral() throws Exception { + doParsingTest("compiler/testData/psi/FloatingPointLiteral.kt"); + } + @TestMetadata("ForWithMultiDecl.kt") public void testForWithMultiDecl() throws Exception { doParsingTest("compiler/testData/psi/ForWithMultiDecl.kt");