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

[config] [dsl] fixes #32 - RXT scraper definition language #38

Open
wants to merge 87 commits into
base: develop
Choose a base branch
from
Open

[config] [dsl] fixes #32 - RXT scraper definition language #38

wants to merge 87 commits into from

Conversation

olemis
Copy link
Contributor

@olemis olemis commented Nov 21, 2018

Fixes #32

Changes:

  • Core interfaces
  • Lexer and parser for RXT scraper definition language

Does this change need to mentioned in CHANGELOG.md?
yes

TODO :

    • Exclude generated files from linter rules
    • Add lexer golden files containing lexical errors
    • Test cases for matching sample RXT files against corresponding lexer golden files
    • Naive make test-grammar for start ...
    • Run RXT lexer golden file test cases in make test-grammar
    • Implement core interfaces for obtaining AST
    • Naive tests for AST
    • Run RXT AST golden file test cases in make test-grammar
    • Implement core interfaces for obtaining scraper
    • Error handling in lexer and parser
    • Configure REXT parser to log to stderr

@olemis
Copy link
Contributor Author

olemis commented Nov 23, 2018

@stdevAlDen this is how I am testing the lexer now (refs item 3)

$ nex -s src/rxt/grammar/lexer.nex
$ go run cmd/rxtc/lexer.go < src/rxt/testdata/skyexample.rxt 2> src/rxt/testdata/skyexample.golden.orig
$ diff -u src/rxt/testdata/skyexample.golden src/rxt/testdata/skyexample.golden.orig

This is how I used to do it before

$ nex -s src/config/rxt/lexer.nex
$ go run src/config/rxt/lexer.nn.go < src/config/rxt/testdata/skyexample.rxt 2> src/config/rxt/testdata/skyexample.golden.orig
$ diff -u src/config/rxt/testdata/skyexample.golden src/config/rxt/testdata/skyexample.golden.orig

olemis and others added 16 commits November 23, 2018 17:35
Autogenerated grammar files in src/rxt/grammar
…_and_time_series' into stdevAlDen_t32_rxt_dsl
- Changes in AST classes to cope with grammar aspects
- Key/value store implementation using map[string]string
- Library function : MergeStoresInplace
- TokenWriter prints token pairs to stdout (used for tokenizing files to be compared against golden lexer checks)
…_and_time_series' into stdevAlDen_t32_rxt_dsl
Alvaro Denis and others added 30 commits December 21, 2018 14:44
- refactor in core interfaces definition, add Clone and Validate methods
- some source code comment on validations
- refactor some variable names
- fix some bugs
	deleted:    src/config/config.go
	deleted:    src/config/config_render.go
	deleted:    src/config/metric.go
	deleted:    src/config/metric_test.go
	deleted:    src/config/server.go
	deleted:    src/config/server_test.go
	deleted:    src/config/service.go
	deleted:    src/config/service_test.go
	deleted:    src/config/serviceconfigfromfile.go
	deleted:    src/config/serviceconfigreader.go
Implement RXT DSL interfaces for scraper configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants