-
Notifications
You must be signed in to change notification settings - Fork 6
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
Interface for input #21
Comments
It is already done but in kinda other way, take a look at https://github.com/YaccConstructor/Meerkat/blob/master/core/src/main/scala/org/meerkat/input/Input.scala |
@darthorimar Some comments:
|
|
@darthorimar (@ilya-nozhkin @kajigor) Well. Seems that interface should be discussed in more details. And redesigned. Let suppose that we should not support linear-input specific features. Firs idea. As far as token is just a function for shecking some properties of element at specified position in input (when I specify tok("a") in grammar, I meens that it should be checked wheter w.[i] = "a" for appropriate i), I want to generalize "tokens" to functions for properties checking. Smthg like this:
Looks like generalization of "filterEdges" Next. The return type of each combinator should be a LazyCollection<Path<Vrt, Edg>>, where path is a sequence of vertices and edges. A partial path can eds with edge or vertex, vertices and edges should be in a right order, and combinators for some vertices can be omitted: |
Makes sense, see #34 |
Create an interface for input data.
Seems, that next functions are required.
The text was updated successfully, but these errors were encountered: