-
Notifications
You must be signed in to change notification settings - Fork 167
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
Position tokens not supported by cpp-nostl backend #297
Labels
Milestone
Comments
andreasabel
added a commit
that referenced
this issue
Oct 3, 2020
Used to work only for string tokens.
andreasabel
added a commit
that referenced
this issue
Oct 3, 2020
andreasabel
added a commit
that referenced
this issue
Oct 3, 2020
andreasabel
added a commit
that referenced
this issue
Oct 5, 2020
The position parts are bound to a postulated type #Int with postulated conversions to Nat. Since position tokens are represented in Haskell rather ugly as newtype MyPosId = MyPosId ((Int, Int), String) we also have to define a type of pairs that we bind to Haskell's tuple type. TODO: generate nicer interface to access contents of a position token, like projections that return line, column, and string.
andreasabel
added a commit
that referenced
this issue
Oct 5, 2020
The regression, non-compileable Skeleton.C, was introduced during the fix of #277 in 4fb4116. CPP/STL respects position tokens, CPP/NoSTL ignores `position`. The unification of the Skeleton-generators broke cpp-nostl. Fixed by workarounds that treat position tokens just as tokens when useSTL == False.
andreasabel
added a commit
that referenced
this issue
Oct 5, 2020
andreasabel
added a commit
that referenced
this issue
Oct 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Position tokens lack support in the following backends, the test #235 fails now for these backends (since I added a position token declaration to the test case).
position
has always been ignored, but fixes of Interaction betweencoercions
and arrays causes syntax error. #100 (e8abd9f) and C++ backend: Skeleton files broken with user-defined tokens #277 ( 4fb4116) broke even generation of Printer/SkeletonRemaining TODO (low-prio):
position
in token declarations in CPP-NoSTL backend.The text was updated successfully, but these errors were encountered: