DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
155 stars 52 forks source link

feat: Add set operation (select ... union select ...) for insert stat… #200

Closed antoineB closed 1 year ago

antoineB commented 1 year ago

…ements.

antoineB commented 1 year ago

How do you get the number of parser states ?

matthias-Q commented 1 year ago

The state count is shown in the generated parser.c

dmfay commented 1 year ago

yeah, head -18 src/parser.c shows you all the potentially useful counts.

antoineB commented 1 year ago

Here is all the numbers

f75b8ea 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7637

define LARGE_STATE_COUNT 328

define SYMBOL_COUNT 702

define ALIAS_COUNT 0

define TOKEN_COUNT 407

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 197

531d243 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7528

define LARGE_STATE_COUNT 323

define SYMBOL_COUNT 702

define ALIAS_COUNT 0

define TOKEN_COUNT 407

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

bec206c 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7362

define LARGE_STATE_COUNT 317

define SYMBOL_COUNT 698

define ALIAS_COUNT 0

define TOKEN_COUNT 406

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

c223823 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7362

define LARGE_STATE_COUNT 317

define SYMBOL_COUNT 698

define ALIAS_COUNT 0

define TOKEN_COUNT 406

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

1e3f464 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7362

define LARGE_STATE_COUNT 317

define SYMBOL_COUNT 698

define ALIAS_COUNT 0

define TOKEN_COUNT 406

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

bde914f 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7362

define LARGE_STATE_COUNT 317

define SYMBOL_COUNT 698

define ALIAS_COUNT 0

define TOKEN_COUNT 406

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

1a2b0da 1,4M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 7373

define LARGE_STATE_COUNT 322

define SYMBOL_COUNT 696

define ALIAS_COUNT 0

define TOKEN_COUNT 406

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

970b548 1,6M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 4590

define LARGE_STATE_COUNT 787

define SYMBOL_COUNT 670

define ALIAS_COUNT 0

define TOKEN_COUNT 386

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190

385aff4 (main) 1,5M target/parser.so

define LANGUAGE_VERSION 14

define STATE_COUNT 4536

define LARGE_STATE_COUNT 775

define SYMBOL_COUNT 670

define ALIAS_COUNT 0

define TOKEN_COUNT 386

define EXTERNAL_TOKEN_COUNT 0

define FIELD_COUNT 42

define MAX_ALIAS_SEQUENCE_LENGTH 16

define PRODUCTION_ID_COUNT 190