Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexcept parse #4636

Open
shxxd opened this issue Jun 4, 2024 · 0 comments
Open

Unexcept parse #4636

shxxd opened this issue Jun 4, 2024 · 0 comments

Comments

@shxxd
Copy link

shxxd commented Jun 4, 2024

Parse.g4:
dsl_stmt: (udf_stmt)* select_stmt hit_limit_clause record_config_clause ;

hit_limit_clause
: max_hits_limit min_hit_interval
;

max_hits_limit
: MAX_HITS_PER_HOUR NUMBER
;

min_hit_interval
: MIN_HIT_INTERVAL_SECONDS NUMBER
;

record_config_clause
: before_hit_time after_hit_time
;

before_hit_time
: RECORD_SECONDS_BEFORE_HIT NUMBER
;

after_hit_time
: RECORD_SECONDS_AFTER_HIT NUMBER
;

DSL:
max_hits_per_hour 30 min_hit_interval_seconds 120 record_seconds_before_hit 60 record_seconds_after_hit 10 max_hits_per_hour 30 min_hit_interval_seconds 120 record_seconds_before_hit 60 record_seconds_after_hit 10

'hit_limit_clause' and 'record_config_clause' appear twice, why it can match successfully?(C++)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant