| // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| /** |
| * @assertion An identifier expression consists of a single identifier; it |
| * provides access to an object via an unqualified name. |
| * identifier: |
| * IDENTIFIER |
| * ; |
| * IDENTIFIER_NO_DOLLAR: |
| * IDENTIFIER_START_NO_DOLLAR IDENTIFIER_PART_NO_DOLLAR* |
| * ; |
| * IDENTIFIER: |
| * IDENTIFIER_START IDENTIFIER_PART* |
| * ; |
| * IDENTIFIER_START: |
| * IDENTIFIER_START_NO_DOLLAR | |
| * '$' |
| * ; |
| * IDENTIFIER_START_NO_DOLLAR: |
| * LETTER | |
| * '_' |
| * ; |
| * IDENTIFIER_PART_NO_DOLLAR: |
| * IDENTIFIER_START_NO_DOLLAR | |
| * DIGIT |
| * ; |
| * IDENTIFIER_PART: |
| * IDENTIFIER_START | |
| * DIGIT |
| * ; |
| * LETTER: |
| * ‘a’ .. ‘z’ | |
| * ‘A’ ..‘Z’ |
| * ; |
| * @description Checks that identifier can't contain letters |
| * from the turkish alphabet. |
| * @author msyabro |
| */ |
| |
| main() { |
| int? aç; |
| // ^ |
| // [analyzer] SYNTACTIC_ERROR.ILLEGAL_CHARACTER |
| // [cfe] The non-ASCII character 'ç' (U+00E7) can't be used in identifiers, only in strings and comments. |
| String çb = "It's wrong!"; |
| // ^ |
| // [analyzer] SYNTACTIC_ERROR.ILLEGAL_CHARACTER |
| // [cfe] The non-ASCII character 'ç' (U+00E7) can't be used in identifiers, only in strings and comments. |
| var wrong_ç; |
| // ^ |
| // [analyzer] SYNTACTIC_ERROR.ILLEGAL_CHARACTER |
| // [cfe] The non-ASCII character 'ç' (U+00E7) can't be used in identifiers, only in strings and comments. |
| ç; |
| //^ |
| // [analyzer] unspecified |
| // [cfe] unspecified |
| } |