/* Generated by re2c */
#line 1 "encodings/unicode_group_Ps_x.re"
// re2c $INPUT -o $OUTPUT -x
#include <stdint.h>
#include <stdio.h>
#include "utf16.h"
#define YYCTYPE uint16_t

bool scan(const YYCTYPE* start, const YYCTYPE* const limit) {
	__attribute__((unused)) const YYCTYPE* YYMARKER;
#define YYCURSOR start
Ps:

#line 15 "encodings/unicode_group_Ps_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x29D9) {
		if (yych <= 0x2771) {
			if (yych <= 0x207C) {
				if (yych <= 0x0F3B) {
					if (yych <= '[') {
						if (yych == '(') goto yy1;
						if (yych >= '[') goto yy1;
					} else {
						if (yych <= '{') {
							if (yych >= '{') goto yy1;
						} else {
							if (yych == 0x0F3A) goto yy1;
						}
					}
				} else {
					if (yych <= 0x201A) {
						if (yych <= 0x169A) {
							if (yych <= 0x0F3C) goto yy1;
						} else {
							if (yych <= 0x169B) goto yy1;
							if (yych >= 0x201A) goto yy1;
						}
					} else {
						if (yych <= 0x201E) {
							if (yych >= 0x201E) goto yy1;
						} else {
							if (yych == 0x2045) goto yy1;
						}
					}
				}
			} else {
				if (yych <= 0x2767) {
					if (yych <= 0x2308) {
						if (yych <= 0x208C) {
							if (yych <= 0x207D) goto yy1;
						} else {
							if (yych <= 0x208D) goto yy1;
							if (yych >= 0x2308) goto yy1;
						}
					} else {
						if (yych <= 0x230A) {
							if (yych >= 0x230A) goto yy1;
						} else {
							if (yych == 0x2329) goto yy1;
						}
					}
				} else {
					if (yych <= 0x276C) {
						if (yych <= 0x2769) {
							if (yych <= 0x2768) goto yy1;
						} else {
							if (yych != 0x276B) goto yy1;
						}
					} else {
						if (yych <= 0x276E) {
							if (yych >= 0x276E) goto yy1;
						} else {
							if (yych == 0x2770) goto yy1;
						}
					}
				}
			}
		} else {
			if (yych <= 0x2986) {
				if (yych <= 0x27E9) {
					if (yych <= 0x27C5) {
						if (yych <= 0x2773) {
							if (yych <= 0x2772) goto yy1;
						} else {
							if (yych <= 0x2774) goto yy1;
							if (yych >= 0x27C5) goto yy1;
						}
					} else {
						if (yych <= 0x27E6) {
							if (yych >= 0x27E6) goto yy1;
						} else {
							if (yych == 0x27E8) goto yy1;
						}
					}
				} else {
					if (yych <= 0x27EE) {
						if (yych <= 0x27EB) {
							if (yych <= 0x27EA) goto yy1;
						} else {
							if (yych != 0x27ED) goto yy1;
						}
					} else {
						if (yych <= 0x2983) {
							if (yych >= 0x2983) goto yy1;
						} else {
							if (yych == 0x2985) goto yy1;
						}
					}
				}
			} else {
				if (yych <= 0x2990) {
					if (yych <= 0x298B) {
						if (yych <= 0x2988) {
							if (yych <= 0x2987) goto yy1;
						} else {
							if (yych != 0x298A) goto yy1;
						}
					} else {
						if (yych <= 0x298D) {
							if (yych >= 0x298D) goto yy1;
						} else {
							if (yych == 0x298F) goto yy1;
						}
					}
				} else {
					if (yych <= 0x2995) {
						if (yych <= 0x2992) {
							if (yych <= 0x2991) goto yy1;
						} else {
							if (yych != 0x2994) goto yy1;
						}
					} else {
						if (yych <= 0x2997) {
							if (yych >= 0x2997) goto yy1;
						} else {
							if (yych == 0x29D8) goto yy1;
						}
					}
				}
			}
		}
	} else {
		if (yych <= 0x301C) {
			if (yych <= 0x2E5A) {
				if (yych <= 0x2E27) {
					if (yych <= 0x2E22) {
						if (yych <= 0x29FB) {
							if (yych <= 0x29DA) goto yy1;
						} else {
							if (yych <= 0x29FC) goto yy1;
							if (yych >= 0x2E22) goto yy1;
						}
					} else {
						if (yych <= 0x2E24) {
							if (yych >= 0x2E24) goto yy1;
						} else {
							if (yych == 0x2E26) goto yy1;
						}
					}
				} else {
					if (yych <= 0x2E55) {
						if (yych <= 0x2E41) {
							if (yych <= 0x2E28) goto yy1;
						} else {
							if (yych <= 0x2E42) goto yy1;
							if (yych >= 0x2E55) goto yy1;
						}
					} else {
						if (yych <= 0x2E57) {
							if (yych >= 0x2E57) goto yy1;
						} else {
							if (yych == 0x2E59) goto yy1;
						}
					}
				}
			} else {
				if (yych <= 0x300F) {
					if (yych <= 0x300A) {
						if (yych <= 0x3007) {
							if (yych <= 0x2E5B) goto yy1;
						} else {
							if (yych != 0x3009) goto yy1;
						}
					} else {
						if (yych <= 0x300C) {
							if (yych >= 0x300C) goto yy1;
						} else {
							if (yych == 0x300E) goto yy1;
						}
					}
				} else {
					if (yych <= 0x3016) {
						if (yych <= 0x3013) {
							if (yych <= 0x3010) goto yy1;
						} else {
							if (yych != 0x3015) goto yy1;
						}
					} else {
						if (yych <= 0x3018) {
							if (yych >= 0x3018) goto yy1;
						} else {
							if (yych == 0x301A) goto yy1;
						}
					}
				}
			}
		} else {
			if (yych <= 0xFE42) {
				if (yych <= 0xFE38) {
					if (yych <= 0xFE17) {
						if (yych <= 0xFD3E) {
							if (yych <= 0x301D) goto yy1;
						} else {
							if (yych <= 0xFD3F) goto yy1;
							if (yych >= 0xFE17) goto yy1;
						}
					} else {
						if (yych <= 0xFE35) {
							if (yych >= 0xFE35) goto yy1;
						} else {
							if (yych == 0xFE37) goto yy1;
						}
					}
				} else {
					if (yych <= 0xFE3D) {
						if (yych <= 0xFE3A) {
							if (yych <= 0xFE39) goto yy1;
						} else {
							if (yych != 0xFE3C) goto yy1;
						}
					} else {
						if (yych <= 0xFE3F) {
							if (yych >= 0xFE3F) goto yy1;
						} else {
							if (yych == 0xFE41) goto yy1;
						}
					}
				}
			} else {
				if (yych <= 0xFF07) {
					if (yych <= 0xFE59) {
						if (yych <= 0xFE46) {
							if (yych <= 0xFE43) goto yy1;
						} else {
							if (yych <= 0xFE47) goto yy1;
							if (yych >= 0xFE59) goto yy1;
						}
					} else {
						if (yych <= 0xFE5B) {
							if (yych >= 0xFE5B) goto yy1;
						} else {
							if (yych == 0xFE5D) goto yy1;
						}
					}
				} else {
					if (yych <= 0xFF5B) {
						if (yych <= 0xFF3A) {
							if (yych <= 0xFF08) goto yy1;
						} else {
							if (yych <= 0xFF3B) goto yy1;
							if (yych >= 0xFF5B) goto yy1;
						}
					} else {
						if (yych <= 0xFF5F) {
							if (yych >= 0xFF5F) goto yy1;
						} else {
							if (yych == 0xFF62) goto yy1;
						}
					}
				}
			}
		}
	}
	++YYCURSOR;
