samiam95124 / Pascal-P6

6th version of Niklaus Wirth's original Pascal language compiler system
Other
25 stars 8 forks source link

5/5: Implement UTF-16 mode #43

Open samiam95124 opened 1 year ago

samiam95124 commented 1 year ago

Implement support for UTF-16, or 16 bit unicode. This means redefining char type as 16 bits, using a #define option for UTF-16 vs. ASCII support. This relies on #42, since "set of char" would no longer work. UTF-16 is used in any variables, strings, etc, internally to the P-Machine, but converted to and from UTF-8 on input or output. Requires the conversion support on all I/O to and from text files.