Codebase list libcypher-parser / fe5357c
Merge tag 'dist/0.5.2' into debian Upstream version 0.5.2 Chris Leishman 7 years ago
9 changed file(s) with 387 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libcypher-parser 0.5.1.
2 # Generated by GNU Autoconf 2.69 for libcypher-parser 0.5.2.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
586586 # Identity of this package.
587587 PACKAGE_NAME='libcypher-parser'
588588 PACKAGE_TARNAME='libcypher-parser'
589 PACKAGE_VERSION='0.5.1'
590 PACKAGE_STRING='libcypher-parser 0.5.1'
589 PACKAGE_VERSION='0.5.2'
590 PACKAGE_STRING='libcypher-parser 0.5.2'
591591 PACKAGE_BUGREPORT=''
592592 PACKAGE_URL=''
593593
13981398 # Omit some internal or obsolete options to make the list less imposing.
13991399 # This message is too long to be a string in the A/UX 3.1 sh.
14001400 cat <<_ACEOF
1401 \`configure' configures libcypher-parser 0.5.1 to adapt to many kinds of systems.
1401 \`configure' configures libcypher-parser 0.5.2 to adapt to many kinds of systems.
14021402
14031403 Usage: $0 [OPTION]... [VAR=VALUE]...
14041404
14691469
14701470 if test -n "$ac_init_help"; then
14711471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of libcypher-parser 0.5.1:";;
1472 short | recursive ) echo "Configuration of libcypher-parser 0.5.2:";;
14731473 esac
14741474 cat <<\_ACEOF
14751475
16091609 test -n "$ac_init_help" && exit $ac_status
16101610 if $ac_init_version; then
16111611 cat <<\_ACEOF
1612 libcypher-parser configure 0.5.1
1612 libcypher-parser configure 0.5.2
16131613 generated by GNU Autoconf 2.69
16141614
16151615 Copyright (C) 2012 Free Software Foundation, Inc.
20742074 This file contains any messages produced by compilers while
20752075 running configure, to aid debugging if configure makes a mistake.
20762076
2077 It was created by libcypher-parser $as_me 0.5.1, which was
2077 It was created by libcypher-parser $as_me 0.5.2, which was
20782078 generated by GNU Autoconf 2.69. Invocation command line was
20792079
20802080 $ $0 $@
29392939
29402940 # Define the identity of the package.
29412941 PACKAGE='libcypher-parser'
2942 VERSION='0.5.1'
2942 VERSION='0.5.2'
29432943
29442944
29452945 cat >>confdefs.h <<_ACEOF
1707817078 # report actual input values of CONFIG_FILES etc. instead of their
1707917079 # values after options handling.
1708017080 ac_log="
17081 This file was extended by libcypher-parser $as_me 0.5.1, which was
17081 This file was extended by libcypher-parser $as_me 0.5.2, which was
1708217082 generated by GNU Autoconf 2.69. Invocation command line was
1708317083
1708417084 CONFIG_FILES = $CONFIG_FILES
1714417144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1714517145 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1714617146 ac_cs_version="\\
17147 libcypher-parser config.status 0.5.1
17147 libcypher-parser config.status 0.5.2
1714817148 configured by $0, generated by GNU Autoconf 2.69,
1714917149 with options \\"\$ac_cs_config\\"
1715017150
1313 #
1414 dnl Process this file with autoconf to produce a configure script
1515 AC_PREREQ([2.69])
16 AC_INIT([libcypher-parser],[0.5.1])
16 AC_INIT([libcypher-parser],[0.5.2])
1717 AC_CONFIG_SRCDIR([src/lib/cypher-parser.h])
1818 AC_CONFIG_MACRO_DIR([m4])
1919 AM_INIT_AUTOMAKE([foreign])
0 libcypher-parser (0.5.2-1) unstable; urgency=medium
1
2 * New upstream release.
3 - Fixes an issue tracking line numbers over multiple statements.
4
5 -- Chris Leishman <chris@leishman.org> Sat, 24 Sep 2016 17:40:49 +0000
6
07 libcypher-parser (0.5.1-1) unstable; urgency=medium
18
29 * New upstream release.
142142 # increment age.
143143 # 4. If any interfaces have been removed or changed since the last public
144144 # release, then set age to 0.
145 libcypher_parser_la_LDFLAGS = -version-info 9:0:1
145 libcypher_parser_la_LDFLAGS = -version-info 9:1:1
146146
147147 parser.c: parser_leg.c
148148 quick_parser.c: quick_parser_leg.c
620620 # increment age.
621621 # 4. If any interfaces have been removed or changed since the last public
622622 # release, then set age to 0.
623 libcypher_parser_la_LDFLAGS = -version-info 9:0:1
623 libcypher_parser_la_LDFLAGS = -version-info 9:1:1
624624 EXTRA_DIST = parser_leg.c quick_parser_leg.c
625625 MAINTAINERCLEANFILES = parser_leg.c quick_parser_leg.c
626626 all: all-am
654654 }
655655
656656 yy.position_offset = range.end;
657
658 offsets_clear(&(yy.line_start_offsets));
659 if (offsets_push(&(yy.line_start_offsets), 0))
660 {
661 goto cleanup;
662 }
657663 }
658664
659665 result = 0;
715721 goto failure;
716722 }
717723
718 offsets_clear(&(yy->line_start_offsets));
719 if (offsets_push(&(yy->line_start_offsets), 0))
720 {
721 goto failure;
722 }
723
724724 assert(blocks_size(&(yy->blocks)) == 1 &&
725725 "Mismatched use of `<` and `>` in grammar");
726726 assert(blocks_last(&(yy->blocks)) == top_block &&
0 /* A recursive-descent parser generated by peg 0.1.15 */
0 /* A recursive-descent parser generated by peg 0.1.18 */
11
22 #include <stdio.h>
33 #include <stdlib.h>
534534 #define yythunkpos yy->__thunkpos
535535 yyprintf((stderr, "do yy_1__null_\n"));
536536 {
537 #line 1075
537538 __ = NULL; ;
538539 }
539540 #undef yythunkpos
547548 #define yythunkpos yy->__thunkpos
548549 yyprintf((stderr, "do yy_1_skip_to_clause\n"));
549550 {
551 #line 1040
550552 __ = skip(); ;
551553 }
552554 #undef yythunkpos
560562 #define yythunkpos yy->__thunkpos
561563 yyprintf((stderr, "do yy_1_skip_to_statement\n"));
562564 {
565 #line 1029
563566 __ = skip(); ;
564567 }
565568 #undef yythunkpos
573576 #define yythunkpos yy->__thunkpos
574577 yyprintf((stderr, "do yy_1_skip_to_directive\n"));
575578 {
579 #line 1020
576580 __ = skip(); ;
577581 }
578582 #undef yythunkpos
586590 #define yythunkpos yy->__thunkpos
587591 yyprintf((stderr, "do yy_1_EOF\n"));
588592 {
593 #line 855
589594 yy->eof = true; ;
590595 }
591596 #undef yythunkpos
599604 #define yythunkpos yy->__thunkpos
600605 yyprintf((stderr, "do yy_1_block_comment\n"));
601606 {
607 #line 849
602608 block_comment(); ;
603609 }
604610 #undef yythunkpos
612618 #define yythunkpos yy->__thunkpos
613619 yyprintf((stderr, "do yy_1_line_comment\n"));
614620 {
621 #line 846
615622 line_comment(); ;
616623 }
617624 #undef yythunkpos
625632 #define yythunkpos yy->__thunkpos
626633 yyprintf((stderr, "do yy_1_integer_string\n"));
627634 {
635 #line 831
628636 strbuf_append_block(); ;
629637 }
630638 #undef yythunkpos
638646 #define yythunkpos yy->__thunkpos
639647 yyprintf((stderr, "do yy_2_float_string\n"));
640648 {
649 #line 824
641650 strbuf_append_block(); ;
642651 }
643652 #undef yythunkpos
651660 #define yythunkpos yy->__thunkpos
652661 yyprintf((stderr, "do yy_1_float_string\n"));
653662 {
663 #line 823
654664 strbuf_append_block(); ;
655665 }
656666 #undef yythunkpos
664674 #define yythunkpos yy->__thunkpos
665675 yyprintf((stderr, "do yy_1_escaped_symbolic_name\n"));
666676 {
677 #line 817
667678 strbuf_append_block(); ;
668679 }
669680 #undef yythunkpos
677688 #define yythunkpos yy->__thunkpos
678689 yyprintf((stderr, "do yy_1_unescaped_symbolic_name\n"));
679690 {
691 #line 815
680692 strbuf_append_block(); ;
681693 }
682694 #undef yythunkpos
690702 #define yythunkpos yy->__thunkpos
691703 yyprintf((stderr, "do yy_11_escaped_char\n"));
692704 {
705 #line 809
693706 strbuf_append("?", 1); ;
694707 }
695708 #undef yythunkpos
703716 #define yythunkpos yy->__thunkpos
704717 yyprintf((stderr, "do yy_10_escaped_char\n"));
705718 {
719 #line 808
706720 strbuf_append("\"", 1); ;
707721 }
708722 #undef yythunkpos
716730 #define yythunkpos yy->__thunkpos
717731 yyprintf((stderr, "do yy_9_escaped_char\n"));
718732 {
733 #line 807
719734 strbuf_append("'", 1); ;
720735 }
721736 #undef yythunkpos
729744 #define yythunkpos yy->__thunkpos
730745 yyprintf((stderr, "do yy_8_escaped_char\n"));
731746 {
747 #line 806
732748 strbuf_append("\\", 1); ;
733749 }
734750 #undef yythunkpos
742758 #define yythunkpos yy->__thunkpos
743759 yyprintf((stderr, "do yy_7_escaped_char\n"));
744760 {
761 #line 805
745762 strbuf_append("\v", 1); ;
746763 }
747764 #undef yythunkpos
755772 #define yythunkpos yy->__thunkpos
756773 yyprintf((stderr, "do yy_6_escaped_char\n"));
757774 {
775 #line 804
758776 strbuf_append("\t", 1); ;
759777 }
760778 #undef yythunkpos
768786 #define yythunkpos yy->__thunkpos
769787 yyprintf((stderr, "do yy_5_escaped_char\n"));
770788 {
789 #line 803
771790 strbuf_append("\r", 1); ;
772791 }
773792 #undef yythunkpos
781800 #define yythunkpos yy->__thunkpos
782801 yyprintf((stderr, "do yy_4_escaped_char\n"));
783802 {
803 #line 802
784804 strbuf_append("\n", 1); ;
785805 }
786806 #undef yythunkpos
794814 #define yythunkpos yy->__thunkpos
795815 yyprintf((stderr, "do yy_3_escaped_char\n"));
796816 {
817 #line 801
797818 strbuf_append("\f", 1); ;
798819 }
799820 #undef yythunkpos
807828 #define yythunkpos yy->__thunkpos
808829 yyprintf((stderr, "do yy_2_escaped_char\n"));
809830 {
831 #line 800
810832 strbuf_append("\b", 1); ;
811833 }
812834 #undef yythunkpos
820842 #define yythunkpos yy->__thunkpos
821843 yyprintf((stderr, "do yy_1_escaped_char\n"));
822844 {
845 #line 799
823846 strbuf_append("\a", 1); ;
824847 }
825848 #undef yythunkpos
833856 #define yythunkpos yy->__thunkpos
834857 yyprintf((stderr, "do yy_2_double_quoted\n"));
835858 {
859 #line 795
836860 strbuf_append_block(); ;
837861 }
838862 #undef yythunkpos
846870 #define yythunkpos yy->__thunkpos
847871 yyprintf((stderr, "do yy_1_double_quoted\n"));
848872 {
873 #line 793
849874 strbuf_append_block(); ;
850875 }
851876 #undef yythunkpos
859884 #define yythunkpos yy->__thunkpos
860885 yyprintf((stderr, "do yy_2_single_quoted\n"));
861886 {
887 #line 789
862888 strbuf_append_block(); ;
863889 }
864890 #undef yythunkpos
872898 #define yythunkpos yy->__thunkpos
873899 yyprintf((stderr, "do yy_1_single_quoted\n"));
874900 {
901 #line 787
875902 strbuf_append_block(); ;
876903 }
877904 #undef yythunkpos
885912 #define yythunkpos yy->__thunkpos
886913 yyprintf((stderr, "do yy_2_unquoted\n"));
887914 {
915 #line 781
888916 strbuf_append_block(); ;
889917 }
890918 #undef yythunkpos
898926 #define yythunkpos yy->__thunkpos
899927 yyprintf((stderr, "do yy_1_unquoted\n"));
900928 {
929 #line 779
901930 strbuf_append(";", 1); ;
902931 }
903932 #undef yythunkpos
911940 #define yythunkpos yy->__thunkpos
912941 yyprintf((stderr, "do yy_2_client_arg_string\n"));
913942 {
943 #line 768
914944 __ = strbuf_string(); ;
915945 }
916946 #undef yythunkpos
924954 #define yythunkpos yy->__thunkpos
925955 yyprintf((stderr, "do yy_1_client_arg_string\n"));
926956 {
957 #line 767
927958 strbuf_reset(); ;
928959 }
929960 #undef yythunkpos
938969 #define yythunkpos yy->__thunkpos
939970 yyprintf((stderr, "do yy_1_client_command_arg\n"));
940971 {
972 #line 765
941973 __ = s; ;
942974 }
943975 #undef yythunkpos
953985 #define yythunkpos yy->__thunkpos
954986 yyprintf((stderr, "do yy_1_client_command_name\n"));
955987 {
988 #line 763
956989 __ = n; ;
957990 }
958991 #undef yythunkpos
9691002 #define yythunkpos yy->__thunkpos
9701003 yyprintf((stderr, "do yy_2_client_command\n"));
9711004 {
1005 #line 759
9721006 __ = command(n); ;
9731007 }
9741008 #undef yythunkpos
9861020 #define yythunkpos yy->__thunkpos
9871021 yyprintf((stderr, "do yy_1_client_command\n"));
9881022 {
1023 #line 757
9891024 sequence_add(a); ;
9901025 }
9911026 #undef yythunkpos
10031038 #define yythunkpos yy->__thunkpos
10041039 yyprintf((stderr, "do yy_3_rel_varlength\n"));
10051040 {
1041 #line 744
10061042 __ = range(NULL, NULL); ;
10071043 }
10081044 #undef yythunkpos
10201056 #define yythunkpos yy->__thunkpos
10211057 yyprintf((stderr, "do yy_2_rel_varlength\n"));
10221058 {
1059 #line 743
10231060 __ = range(s, s); ;
10241061 }
10251062 #undef yythunkpos
10371074 #define yythunkpos yy->__thunkpos
10381075 yyprintf((stderr, "do yy_1_rel_varlength\n"));
10391076 {
1077 #line 741
10401078 __ = range(s, e); ;
10411079 }
10421080 #undef yythunkpos
10531091 #define yythunkpos yy->__thunkpos
10541092 yyprintf((stderr, "do yy_2_rel_types\n"));
10551093 {
1094 #line 735
10561095 sequence_add(n); ;
10571096 }
10581097 #undef yythunkpos
10681107 #define yythunkpos yy->__thunkpos
10691108 yyprintf((stderr, "do yy_1_rel_types\n"));
10701109 {
1110 #line 733
10711111 sequence_add(n); ;
10721112 }
10731113 #undef yythunkpos
10851125 #define yythunkpos yy->__thunkpos
10861126 yyprintf((stderr, "do yy_8_relationship_pattern\n"));
10871127 {
1128 #line 727
10881129 __ = rel_pattern(BIDIRECTIONAL, i, l, p); ;
10891130 }
10901131 #undef yythunkpos
11041145 #define yythunkpos yy->__thunkpos
11051146 yyprintf((stderr, "do yy_7_relationship_pattern\n"));
11061147 {
1148 #line 726
11071149 __ = rel_pattern(OUTBOUND, i, l, p); ;
11081150 }
11091151 #undef yythunkpos
11231165 #define yythunkpos yy->__thunkpos
11241166 yyprintf((stderr, "do yy_6_relationship_pattern\n"));
11251167 {
1168 #line 721
11261169 __ = simple_rel_pattern(BIDIRECTIONAL); ;
11271170 }
11281171 #undef yythunkpos
11421185 #define yythunkpos yy->__thunkpos
11431186 yyprintf((stderr, "do yy_5_relationship_pattern\n"));
11441187 {
1188 #line 720
11451189 __ = simple_rel_pattern(OUTBOUND); ;
11461190 }
11471191 #undef yythunkpos
11611205 #define yythunkpos yy->__thunkpos
11621206 yyprintf((stderr, "do yy_4_relationship_pattern\n"));
11631207 {
1208 #line 715
11641209 __ = rel_pattern(INBOUND, i, l, p); ;
11651210 }
11661211 #undef yythunkpos
11801225 #define yythunkpos yy->__thunkpos
11811226 yyprintf((stderr, "do yy_3_relationship_pattern\n"));
11821227 {
1228 #line 714
11831229 __ = rel_pattern(BIDIRECTIONAL, i, l, p); ;
11841230 }
11851231 #undef yythunkpos
11991245 #define yythunkpos yy->__thunkpos
12001246 yyprintf((stderr, "do yy_2_relationship_pattern\n"));
12011247 {
1248 #line 709
12021249 __ = simple_rel_pattern(INBOUND); ;
12031250 }
12041251 #undef yythunkpos
12181265 #define yythunkpos yy->__thunkpos
12191266 yyprintf((stderr, "do yy_1_relationship_pattern\n"));
12201267 {
1268 #line 708
12211269 __ = simple_rel_pattern(BIDIRECTIONAL); ;
12221270 }
12231271 #undef yythunkpos
12371285 #define yythunkpos yy->__thunkpos
12381286 yyprintf((stderr, "do yy_2_node_pattern\n"));
12391287 {
1288 #line 703
12401289 __ = node_pattern(i, p); ;
12411290 }
12421291 #undef yythunkpos
12561305 #define yythunkpos yy->__thunkpos
12571306 yyprintf((stderr, "do yy_1_node_pattern\n"));
12581307 {
1308 #line 701
12591309 sequence_add(n); ;
12601310 }
12611311 #undef yythunkpos
12751325 #define yythunkpos yy->__thunkpos
12761326 yyprintf((stderr, "do yy_4_pattern_expression\n"));
12771327 {
1328 #line 696
12781329 __ = pattern_path(); ;
12791330 }
12801331 #undef yythunkpos
12941345 #define yythunkpos yy->__thunkpos
12951346 yyprintf((stderr, "do yy_3_pattern_expression\n"));
12961347 {
1348 #line 695
12971349 sequence_add(r); sequence_add(n); ;
12981350 }
12991351 #undef yythunkpos
13131365 #define yythunkpos yy->__thunkpos
13141366 yyprintf((stderr, "do yy_2_pattern_expression\n"));
13151367 {
1368 #line 693
13161369 sequence_add(n); ;
13171370 }
13181371 #undef yythunkpos
13321385 #define yythunkpos yy->__thunkpos
13331386 yyprintf((stderr, "do yy_1_pattern_expression\n"));
13341387 {
1388 #line 692
13351389 __ = p; ;
13361390 }
13371391 #undef yythunkpos
13501404 #define yythunkpos yy->__thunkpos
13511405 yyprintf((stderr, "do yy_3_pattern_path\n"));
13521406 {
1407 #line 689
13531408 __ = pattern_path(); ;
13541409 }
13551410 #undef yythunkpos
13671422 #define yythunkpos yy->__thunkpos
13681423 yyprintf((stderr, "do yy_2_pattern_path\n"));
13691424 {
1425 #line 688
13701426 sequence_add(r); sequence_add(n); ;
13711427 }
13721428 #undef yythunkpos
13841440 #define yythunkpos yy->__thunkpos
13851441 yyprintf((stderr, "do yy_1_pattern_path\n"));
13861442 {
1443 #line 686
13871444 sequence_add(n); ;
13881445 }
13891446 #undef yythunkpos
14001457 #define yythunkpos yy->__thunkpos
14011458 yyprintf((stderr, "do yy_2_shortest_path_pattern\n"));
14021459 {
1460 #line 683
14031461 __ = shortest_path(false, p); ;
14041462 }
14051463 #undef yythunkpos
14151473 #define yythunkpos yy->__thunkpos
14161474 yyprintf((stderr, "do yy_1_shortest_path_pattern\n"));
14171475 {
1476 #line 681
14181477 __ = shortest_path(true, p); ;
14191478 }
14201479 #undef yythunkpos
14301489 #define yythunkpos yy->__thunkpos
14311490 yyprintf((stderr, "do yy_2_anon_pattern_part\n"));
14321491 {
1492 #line 677
14331493 __ = p; ;
14341494 }
14351495 #undef yythunkpos
14451505 #define yythunkpos yy->__thunkpos
14461506 yyprintf((stderr, "do yy_1_anon_pattern_part\n"));
14471507 {
1508 #line 676
14481509 __ = p; ;
14491510 }
14501511 #undef yythunkpos
14611522 #define yythunkpos yy->__thunkpos
14621523 yyprintf((stderr, "do yy_2_pattern_part\n"));
14631524 {
1525 #line 673
14641526 __ = p; ;
14651527 }
14661528 #undef yythunkpos
14781540 #define yythunkpos yy->__thunkpos
14791541 yyprintf((stderr, "do yy_1_pattern_part\n"));
14801542 {
1543 #line 672
14811544 __ = named_path(i, p); ;
14821545 }
14831546 #undef yythunkpos
14941557 #define yythunkpos yy->__thunkpos
14951558 yyprintf((stderr, "do yy_3_pattern\n"));
14961559 {
1560 #line 667
14971561 __ = pattern(); ;
14981562 }
14991563 #undef yythunkpos
15091573 #define yythunkpos yy->__thunkpos
15101574 yyprintf((stderr, "do yy_2_pattern\n"));
15111575 {
1576 #line 666
15121577 sequence_add(p); ;
15131578 }
15141579 #undef yythunkpos
15241589 #define yythunkpos yy->__thunkpos
15251590 yyprintf((stderr, "do yy_1_pattern\n"));
15261591 {
1592 #line 665
15271593 sequence_add(p); ;
15281594 }
15291595 #undef yythunkpos
15381604 #define yythunkpos yy->__thunkpos
15391605 yyprintf((stderr, "do yy_3_proc_name\n"));
15401606 {
1607 #line 656
15411608 __ = strbuf_proc_name(); ;
15421609 }
15431610 #undef yythunkpos
15511618 #define yythunkpos yy->__thunkpos
15521619 yyprintf((stderr, "do yy_2_proc_name\n"));
15531620 {
1621 #line 653
15541622 strbuf_append(".", 1); ;
15551623 }
15561624 #undef yythunkpos
15641632 #define yythunkpos yy->__thunkpos
15651633 yyprintf((stderr, "do yy_1_proc_name\n"));
15661634 {
1635 #line 652
15671636 strbuf_reset(); ;
15681637 }
15691638 #undef yythunkpos
15771646 #define yythunkpos yy->__thunkpos
15781647 yyprintf((stderr, "do yy_2_index_name\n"));
15791648 {
1649 #line 649
15801650 __ = strbuf_index_name(); ;
15811651 }
15821652 #undef yythunkpos
15901660 #define yythunkpos yy->__thunkpos
15911661 yyprintf((stderr, "do yy_1_index_name\n"));
15921662 {
1663 #line 647
15931664 strbuf_reset(); ;
15941665 }
15951666 #undef yythunkpos
16031674 #define yythunkpos yy->__thunkpos
16041675 yyprintf((stderr, "do yy_2_function_name\n"));
16051676 {
1677 #line 644
16061678 __ = strbuf_function_name(); ;
16071679 }
16081680 #undef yythunkpos
16161688 #define yythunkpos yy->__thunkpos
16171689 yyprintf((stderr, "do yy_1_function_name\n"));
16181690 {
1691 #line 642
16191692 strbuf_reset(); ;
16201693 }
16211694 #undef yythunkpos
16291702 #define yythunkpos yy->__thunkpos
16301703 yyprintf((stderr, "do yy_2_prop_name\n"));
16311704 {
1705 #line 639
16321706 __ = strbuf_prop_name(); ;
16331707 }
16341708 #undef yythunkpos
16421716 #define yythunkpos yy->__thunkpos
16431717 yyprintf((stderr, "do yy_1_prop_name\n"));
16441718 {
1719 #line 637
16451720 strbuf_reset(); ;
16461721 }
16471722 #undef yythunkpos
16551730 #define yythunkpos yy->__thunkpos
16561731 yyprintf((stderr, "do yy_2_rel_type_name\n"));
16571732 {
1733 #line 634
16581734 __ = strbuf_reltype(); ;
16591735 }
16601736 #undef yythunkpos
16681744 #define yythunkpos yy->__thunkpos
16691745 yyprintf((stderr, "do yy_1_rel_type_name\n"));
16701746 {
1747 #line 632
16711748 strbuf_reset(); ;
16721749 }
16731750 #undef yythunkpos
16811758 #define yythunkpos yy->__thunkpos
16821759 yyprintf((stderr, "do yy_2_rel_type\n"));
16831760 {
1761 #line 629
16841762 __ = strbuf_reltype(); ;
16851763 }
16861764 #undef yythunkpos
16941772 #define yythunkpos yy->__thunkpos
16951773 yyprintf((stderr, "do yy_1_rel_type\n"));
16961774 {
1775 #line 627
16971776 strbuf_reset(); ;
16981777 }
16991778 #undef yythunkpos
17071786 #define yythunkpos yy->__thunkpos
17081787 yyprintf((stderr, "do yy_2_label\n"));
17091788 {
1789 #line 624
17101790 __ = strbuf_label(); ;
17111791 }
17121792 #undef yythunkpos
17201800 #define yythunkpos yy->__thunkpos
17211801 yyprintf((stderr, "do yy_1_label\n"));
17221802 {
1803 #line 622
17231804 strbuf_reset(); ;
17241805 }
17251806 #undef yythunkpos
17331814 #define yythunkpos yy->__thunkpos
17341815 yyprintf((stderr, "do yy_2_parameter\n"));
17351816 {
1817 #line 619
17361818 __ = strbuf_parameter(); ;
17371819 }
17381820 #undef yythunkpos
17461828 #define yythunkpos yy->__thunkpos
17471829 yyprintf((stderr, "do yy_1_parameter\n"));
17481830 {
1831 #line 617
17491832 strbuf_reset(); ;
17501833 }
17511834 #undef yythunkpos
17591842 #define yythunkpos yy->__thunkpos
17601843 yyprintf((stderr, "do yy_1_null_literal\n"));
17611844 {
1845 #line 614
17621846 __ = null_literal(); ;
17631847 }
17641848 #undef yythunkpos
17721856 #define yythunkpos yy->__thunkpos
17731857 yyprintf((stderr, "do yy_1_false_literal\n"));
17741858 {
1859 #line 611
17751860 __ = false_literal(); ;
17761861 }
17771862 #undef yythunkpos
17851870 #define yythunkpos yy->__thunkpos
17861871 yyprintf((stderr, "do yy_1_true_literal\n"));
17871872 {
1873 #line 608
17881874 __ = true_literal(); ;
17891875 }
17901876 #undef yythunkpos
17981884 #define yythunkpos yy->__thunkpos
17991885 yyprintf((stderr, "do yy_2_integer_literal\n"));
18001886 {
1887 #line 604
18011888 __ = strbuf_integer(); ;
18021889 }
18031890 #undef yythunkpos
18111898 #define yythunkpos yy->__thunkpos
18121899 yyprintf((stderr, "do yy_1_integer_literal\n"));
18131900 {
1901 #line 603
18141902 strbuf_reset(); ;
18151903 }
18161904 #undef yythunkpos
18241912 #define yythunkpos yy->__thunkpos
18251913 yyprintf((stderr, "do yy_2_float_literal\n"));
18261914 {
1915 #line 600
18271916 __ = strbuf_float(); ;
18281917 }
18291918 #undef yythunkpos
18371926 #define yythunkpos yy->__thunkpos
18381927 yyprintf((stderr, "do yy_1_float_literal\n"));
18391928 {
1929 #line 599
18401930 strbuf_reset(); ;
18411931 }
18421932 #undef yythunkpos
18501940 #define yythunkpos yy->__thunkpos
18511941 yyprintf((stderr, "do yy_2_string_literal\n"));
18521942 {
1943 #line 596
18531944 __ = strbuf_string(); ;
18541945 }
18551946 #undef yythunkpos
18631954 #define yythunkpos yy->__thunkpos
18641955 yyprintf((stderr, "do yy_1_string_literal\n"));
18651956 {
1957 #line 595
18661958 strbuf_reset(); ;
18671959 }
18681960 #undef yythunkpos
18761968 #define yythunkpos yy->__thunkpos
18771969 yyprintf((stderr, "do yy_2_identifier\n"));
18781970 {
1971 #line 592
18791972 __ = strbuf_identifier(); ;
18801973 }
18811974 #undef yythunkpos
18891982 #define yythunkpos yy->__thunkpos
18901983 yyprintf((stderr, "do yy_1_identifier\n"));
18911984 {
1985 #line 591
18921986 strbuf_reset(); ;
18931987 }
18941988 #undef yythunkpos
19041998 #define yythunkpos yy->__thunkpos
19051999 yyprintf((stderr, "do yy_5_map_literal\n"));
19062000 {
2001 #line 588
19072002 __ = map_literal(); ;
19082003 }
19092004 #undef yythunkpos
19212016 #define yythunkpos yy->__thunkpos
19222017 yyprintf((stderr, "do yy_4_map_literal\n"));
19232018 {
2019 #line 586
19242020 sequence_add(v); ;
19252021 }
19262022 #undef yythunkpos
19382034 #define yythunkpos yy->__thunkpos
19392035 yyprintf((stderr, "do yy_3_map_literal\n"));
19402036 {
2037 #line 585
19412038 sequence_add(n); ;
19422039 }
19432040 #undef yythunkpos
19552052 #define yythunkpos yy->__thunkpos
19562053 yyprintf((stderr, "do yy_2_map_literal\n"));
19572054 {
2055 #line 584
19582056 sequence_add(v); ;
19592057 }
19602058 #undef yythunkpos
19722070 #define yythunkpos yy->__thunkpos
19732071 yyprintf((stderr, "do yy_1_map_literal\n"));
19742072 {
2073 #line 583
19752074 sequence_add(n); ;
19762075 }
19772076 #undef yythunkpos
19882087 #define yythunkpos yy->__thunkpos
19892088 yyprintf((stderr, "do yy_3_collection_literal\n"));
19902089 {
2090 #line 579
19912091 __ = collection_literal(); ;
19922092 }
19932093 #undef yythunkpos
20032103 #define yythunkpos yy->__thunkpos
20042104 yyprintf((stderr, "do yy_2_collection_literal\n"));
20052105 {
2106 #line 577
20062107 sequence_add(e); ;
20072108 }
20082109 #undef yythunkpos
20182119 #define yythunkpos yy->__thunkpos
20192120 yyprintf((stderr, "do yy_1_collection_literal\n"));
20202121 {
2122 #line 576
20212123 sequence_add(e); ;
20222124 }
20232125 #undef yythunkpos
20342136 #define yythunkpos yy->__thunkpos
20352137 yyprintf((stderr, "do yy_8_function_application\n"));
20362138 {
2139 #line 572
20372140 __ = apply_operator(n, false); ;
20382141 }
20392142 #undef yythunkpos
20512154 #define yythunkpos yy->__thunkpos
20522155 yyprintf((stderr, "do yy_7_function_application\n"));
20532156 {
2157 #line 570
20542158 sequence_add(e); ;
20552159 }
20562160 #undef yythunkpos
20682172 #define yythunkpos yy->__thunkpos
20692173 yyprintf((stderr, "do yy_6_function_application\n"));
20702174 {
2175 #line 569
20712176 sequence_add(e); ;
20722177 }
20732178 #undef yythunkpos
20852190 #define yythunkpos yy->__thunkpos
20862191 yyprintf((stderr, "do yy_5_function_application\n"));
20872192 {
2193 #line 567
20882194 __ = apply_operator(n, true); ;
20892195 }
20902196 #undef yythunkpos
21022208 #define yythunkpos yy->__thunkpos
21032209 yyprintf((stderr, "do yy_4_function_application\n"));
21042210 {
2211 #line 565
21052212 sequence_add(e); ;
21062213 }
21072214 #undef yythunkpos
21192226 #define yythunkpos yy->__thunkpos
21202227 yyprintf((stderr, "do yy_3_function_application\n"));
21212228 {
2229 #line 564
21222230 sequence_add(e); ;
21232231 }
21242232 #undef yythunkpos
21362244 #define yythunkpos yy->__thunkpos
21372245 yyprintf((stderr, "do yy_2_function_application\n"));
21382246 {
2247 #line 562
21392248 __ = apply_all_operator(n, false); ;
21402249 }
21412250 #undef yythunkpos
21532262 #define yythunkpos yy->__thunkpos
21542263 yyprintf((stderr, "do yy_1_function_application\n"));
21552264 {
2265 #line 560
21562266 __ = apply_all_operator(n, true); ;
21572267 }
21582268 #undef yythunkpos
21712281 #define yythunkpos yy->__thunkpos
21722282 yyprintf((stderr, "do yy_1_none_predicate\n"));
21732283 {
2284 #line 555
21742285 __ = none_predicate(i, e, p); ;
21752286 }
21762287 #undef yythunkpos
21902301 #define yythunkpos yy->__thunkpos
21912302 yyprintf((stderr, "do yy_1_single_predicate\n"));
21922303 {
2304 #line 550
21932305 __ = single_predicate(i, e, p); ;
21942306 }
21952307 #undef yythunkpos
22092321 #define yythunkpos yy->__thunkpos
22102322 yyprintf((stderr, "do yy_1_any_predicate\n"));
22112323 {
2324 #line 545
22122325 __ = any_predicate(i, e, p); ;
22132326 }
22142327 #undef yythunkpos
22282341 #define yythunkpos yy->__thunkpos
22292342 yyprintf((stderr, "do yy_1_all_predicate\n"));
22302343 {
2344 #line 540
22312345 __ = all_predicate(i, e, p); ;
22322346 }
22332347 #undef yythunkpos
22492363 #define yythunkpos yy->__thunkpos
22502364 yyprintf((stderr, "do yy_1_reduce_expression\n"));
22512365 {
2366 #line 535
22522367 __ = reduce(a, n, i, e, v); ;
22532368 }
22542369 #undef yythunkpos
22702385 #define yythunkpos yy->__thunkpos
22712386 yyprintf((stderr, "do yy_1_extract_expression\n"));
22722387 {
2388 #line 529
22732389 __ = extract(i, e, v); ;
22742390 }
22752391 #undef yythunkpos
22892405 #define yythunkpos yy->__thunkpos
22902406 yyprintf((stderr, "do yy_1_filter_expression\n"));
22912407 {
2408 #line 524
22922409 __ = filter(i, e, p); ;
22932410 }
22942411 #undef yythunkpos
23062423 #define yythunkpos yy->__thunkpos
23072424 yyprintf((stderr, "do yy_1_case_default\n"));
23082425 {
2426 #line 519
23092427 __ = e; ;
23102428 }
23112429 #undef yythunkpos
23212439 #define yythunkpos yy->__thunkpos
23222440 yyprintf((stderr, "do yy_2_case_alternative\n"));
23232441 {
2442 #line 518
23242443 sequence_add(e); ;
23252444 }
23262445 #undef yythunkpos
23362455 #define yythunkpos yy->__thunkpos
23372456 yyprintf((stderr, "do yy_1_case_alternative\n"));
23382457 {
2458 #line 517
23392459 sequence_add(e); ;
23402460 }
23412461 #undef yythunkpos
23522472 #define yythunkpos yy->__thunkpos
23532473 yyprintf((stderr, "do yy_1_case_expression\n"));
23542474 {
2475 #line 514
23552476 __ = case_expression(e, d); ;
23562477 }
23572478 #undef yythunkpos
23712492 #define yythunkpos yy->__thunkpos
23722493 yyprintf((stderr, "do yy_1_list_comprehension\n"));
23732494 {
2495 #line 508
23742496 __ = list_comprehension(i, e, p, v); ;
23752497 }
23762498 #undef yythunkpos
23882510 #define yythunkpos yy->__thunkpos
23892511 yyprintf((stderr, "do yy_4_COMPARISON_OP\n"));
23902512 {
2513 #line 501
23912514 op_push(GT); ;
23922515 }
23932516 #undef yythunkpos
24012524 #define yythunkpos yy->__thunkpos
24022525 yyprintf((stderr, "do yy_3_COMPARISON_OP\n"));
24032526 {
2527 #line 500
24042528 op_push(LT); ;
24052529 }
24062530 #undef yythunkpos
24142538 #define yythunkpos yy->__thunkpos
24152539 yyprintf((stderr, "do yy_2_COMPARISON_OP\n"));
24162540 {
2541 #line 499
24172542 op_push(GTE); ;
24182543 }
24192544 #undef yythunkpos
24272552 #define yythunkpos yy->__thunkpos
24282553 yyprintf((stderr, "do yy_1_COMPARISON_OP\n"));
24292554 {
2555 #line 498
24302556 op_push(LTE); ;
24312557 }
24322558 #undef yythunkpos
24402566 #define yythunkpos yy->__thunkpos
24412567 yyprintf((stderr, "do yy_16_INFIX_OP\n"));
24422568 {
2569 #line 494
24432570 op_push(STARTS_WITH); ;
24442571 }
24452572 #undef yythunkpos
24532580 #define yythunkpos yy->__thunkpos
24542581 yyprintf((stderr, "do yy_15_INFIX_OP\n"));
24552582 {
2583 #line 493
24562584 op_push(CONTAINS); ;
24572585 }
24582586 #undef yythunkpos
24662594 #define yythunkpos yy->__thunkpos
24672595 yyprintf((stderr, "do yy_14_INFIX_OP\n"));
24682596 {
2597 #line 492
24692598 op_push(REGEX); ;
24702599 }
24712600 #undef yythunkpos
24792608 #define yythunkpos yy->__thunkpos
24802609 yyprintf((stderr, "do yy_13_INFIX_OP\n"));
24812610 {
2611 #line 491
24822612 op_push(IN); ;
24832613 }
24842614 #undef yythunkpos
24922622 #define yythunkpos yy->__thunkpos
24932623 yyprintf((stderr, "do yy_12_INFIX_OP\n"));
24942624 {
2625 #line 490
24952626 op_push(POW); ;
24962627 }
24972628 #undef yythunkpos
25052636 #define yythunkpos yy->__thunkpos
25062637 yyprintf((stderr, "do yy_11_INFIX_OP\n"));
25072638 {
2639 #line 489
25082640 op_push(MOD); ;
25092641 }
25102642 #undef yythunkpos
25182650 #define yythunkpos yy->__thunkpos
25192651 yyprintf((stderr, "do yy_10_INFIX_OP\n"));
25202652 {
2653 #line 488
25212654 op_push(DIV); ;
25222655 }
25232656 #undef yythunkpos
25312664 #define yythunkpos yy->__thunkpos
25322665 yyprintf((stderr, "do yy_9_INFIX_OP\n"));
25332666 {
2667 #line 487
25342668 op_push(MULT); ;
25352669 }
25362670 #undef yythunkpos
25442678 #define yythunkpos yy->__thunkpos
25452679 yyprintf((stderr, "do yy_8_INFIX_OP\n"));
25462680 {
2681 #line 486
25472682 op_push(MINUS); ;
25482683 }
25492684 #undef yythunkpos
25572692 #define yythunkpos yy->__thunkpos
25582693 yyprintf((stderr, "do yy_7_INFIX_OP\n"));
25592694 {
2695 #line 485
25602696 op_push(PLUS); ;
25612697 }
25622698 #undef yythunkpos
25702706 #define yythunkpos yy->__thunkpos
25712707 yyprintf((stderr, "do yy_6_INFIX_OP\n"));
25722708 {
2709 #line 484
25732710 op_push(NEQUAL); ;
25742711 }
25752712 #undef yythunkpos
25832720 #define yythunkpos yy->__thunkpos
25842721 yyprintf((stderr, "do yy_5_INFIX_OP\n"));
25852722 {
2723 #line 483
25862724 op_push(EQUAL); ;
25872725 }
25882726 #undef yythunkpos
25962734 #define yythunkpos yy->__thunkpos
25972735 yyprintf((stderr, "do yy_4_INFIX_OP\n"));
25982736 {
2737 #line 482
25992738 op_push(NOT); ;
26002739 }
26012740 #undef yythunkpos
26092748 #define yythunkpos yy->__thunkpos
26102749 yyprintf((stderr, "do yy_3_INFIX_OP\n"));
26112750 {
2751 #line 481
26122752 op_push(XOR); ;
26132753 }
26142754 #undef yythunkpos
26222762 #define yythunkpos yy->__thunkpos
26232763 yyprintf((stderr, "do yy_2_INFIX_OP\n"));
26242764 {
2765 #line 480
26252766 op_push(OR); ;
26262767 }
26272768 #undef yythunkpos
26352776 #define yythunkpos yy->__thunkpos
26362777 yyprintf((stderr, "do yy_1_INFIX_OP\n"));
26372778 {
2779 #line 479
26382780 op_push(AND); ;
26392781 }
26402782 #undef yythunkpos
26482790 #define yythunkpos yy->__thunkpos
26492791 yyprintf((stderr, "do yy_2_POSTFIX_OP\n"));
26502792 {
2793 #line 475
26512794 op_push(IS_NOT_NULL); ;
26522795 }
26532796 #undef yythunkpos
26612804 #define yythunkpos yy->__thunkpos
26622805 yyprintf((stderr, "do yy_1_POSTFIX_OP\n"));
26632806 {
2807 #line 474
26642808 op_push(IS_NULL); ;
26652809 }
26662810 #undef yythunkpos
26742818 #define yythunkpos yy->__thunkpos
26752819 yyprintf((stderr, "do yy_3_PREFIX_OP\n"));
26762820 {
2821 #line 470
26772822 op_push(UNARY_MINUS); ;
26782823 }
26792824 #undef yythunkpos
26872832 #define yythunkpos yy->__thunkpos
26882833 yyprintf((stderr, "do yy_2_PREFIX_OP\n"));
26892834 {
2835 #line 469
26902836 op_push(UNARY_PLUS); ;
26912837 }
26922838 #undef yythunkpos
27002846 #define yythunkpos yy->__thunkpos
27012847 yyprintf((stderr, "do yy_1_PREFIX_OP\n"));
27022848 {
2849 #line 468
27032850 op_push(NOT); ;
27042851 }
27052852 #undef yythunkpos
27152862 #define yythunkpos yy->__thunkpos
27162863 yyprintf((stderr, "do yy_2_property_expression\n"));
27172864 {
2865 #line 462
27182866 __ = p; ;
27192867 }
27202868 #undef yythunkpos
27322880 #define yythunkpos yy->__thunkpos
27332881 yyprintf((stderr, "do yy_1_property_expression\n"));
27342882 {
2883 #line 461
27352884 p = property_operator(p, n); ;
27362885 }
27372886 #undef yythunkpos
27482897 #define yythunkpos yy->__thunkpos
27492898 yyprintf((stderr, "do yy_1_atom\n"));
27502899 {
2900 #line 455
27512901 __ = e; ;
27522902 }
27532903 #undef yythunkpos
27672917 #define yythunkpos yy->__thunkpos
27682918 yyprintf((stderr, "do yy_12__expression\n"));
27692919 {
2920 #line 431
27702921 __ = l; ;
27712922 }
27722923 #undef yythunkpos
27902941 #define yythunkpos yy->__thunkpos
27912942 yyprintf((stderr, "do yy_11__expression\n"));
27922943 {
2944 #line 430
27932945 l = labels_operator(l); ;
27942946 }
27952947 #undef yythunkpos
28132965 #define yythunkpos yy->__thunkpos
28142966 yyprintf((stderr, "do yy_10__expression\n"));
28152967 {
2968 #line 429
28162969 sequence_add(n); ;
28172970 }
28182971 #undef yythunkpos
28362989 #define yythunkpos yy->__thunkpos
28372990 yyprintf((stderr, "do yy_9__expression\n"));
28382991 {
2992 #line 427
28392993 l = slice_operator(l, s, e); ;
28402994 }
28412995 #undef yythunkpos
28593013 #define yythunkpos yy->__thunkpos
28603014 yyprintf((stderr, "do yy_8__expression\n"));
28613015 {
3016 #line 423
28623017 l = subscript_operator(l, r); ;
28633018 }
28643019 #undef yythunkpos
28823037 #define yythunkpos yy->__thunkpos
28833038 yyprintf((stderr, "do yy_7__expression\n"));
28843039 {
3040 #line 420
28853041 l = unary_operator(op_pop(), l); ;
28863042 }
28873043 #undef yythunkpos
29053061 #define yythunkpos yy->__thunkpos
29063062 yyprintf((stderr, "do yy_6__expression\n"));
29073063 {
3064 #line 418
29083065 l = comparison_operator(); ;
29093066 }
29103067 #undef yythunkpos
29283085 #define yythunkpos yy->__thunkpos
29293086 yyprintf((stderr, "do yy_5__expression\n"));
29303087 {
3088 #line 417
29313089 sequence_add(r); ;
29323090 }
29333091 #undef yythunkpos
29513109 #define yythunkpos yy->__thunkpos
29523110 yyprintf((stderr, "do yy_4__expression\n"));
29533111 {
3112 #line 415
29543113 sequence_add(l); ;
29553114 }
29563115 #undef yythunkpos
29743133 #define yythunkpos yy->__thunkpos
29753134 yyprintf((stderr, "do yy_3__expression\n"));
29763135 {
3136 #line 414
29773137 l = binary_operator(op_pop(), l, r); ;
29783138 }
29793139 #undef yythunkpos
29973157 #define yythunkpos yy->__thunkpos
29983158 yyprintf((stderr, "do yy_2__expression\n"));
29993159 {
3160 #line 412
30003161 l = property_operator(l, n); ;
30013162 }
30023163 #undef yythunkpos
30203181 #define yythunkpos yy->__thunkpos
30213182 yyprintf((stderr, "do yy_1__expression\n"));
30223183 {
3184 #line 409
30233185 __ = unary_operator(op_pop(), r); ;
30243186 }
30253187 #undef yythunkpos
30393201 #define yythunkpos yy->__thunkpos
30403202 yyprintf((stderr, "do yy_1__prec_expression\n"));
30413203 {
3204 #line 406
30423205 __ = e; ;
30433206 }
30443207 #undef yythunkpos
30543217 #define yythunkpos yy->__thunkpos
30553218 yyprintf((stderr, "do yy_1_expression\n"));
30563219 {
3220 #line 404
30573221 __ = e; ;
30583222 }
30593223 #undef yythunkpos
30683232 #define yythunkpos yy->__thunkpos
30693233 yyprintf((stderr, "do yy_2_union_clause\n"));
30703234 {
3235 #line 394
30713236 __ = union_clause(false); ;
30723237 }
30733238 #undef yythunkpos
30813246 #define yythunkpos yy->__thunkpos
30823247 yyprintf((stderr, "do yy_1_union_clause\n"));
30833248 {
3249 #line 393
30843250 __ = union_clause(true); ;
30853251 }
30863252 #undef yythunkpos
30953261 #define yythunkpos yy->__thunkpos
30963262 yyprintf((stderr, "do yy_1_limit\n"));
30973263 {
3264 #line 389
30983265 __ = e ;
30993266 }
31003267 #undef yythunkpos
31103277 #define yythunkpos yy->__thunkpos
31113278 yyprintf((stderr, "do yy_1_skip\n"));
31123279 {
3280 #line 388
31133281 __ = e ;
31143282 }
31153283 #undef yythunkpos
31253293 #define yythunkpos yy->__thunkpos
31263294 yyprintf((stderr, "do yy_2_sort_item\n"));
31273295 {
3296 #line 385
31283297 __ = sort_item(e, true); ;
31293298 }
31303299 #undef yythunkpos
31403309 #define yythunkpos yy->__thunkpos
31413310 yyprintf((stderr, "do yy_1_sort_item\n"));
31423311 {
3312 #line 384
31433313 __ = sort_item(e, false); ;
31443314 }
31453315 #undef yythunkpos
31553325 #define yythunkpos yy->__thunkpos
31563326 yyprintf((stderr, "do yy_3_order_by\n"));
31573327 {
3328 #line 380
31583329 __ = order_by(); ;
31593330 }
31603331 #undef yythunkpos
31703341 #define yythunkpos yy->__thunkpos
31713342 yyprintf((stderr, "do yy_2_order_by\n"));
31723343 {
3344 #line 379
31733345 sequence_add(s); ;
31743346 }
31753347 #undef yythunkpos
31853357 #define yythunkpos yy->__thunkpos
31863358 yyprintf((stderr, "do yy_1_order_by\n"));
31873359 {
3360 #line 378
31883361 sequence_add(s); ;
31893362 }
31903363 #undef yythunkpos
32013374 #define yythunkpos yy->__thunkpos
32023375 yyprintf((stderr, "do yy_2_return_projection\n"));
32033376 {
3377 #line 376
32043378 __ = projection(e, i); ;
32053379 }
32063380 #undef yythunkpos
32183392 #define yythunkpos yy->__thunkpos
32193393 yyprintf((stderr, "do yy_1_return_projection\n"));
32203394 {
3395 #line 370
32213396 if (!cypher_astnode_instanceof(
32223397 e, CYPHER_AST_IDENTIFIER))
32233398 {
32393414 #define yythunkpos yy->__thunkpos
32403415 yyprintf((stderr, "do yy_1_additional_return_projections\n"));
32413416 {
3417 #line 364
32423418 sequence_add(i); ;
32433419 }
32443420 #undef yythunkpos
32573433 #define yythunkpos yy->__thunkpos
32583434 yyprintf((stderr, "do yy_6_return_clause\n"));
32593435 {
3436 #line 361
32603437 __ = return_clause(false,false,o,s,l); ;
32613438 }
32623439 #undef yythunkpos
32783455 #define yythunkpos yy->__thunkpos
32793456 yyprintf((stderr, "do yy_5_return_clause\n"));
32803457 {
3458 #line 358
32813459 sequence_add(i); ;
32823460 }
32833461 #undef yythunkpos
32993477 #define yythunkpos yy->__thunkpos
33003478 yyprintf((stderr, "do yy_4_return_clause\n"));
33013479 {
3480 #line 357
33023481 __ = return_clause(false,true,o,s,l); ;
33033482 }
33043483 #undef yythunkpos
33203499 #define yythunkpos yy->__thunkpos
33213500 yyprintf((stderr, "do yy_3_return_clause\n"));
33223501 {
3502 #line 353
33233503 __ = return_clause(true,false,o,s,l); ;
33243504 }
33253505 #undef yythunkpos
33413521 #define yythunkpos yy->__thunkpos
33423522 yyprintf((stderr, "do yy_2_return_clause\n"));
33433523 {
3524 #line 350
33443525 sequence_add(i); ;
33453526 }
33463527 #undef yythunkpos
33623543 #define yythunkpos yy->__thunkpos
33633544 yyprintf((stderr, "do yy_1_return_clause\n"));
33643545 {
3546 #line 349
33653547 __ = return_clause(true,true,o,s,l); ;
33663548 }
33673549 #undef yythunkpos
33813563 #define yythunkpos yy->__thunkpos
33823564 yyprintf((stderr, "do yy_2_proc_projection\n"));
33833565 {
3566 #line 342
33843567 __ = projection(r, NULL); ;
33853568 }
33863569 #undef yythunkpos
33983581 #define yythunkpos yy->__thunkpos
33993582 yyprintf((stderr, "do yy_1_proc_projection\n"));
34003583 {
3584 #line 341
34013585 __ = projection(r, i); ;
34023586 }
34033587 #undef yythunkpos
34163600 #define yythunkpos yy->__thunkpos
34173601 yyprintf((stderr, "do yy_5_call_clause\n"));
34183602 {
3603 #line 338
34193604 __ = call_clause(p); ;
34203605 }
34213606 #undef yythunkpos
34353620 #define yythunkpos yy->__thunkpos
34363621 yyprintf((stderr, "do yy_4_call_clause\n"));
34373622 {
3623 #line 336
34383624 sequence_add(r); ;
34393625 }
34403626 #undef yythunkpos
34543640 #define yythunkpos yy->__thunkpos
34553641 yyprintf((stderr, "do yy_3_call_clause\n"));
34563642 {
3643 #line 335
34573644 sequence_add(r); ;
34583645 }
34593646 #undef yythunkpos
34733660 #define yythunkpos yy->__thunkpos
34743661 yyprintf((stderr, "do yy_2_call_clause\n"));
34753662 {
3663 #line 330
34763664 sequence_add(e); ;
34773665 }
34783666 #undef yythunkpos
34923680 #define yythunkpos yy->__thunkpos
34933681 yyprintf((stderr, "do yy_1_call_clause\n"));
34943682 {
3683 #line 329
34953684 sequence_add(e); ;
34963685 }
34973686 #undef yythunkpos
35103699 #define yythunkpos yy->__thunkpos
35113700 yyprintf((stderr, "do yy_1_unwind_clause\n"));
35123701 {
3702 #line 320
35133703 __ = unwind_clause(e, i); ;
35143704 }
35153705 #undef yythunkpos
35273717 #define yythunkpos yy->__thunkpos
35283718 yyprintf((stderr, "do yy_2_with_projection\n"));
35293719 {
3720 #line 316
35303721 __ = projection(e, NULL); ;
35313722 }
35323723 #undef yythunkpos
35443735 #define yythunkpos yy->__thunkpos
35453736 yyprintf((stderr, "do yy_1_with_projection\n"));
35463737 {
3738 #line 315
35473739 __ = projection(e, i); ;
35483740 }
35493741 #undef yythunkpos
35603752 #define yythunkpos yy->__thunkpos
35613753 yyprintf((stderr, "do yy_1_additional_with_projections\n"));
35623754 {
3755 #line 310
35633756 sequence_add(i); ;
35643757 }
35653758 #undef yythunkpos
35793772 #define yythunkpos yy->__thunkpos
35803773 yyprintf((stderr, "do yy_6_with_clause\n"));
35813774 {
3775 #line 307
35823776 __ = with_clause(false,false,o,s,l,p); ;
35833777 }
35843778 #undef yythunkpos
36023796 #define yythunkpos yy->__thunkpos
36033797 yyprintf((stderr, "do yy_5_with_clause\n"));
36043798 {
3799 #line 303
36053800 sequence_add(i); ;
36063801 }
36073802 #undef yythunkpos
36253820 #define yythunkpos yy->__thunkpos
36263821 yyprintf((stderr, "do yy_4_with_clause\n"));
36273822 {
3823 #line 302
36283824 __ = with_clause(false,true,o,s,l,p); ;
36293825 }
36303826 #undef yythunkpos
36483844 #define yythunkpos yy->__thunkpos
36493845 yyprintf((stderr, "do yy_3_with_clause\n"));
36503846 {
3847 #line 297
36513848 __ = with_clause(true,false,o,s,l,p); ;
36523849 }
36533850 #undef yythunkpos
36713868 #define yythunkpos yy->__thunkpos
36723869 yyprintf((stderr, "do yy_2_with_clause\n"));
36733870 {
3871 #line 293
36743872 sequence_add(i); ;
36753873 }
36763874 #undef yythunkpos
36943892 #define yythunkpos yy->__thunkpos
36953893 yyprintf((stderr, "do yy_1_with_clause\n"));
36963894 {
3895 #line 292
36973896 __ = with_clause(true,true,o,s,l,p); ;
36983897 }
36993898 #undef yythunkpos
37153914 #define yythunkpos yy->__thunkpos
37163915 yyprintf((stderr, "do yy_2_foreach_clause\n"));
37173916 {
3917 #line 283
37183918 __ = foreach_clause(i, e); ;
37193919 }
37203920 #undef yythunkpos
37343934 #define yythunkpos yy->__thunkpos
37353935 yyprintf((stderr, "do yy_1_foreach_clause\n"));
37363936 {
3937 #line 282
37373938 sequence_add(c); ;
37383939 }
37393940 #undef yythunkpos
37533954 #define yythunkpos yy->__thunkpos
37543955 yyprintf((stderr, "do yy_3_remove_item\n"));
37553956 {
3957 #line 278
37563958 __ = remove_labels(i); ;
37573959 }
37583960 #undef yythunkpos
37723974 #define yythunkpos yy->__thunkpos
37733975 yyprintf((stderr, "do yy_2_remove_item\n"));
37743976 {
3977 #line 277
37753978 sequence_add(l); ;
37763979 }
37773980 #undef yythunkpos
37913994 #define yythunkpos yy->__thunkpos
37923995 yyprintf((stderr, "do yy_1_remove_item\n"));
37933996 {
3997 #line 276
37943998 __ = remove_property(p); ;
37953999 }
37964000 #undef yythunkpos
38084012 #define yythunkpos yy->__thunkpos
38094013 yyprintf((stderr, "do yy_3_remove_clause\n"));
38104014 {
4015 #line 273
38114016 __ = remove_clause(); ;
38124017 }
38134018 #undef yythunkpos
38234028 #define yythunkpos yy->__thunkpos
38244029 yyprintf((stderr, "do yy_2_remove_clause\n"));
38254030 {
4031 #line 272
38264032 sequence_add(i); ;
38274033 }
38284034 #undef yythunkpos
38384044 #define yythunkpos yy->__thunkpos
38394045 yyprintf((stderr, "do yy_1_remove_clause\n"));
38404046 {
4047 #line 271
38414048 sequence_add(i); ;
38424049 }
38434050 #undef yythunkpos
38534060 #define yythunkpos yy->__thunkpos
38544061 yyprintf((stderr, "do yy_6_delete_clause\n"));
38554062 {
4063 #line 268
38564064 __ = delete(false); ;
38574065 }
38584066 #undef yythunkpos
38684076 #define yythunkpos yy->__thunkpos
38694077 yyprintf((stderr, "do yy_5_delete_clause\n"));
38704078 {
4079 #line 267
38714080 sequence_add(e); ;
38724081 }
38734082 #undef yythunkpos
38834092 #define yythunkpos yy->__thunkpos
38844093 yyprintf((stderr, "do yy_4_delete_clause\n"));
38854094 {
4095 #line 266
38864096 sequence_add(e); ;
38874097 }
38884098 #undef yythunkpos
38984108 #define yythunkpos yy->__thunkpos
38994109 yyprintf((stderr, "do yy_3_delete_clause\n"));
39004110 {
4111 #line 265
39014112 __ = delete(true); ;
39024113 }
39034114 #undef yythunkpos
39134124 #define yythunkpos yy->__thunkpos
39144125 yyprintf((stderr, "do yy_2_delete_clause\n"));
39154126 {
4127 #line 264
39164128 sequence_add(e); ;
39174129 }
39184130 #undef yythunkpos
39284140 #define yythunkpos yy->__thunkpos
39294141 yyprintf((stderr, "do yy_1_delete_clause\n"));
39304142 {
4143 #line 263
39314144 sequence_add(e); ;
39324145 }
39334146 #undef yythunkpos
39464159 #define yythunkpos yy->__thunkpos
39474160 yyprintf((stderr, "do yy_5_set_item\n"));
39484161 {
4162 #line 260
39494163 __ = set_labels(i); ;
39504164 }
39514165 #undef yythunkpos
39674181 #define yythunkpos yy->__thunkpos
39684182 yyprintf((stderr, "do yy_4_set_item\n"));
39694183 {
4184 #line 259
39704185 sequence_add(l); ;
39714186 }
39724187 #undef yythunkpos
39884203 #define yythunkpos yy->__thunkpos
39894204 yyprintf((stderr, "do yy_3_set_item\n"));
39904205 {
4206 #line 258
39914207 __ = merge_properties(i, e); ;
39924208 }
39934209 #undef yythunkpos
40094225 #define yythunkpos yy->__thunkpos
40104226 yyprintf((stderr, "do yy_2_set_item\n"));
40114227 {
4228 #line 256
40124229 __ = set_all_properties(i, e); ;
40134230 }
40144231 #undef yythunkpos
40304247 #define yythunkpos yy->__thunkpos
40314248 yyprintf((stderr, "do yy_1_set_item\n"));
40324249 {
4250 #line 254
40334251 __ = set_property(p, e); ;
40344252 }
40354253 #undef yythunkpos
40484266 #define yythunkpos yy->__thunkpos
40494267 yyprintf((stderr, "do yy_3_set_clause\n"));
40504268 {
4269 #line 250
40514270 __ = set_clause(); ;
40524271 }
40534272 #undef yythunkpos
40634282 #define yythunkpos yy->__thunkpos
40644283 yyprintf((stderr, "do yy_2_set_clause\n"));
40654284 {
4285 #line 249
40664286 sequence_add(i); ;
40674287 }
40684288 #undef yythunkpos
40784298 #define yythunkpos yy->__thunkpos
40794299 yyprintf((stderr, "do yy_1_set_clause\n"));
40804300 {
4301 #line 248
40814302 sequence_add(i); ;
40824303 }
40834304 #undef yythunkpos
40934314 #define yythunkpos yy->__thunkpos
40944315 yyprintf((stderr, "do yy_2_create_clause\n"));
40954316 {
4317 #line 245
40964318 __ = create_clause(false, p); ;
40974319 }
40984320 #undef yythunkpos
41084330 #define yythunkpos yy->__thunkpos
41094331 yyprintf((stderr, "do yy_1_create_clause\n"));
41104332 {
4333 #line 244
41114334 __ = create_clause(true, p); ;
41124335 }
41134336 #undef yythunkpos
41234346 #define yythunkpos yy->__thunkpos
41244347 yyprintf((stderr, "do yy_2_merge_action_set\n"));
41254348 {
4349 #line 240
41264350 sequence_add(i); ;
41274351 }
41284352 #undef yythunkpos
41384362 #define yythunkpos yy->__thunkpos
41394363 yyprintf((stderr, "do yy_1_merge_action_set\n"));
41404364 {
4365 #line 239
41414366 sequence_add(i); ;
41424367 }
41434368 #undef yythunkpos
41524377 #define yythunkpos yy->__thunkpos
41534378 yyprintf((stderr, "do yy_2_merge_action\n"));
41544379 {
4380 #line 237
41554381 __ = on_create(); ;
41564382 }
41574383 #undef yythunkpos
41654391 #define yythunkpos yy->__thunkpos
41664392 yyprintf((stderr, "do yy_1_merge_action\n"));
41674393 {
4394 #line 236
41684395 __ = on_match(); ;
41694396 }
41704397 #undef yythunkpos
41804407 #define yythunkpos yy->__thunkpos
41814408 yyprintf((stderr, "do yy_2_merge_clause\n"));
41824409 {
4410 #line 232
41834411 __ = merge_clause(p); ;
41844412 }
41854413 #undef yythunkpos
41974425 #define yythunkpos yy->__thunkpos
41984426 yyprintf((stderr, "do yy_1_merge_clause\n"));
41994427 {
4428 #line 231
42004429 sequence_add(a); ;
42014430 }
42024431 #undef yythunkpos
42154444 #define yythunkpos yy->__thunkpos
42164445 yyprintf((stderr, "do yy_5_hint\n"));
42174446 {
4447 #line 227
42184448 __ = using_scan(i, l); ;
42194449 }
42204450 #undef yythunkpos
42344464 #define yythunkpos yy->__thunkpos
42354465 yyprintf((stderr, "do yy_4_hint\n"));
42364466 {
4467 #line 225
42374468 __ = using_join(); ;
42384469 }
42394470 #undef yythunkpos
42534484 #define yythunkpos yy->__thunkpos
42544485 yyprintf((stderr, "do yy_3_hint\n"));
42554486 {
4487 #line 224
42564488 sequence_add(i); ;
42574489 }
42584490 #undef yythunkpos
42724504 #define yythunkpos yy->__thunkpos
42734505 yyprintf((stderr, "do yy_2_hint\n"));
42744506 {
4507 #line 223
42754508 sequence_add(i); ;
42764509 }
42774510 #undef yythunkpos
42914524 #define yythunkpos yy->__thunkpos
42924525 yyprintf((stderr, "do yy_1_hint\n"));
42934526 {
4527 #line 222
42944528 __ = using_index(i, l, p); ;
42954529 }
42964530 #undef yythunkpos
43104544 #define yythunkpos yy->__thunkpos
43114545 yyprintf((stderr, "do yy_4_match_clause\n"));
43124546 {
4547 #line 217
43134548 __ = match_clause(false, p, c); ;
43144549 }
43154550 #undef yythunkpos
43294564 #define yythunkpos yy->__thunkpos
43304565 yyprintf((stderr, "do yy_3_match_clause\n"));
43314566 {
4567 #line 215
43324568 sequence_add(h); ;
43334569 }
43344570 #undef yythunkpos
43484584 #define yythunkpos yy->__thunkpos
43494585 yyprintf((stderr, "do yy_2_match_clause\n"));
43504586 {
4587 #line 213
43514588 __ = match_clause(true, p, c); ;
43524589 }
43534590 #undef yythunkpos
43674604 #define yythunkpos yy->__thunkpos
43684605 yyprintf((stderr, "do yy_1_match_clause\n"));
43694606 {
4607 #line 211
43704608 sequence_add(h); ;
43714609 }
43724610 #undef yythunkpos
43844622 #define yythunkpos yy->__thunkpos
43854623 yyprintf((stderr, "do yy_2_node_ids\n"));
43864624 {
4625 #line 206
43874626 sequence_add(i); ;
43884627 }
43894628 #undef yythunkpos
43994638 #define yythunkpos yy->__thunkpos
44004639 yyprintf((stderr, "do yy_1_node_ids\n"));
44014640 {
4641 #line 205
44024642 sequence_add(i); ;
44034643 }
44044644 #undef yythunkpos
44174657 #define yythunkpos yy->__thunkpos
44184658 yyprintf((stderr, "do yy_8_start_point\n"));
44194659 {
4660 #line 199
44204661 __ = all_rels_scan(i); ;
44214662 }
44224663 #undef yythunkpos
44384679 #define yythunkpos yy->__thunkpos
44394680 yyprintf((stderr, "do yy_7_start_point\n"));
44404681 {
4682 #line 198
44414683 __ = rel_id_lookup(i); ;
44424684 }
44434685 #undef yythunkpos
44594701 #define yythunkpos yy->__thunkpos
44604702 yyprintf((stderr, "do yy_6_start_point\n"));
44614703 {
4704 #line 195
44624705 __ = rel_index_query(i, x, l); ;
44634706 }
44644707 #undef yythunkpos
44804723 #define yythunkpos yy->__thunkpos
44814724 yyprintf((stderr, "do yy_5_start_point\n"));
44824725 {
4726 #line 193
44834727 __ = rel_index_lookup(i, x, p, l); ;
44844728 }
44854729 #undef yythunkpos
45014745 #define yythunkpos yy->__thunkpos
45024746 yyprintf((stderr, "do yy_4_start_point\n"));
45034747 {
4748 #line 187
45044749 __ = all_nodes_scan(i); ;
45054750 }
45064751 #undef yythunkpos
45224767 #define yythunkpos yy->__thunkpos
45234768 yyprintf((stderr, "do yy_3_start_point\n"));
45244769 {
4770 #line 186
45254771 __ = node_id_lookup(i); ;
45264772 }
45274773 #undef yythunkpos
45434789 #define yythunkpos yy->__thunkpos
45444790 yyprintf((stderr, "do yy_2_start_point\n"));
45454791 {
4792 #line 183
45464793 __ = node_index_query(i, x, l); ;
45474794 }
45484795 #undef yythunkpos
45644811 #define yythunkpos yy->__thunkpos
45654812 yyprintf((stderr, "do yy_1_start_point\n"));
45664813 {
4814 #line 181
45674815 __ = node_index_lookup(i, x, p, l); ;
45684816 }
45694817 #undef yythunkpos
45834831 #define yythunkpos yy->__thunkpos
45844832 yyprintf((stderr, "do yy_3_start_clause\n"));
45854833 {
4834 #line 175
45864835 __ = start_clause(c); ;
45874836 }
45884837 #undef yythunkpos
46004849 #define yythunkpos yy->__thunkpos
46014850 yyprintf((stderr, "do yy_2_start_clause\n"));
46024851 {
4852 #line 173
46034853 sequence_add(s); ;
46044854 }
46054855 #undef yythunkpos
46174867 #define yythunkpos yy->__thunkpos
46184868 yyprintf((stderr, "do yy_1_start_clause\n"));
46194869 {
4870 #line 172
46204871 sequence_add(s); ;
46214872 }
46224873 #undef yythunkpos
46354886 #define yythunkpos yy->__thunkpos
46364887 yyprintf((stderr, "do yy_2_loadcsv_clause\n"));
46374888 {
4889 #line 169
46384890 __ = load_csv(false, u, i, t); ;
46394891 }
46404892 #undef yythunkpos
46544906 #define yythunkpos yy->__thunkpos
46554907 yyprintf((stderr, "do yy_1_loadcsv_clause\n"));
46564908 {
4909 #line 166
46574910 __ = load_csv(true, u, i, t); ;
46584911 }
46594912 #undef yythunkpos
46714924 #define yythunkpos yy->__thunkpos
46724925 yyprintf((stderr, "do yy_1_periodic_commit\n"));
46734926 {
4927 #line 144
46744928 __ = using_periodic_commit(l); ;
46754929 }
46764930 #undef yythunkpos
46864940 #define yythunkpos yy->__thunkpos
46874941 yyprintf((stderr, "do yy_1__clauses\n"));
46884942 {
4943 #line 138
46894944 sequence_add(c); ;
46904945 }
46914946 #undef yythunkpos
47014956 #define yythunkpos yy->__thunkpos
47024957 yyprintf((stderr, "do yy_1_clauses\n"));
47034958 {
4959 #line 133
47044960 sequence_add(c); ;
47054961 }
47064962 #undef yythunkpos
47164972 #define yythunkpos yy->__thunkpos
47174973 yyprintf((stderr, "do yy_1_query_hints\n"));
47184974 {
4975 #line 130
47194976 sequence_add(c); ;
47204977 }
47214978 #undef yythunkpos
47304987 #define yythunkpos yy->__thunkpos
47314988 yyprintf((stderr, "do yy_1_query\n"));
47324989 {
4990 #line 128
47334991 __ = query(); ;
47344992 }
47354993 #undef yythunkpos
47475005 #define yythunkpos yy->__thunkpos
47485006 yyprintf((stderr, "do yy_3_drop_constraint\n"));
47495007 {
5008 #line 124
47505009 __ = drop_rel_prop_constraint(i,t,e,false); ;
47515010 }
47525011 #undef yythunkpos
47685027 #define yythunkpos yy->__thunkpos
47695028 yyprintf((stderr, "do yy_2_drop_constraint\n"));
47705029 {
5030 #line 118
47715031 __ = drop_node_prop_constraint(i,l,e,false); ;
47725032 }
47735033 #undef yythunkpos
47895049 #define yythunkpos yy->__thunkpos
47905050 yyprintf((stderr, "do yy_1_drop_constraint\n"));
47915051 {
5052 #line 116
47925053 __ = drop_node_prop_constraint(i,l,e,true); ;
47935054 }
47945055 #undef yythunkpos
48085069 #define yythunkpos yy->__thunkpos
48095070 yyprintf((stderr, "do yy_1_drop_index\n"));
48105071 {
5072 #line 109
48115073 __ = drop_index(l, p); ;
48125074 }
48135075 #undef yythunkpos
48275089 #define yythunkpos yy->__thunkpos
48285090 yyprintf((stderr, "do yy_3_create_constraint\n"));
48295091 {
5092 #line 104
48305093 __ = create_rel_prop_constraint(i,t,e,false); ;
48315094 }
48325095 #undef yythunkpos
48485111 #define yythunkpos yy->__thunkpos
48495112 yyprintf((stderr, "do yy_2_create_constraint\n"));
48505113 {
5114 #line 98
48515115 __ = create_node_prop_constraint(i,l,e,false); ;
48525116 }
48535117 #undef yythunkpos
48695133 #define yythunkpos yy->__thunkpos
48705134 yyprintf((stderr, "do yy_1_create_constraint\n"));
48715135 {
5136 #line 96
48725137 __ = create_node_prop_constraint(i,l,e,true); ;
48735138 }
48745139 #undef yythunkpos
48885153 #define yythunkpos yy->__thunkpos
48895154 yyprintf((stderr, "do yy_1_create_index\n"));
48905155 {
5156 #line 89
48915157 __ = create_index(l, p); ;
48925158 }
48935159 #undef yythunkpos
49035169 #define yythunkpos yy->__thunkpos
49045170 yyprintf((stderr, "do yy_1_explain_option\n"));
49055171 {
5172 #line 77
49065173 __ = explain_option(); ;
49075174 }
49085175 #undef yythunkpos
49165183 #define yythunkpos yy->__thunkpos
49175184 yyprintf((stderr, "do yy_1_profile_option\n"));
49185185 {
5186 #line 76
49195187 __ = profile_option(); ;
49205188 }
49215189 #undef yythunkpos
49295197 #define yythunkpos yy->__thunkpos
49305198 yyprintf((stderr, "do yy_1_cypher_param_val\n"));
49315199 {
5200 #line 74
49325201 __ = block_string(); ;
49335202 }
49345203 #undef yythunkpos
49425211 #define yythunkpos yy->__thunkpos
49435212 yyprintf((stderr, "do yy_1_cypher_param_name\n"));
49445213 {
5214 #line 73
49455215 __ = block_string(); ;
49465216 }
49475217 #undef yythunkpos
49575227 #define yythunkpos yy->__thunkpos
49585228 yyprintf((stderr, "do yy_1_cypher_param\n"));
49595229 {
5230 #line 72
49605231 __ = cypher_option_param(n, v); ;
49615232 }
49625233 #undef yythunkpos
49725243 #define yythunkpos yy->__thunkpos
49735244 yyprintf((stderr, "do yy_1_cypher_version\n"));
49745245 {
5246 #line 70
49755247 __ = block_string(); ;
49765248 }
49775249 #undef yythunkpos
49875259 #define yythunkpos yy->__thunkpos
49885260 yyprintf((stderr, "do yy_2_cypher_option\n"));
49895261 {
5262 #line 67
49905263 __ = cypher_option(v); ;
49915264 }
49925265 #undef yythunkpos
50045277 #define yythunkpos yy->__thunkpos
50055278 yyprintf((stderr, "do yy_1_cypher_option\n"));
50065279 {
5280 #line 66
50075281 sequence_add(p); ;
50085282 }
50095283 #undef yythunkpos
50205294 #define yythunkpos yy->__thunkpos
50215295 yyprintf((stderr, "do yy_1_statement_option\n"));
50225296 {
5297 #line 62
50235298 sequence_add(o); ;
50245299 }
50255300 #undef yythunkpos
50355310 #define yythunkpos yy->__thunkpos
50365311 yyprintf((stderr, "do yy_1_cypher_statement\n"));
50375312 {
5313 #line 58
50385314 __ = statement(b); ;
50395315 }
50405316 #undef yythunkpos
50505326 #define yythunkpos yy->__thunkpos
50515327 yyprintf((stderr, "do yy_3___statement\n"));
50525328 {
5329 #line 49
50535330 yy->result = d; ;
50545331 }
50555332 #undef yythunkpos
50655342 #define yythunkpos yy->__thunkpos
50665343 yyprintf((stderr, "do yy_2___statement\n"));
50675344 {
5345 #line 48
50685346 yy->result = NULL; ;
50695347 }
50705348 #undef yythunkpos
50805358 #define yythunkpos yy->__thunkpos
50815359 yyprintf((stderr, "do yy_1___statement\n"));
50825360 {
5361 #line 47
50835362 yy->result = NULL; ;
50845363 }
50855364 #undef yythunkpos
50945373 #define yythunkpos yy->__thunkpos
50955374 yyprintf((stderr, "do yy_1__statement\n"));
50965375 {
5376 #line 43
50975377 finished(yy); ;
50985378 }
50995379 #undef yythunkpos
51085388 #define yythunkpos yy->__thunkpos
51095389 yyprintf((stderr, "do yy_4___directive\n"));
51105390 {
5391 #line 38
51115392 yy->result = d; ;
51125393 }
51135394 #undef yythunkpos
51235404 #define yythunkpos yy->__thunkpos
51245405 yyprintf((stderr, "do yy_3___directive\n"));
51255406 {
5407 #line 37
51265408 yy->result = d; ;
51275409 }
51285410 #undef yythunkpos
51385420 #define yythunkpos yy->__thunkpos
51395421 yyprintf((stderr, "do yy_2___directive\n"));
51405422 {
5423 #line 36
51415424 yy->result = NULL; ;
51425425 }
51435426 #undef yythunkpos
51535436 #define yythunkpos yy->__thunkpos
51545437 yyprintf((stderr, "do yy_1___directive\n"));
51555438 {
5439 #line 35
51565440 yy->result = NULL; ;
51575441 }
51585442 #undef yythunkpos
51675451 #define yythunkpos yy->__thunkpos
51685452 yyprintf((stderr, "do yy_1__directive\n"));
51695453 {
5454 #line 31
51705455 finished(yy); ;
51715456 }
51725457 #undef yythunkpos
0 /* A recursive-descent parser generated by peg 0.1.15 */
0 /* A recursive-descent parser generated by peg 0.1.18 */
11
22 #include <stdio.h>
33 #include <stdlib.h>
300300 #define yythunkpos yy->__thunkpos
301301 yyprintf((stderr, "do yy_1_EOF\n"));
302302 {
303 #line 59
303304 yy->eof = true; ;
304305 }
305306 #undef yythunkpos
313314 #define yythunkpos yy->__thunkpos
314315 yyprintf((stderr, "do yy_1_statement\n"));
315316 {
317 #line 32
316318 segment(true, yy); ;
317319 }
318320 #undef yythunkpos
326328 #define yythunkpos yy->__thunkpos
327329 yyprintf((stderr, "do yy_1_client_command\n"));
328330 {
331 #line 20
329332 segment(false, yy); ;
330333 }
331334 #undef yythunkpos
229229 END_TEST
230230
231231
232 START_TEST (track_error_position_across_statements)
233 {
234 struct cypher_input_position last = cypher_input_position_zero;
235 result = cypher_parse(
236 "match (n) return n;\n"
237 "m atch (n) return n;\n"
238 "match (d) return d;\n"
239 "match (bc e) return a;\n",
240 &last, NULL, 0);
241 ck_assert_ptr_ne(result, NULL);
242 ck_assert_int_eq(last.offset, 84);
243
244 ck_assert(cypher_parse_result_fprint_ast(result, memstream, 0, NULL, 0) == 0);
245 fflush(memstream);
246 const char *expected = "\n"
247 " @0 0..19 statement body=@1\n"
248 " @1 0..19 > query clauses=[@2, @7]\n"
249 " @2 0..10 > > MATCH pattern=@3\n"
250 " @3 6..9 > > > pattern paths=[@4]\n"
251 " @4 6..9 > > > > pattern path (@5)\n"
252 " @5 6..9 > > > > > node pattern (@6)\n"
253 " @6 7..8 > > > > > > identifier `n`\n"
254 " @7 10..18 > > RETURN projections=[@8]\n"
255 " @8 17..18 > > > projection expression=@9\n"
256 " @9 17..18 > > > > identifier `n`\n"
257 "@10 20..30 error >>m atch (n)<<\n"
258 "@11 30..40 statement body=@12\n"
259 "@12 31..40 > query clauses=[@13]\n"
260 "@13 31..39 > > RETURN projections=[@14]\n"
261 "@14 38..39 > > > projection expression=@15\n"
262 "@15 38..39 > > > > identifier `n`\n"
263 "@16 41..60 statement body=@17\n"
264 "@17 41..60 > query clauses=[@18, @23]\n"
265 "@18 41..51 > > MATCH pattern=@19\n"
266 "@19 47..50 > > > pattern paths=[@20]\n"
267 "@20 47..50 > > > > pattern path (@21)\n"
268 "@21 47..50 > > > > > node pattern (@22)\n"
269 "@22 48..49 > > > > > > identifier `d`\n"
270 "@23 51..59 > > RETURN projections=[@24]\n"
271 "@24 58..59 > > > projection expression=@25\n"
272 "@25 58..59 > > > > identifier `d`\n"
273 "@26 61..73 error >>match (bc e)<<\n"
274 "@27 73..83 statement body=@28\n"
275 "@28 74..83 > query clauses=[@29]\n"
276 "@29 74..82 > > RETURN projections=[@30]\n"
277 "@30 81..82 > > > projection expression=@31\n"
278 "@31 81..82 > > > > identifier `a`\n";
279 ck_assert_str_eq(memstream_buffer, expected);
280
281 ck_assert_int_eq(cypher_parse_result_nerrors(result), 2);
282
283 const cypher_parse_error_t *err = cypher_parse_result_get_error(result, 0);
284 struct cypher_input_position pos = cypher_parse_error_position(err);
285 ck_assert_int_eq(pos.line, 2);
286 ck_assert_int_eq(pos.column, 2);
287 ck_assert_int_eq(pos.offset, 21);
288 ck_assert_str_eq(cypher_parse_error_message(err),
289 "Invalid input ' ': expected MATCH or MERGE");
290
291 err = cypher_parse_result_get_error(result, 1);
292 pos = cypher_parse_error_position(err);
293 ck_assert_int_eq(pos.line, 4);
294 ck_assert_int_eq(pos.column, 11);
295 ck_assert_int_eq(pos.offset, 71);
296 ck_assert_str_eq(cypher_parse_error_message(err),
297 "Invalid input 'e': expected a label, '{', a parameter or ')'");
298 }
299 END_TEST
300
301
232302 TCase* errors_tcase(void)
233303 {
234304 TCase *tc = tcase_create("errors");
239309 tcase_add_test(tc, parse_invalid_query_and_resync);
240310 tcase_add_test(tc, parse_single_invalid_query);
241311 tcase_add_test(tc, track_error_position_over_embedded_newline);
312 tcase_add_test(tc, track_error_position_across_statements);
242313 return tc;
243314 }