1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16const lit00 = 0;
17const lit01 = 0x0;
18// Valid but must be fixed in grammar
19//const lit02 = 0o644;
20const lit03 = "string";
21const lit04 = 0b1011;
22const lit05 = 3.14159e0;
23const lit06 = 1.0e-6;
24const lit07 = 1.0E-6;
25const lit08 = -1.0E-6;
26const lit09 = c'a';
27const lit10 = c'\u0061';
28const lit11 = true;
29const lit12 = false;
30const lit13 = null;
31const lit14 = 123.45f; // equivalent to (123.45 as float)
32const lit15 = 123.45e10f;
33const lit16 = -123.45f; // equivalent to -(123.45 as float)
34const lit17 = -123.45e10f;
35const lit18 = [];
36const lit19 = [1,2,3];
37const lit20 = ["1","2","3"];
38const lit21 = [1.0,2.0,3.0];
39
40