#line 15 "encodings/unicode_group_Ps_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 280 "encodings/unicode_group_Ps_x.c"
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Ps_x.re"
	{ goto Ps; }
#line 285 "encodings/unicode_group_Ps_x.c"
}
#line 16 "encodings/unicode_group_Ps_x.re"

}

static const uint32_t chars_Ps[] = {0x28,0x28,0x5b,0x5b,0x7b,0x7b,0xf3a,0xf3a,0xf3c,0xf3c,0x169b,0x169b,0x201a,0x201a,0x201e,0x201e,0x2045,0x2045,0x207d,0x207d,0x208d,0x208d,0x2308,0x2308,0x230a,0x230a,0x2329,0x2329,0x2768,0x2768,0x276a,0x276a,0x276c,0x276c,0x276e,0x276e,0x2770,0x2770,0x2772,0x2772,0x2774,0x2774,0x27c5,0x27c5,0x27e6,0x27e6,0x27e8,0x27e8,0x27ea,0x27ea,0x27ec,0x27ec,0x27ee,0x27ee,0x2983,0x2983,0x2985,0x2985,0x2987,0x2987,0x2989,0x2989,0x298b,0x298b,0x298d,0x298d,0x298f,0x298f,0x2991,0x2991,0x2993,0x2993,0x2995,0x2995,0x2997,0x2997,0x29d8,0x29d8,0x29da,0x29da,0x29fc,0x29fc,0x2e22,0x2e22,0x2e24,0x2e24,0x2e26,0x2e26,0x2e28,0x2e28,0x2e42,0x2e42,0x2e55,0x2e55,0x2e57,0x2e57,0x2e59,0x2e59,0x2e5b,0x2e5b,0x3008,0x3008,0x300a,0x300a,0x300c,0x300c,0x300e,0x300e,0x3010,0x3010,0x3014,0x3014,0x3016,0x3016,0x3018,0x3018,0x301a,0x301a,0x301d,0x301d,0xfd3f,0xfd3f,0xfe17,0xfe17,0xfe35,0xfe35,0xfe37,0xfe37,0xfe39,0xfe39,0xfe3b,0xfe3b,0xfe3d,0xfe3d,0xfe3f,0xfe3f,0xfe41,0xfe41,0xfe43,0xfe43,0xfe47,0xfe47,0xfe59,0xfe59,0xfe5b,0xfe5b,0xfe5d,0xfe5d,0xff08,0xff08,0xff3b,0xff3b,0xff5b,0xff5b,0xff5f,0xff5f,0xff62,0xff62,};

static uint32_t encode_utf16(const uint32_t* ranges, uint32_t ranges_count, uint16_t* s) {
	uint16_t* const s0 = s;
	for (uint32_t i = 0; i < ranges_count; i += 2)
		for (uint32_t j = ranges[i]; j <= ranges[i + 1]; ++j)
			if (j <= re2c::utf16::MAX_1WORD_RUNE) {
				*s++ = j;
			} else {
				*s++ = re2c::utf16::lead_surr(j);
				*s++ = re2c::utf16::trail_surr(j);
			}
	for (uint32_t i = 0; i < 2; ++i) s[i] = 0;
	return s - s0;
}

int main() {
	YYCTYPE* buffer_Ps = new YYCTYPE[160];
	uint32_t buffer_Ps_len = encode_utf16(chars_Ps, sizeof(chars_Ps) / sizeof(uint32_t), buffer_Ps);
	if (!scan(buffer_Ps, buffer_Ps + buffer_Ps_len)) printf("test 'Ps' failed\n");
	delete[] buffer_Ps;
	return 0;
}
