1 # This file is part of NIT ( http://www.nitlanguage.org ).
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 var s
= b
"String\x41\x42"
19 var s2
= "String\u0103D3"
20 var s3
= b
"String\x41\xFD"
22 #alt1 s4 = b"String{c1}"
24 var s6
= raw
"\nStr\x00"
25 var s7
= raw
"\nString{c2}\x41"
26 var s8
= "\nString{c2}\x41"
27 var s9
= re
"\n{c1}String"imb
31 print
"s isa {s.class_name}"
34 print
"s2 isa {s2.class_name}"
36 print
"s3 isa {s3.class_name}"
39 print
"s4 isa {s4.class_name}"
44 print
"s5 isa {s5.class_name}"
46 print
"s6 isa {s6.class_name}"
48 print
"s7 isa {s7.class_name}"
50 print
"s8 isa {s8.class_name}"
52 print
"s9 isa {s9.class_name}"
57 print
"s10 isa {s10.class_name}"
62 print
"s11 isa {s11.class_name}"