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

replace the line/stanza search DSL with a real query language #90

Open
bennn opened this issue Jan 13, 2017 · 0 comments
Open

replace the line/stanza search DSL with a real query language #90

bennn opened this issue Jan 13, 2017 · 0 comments

Comments

@bennn
Copy link
Owner

bennn commented Jan 13, 2017

Yo! The #:constraint for things like villanelle are B.S.

#lang ipoe
 
#:name villanelle
#:rhyme-scheme {[R1 B R2]
                [A  B R1]
                [A  B R2]
                [A  B R1]
                [A  B R2]
                [A  B R1 R2]}
#:syllables 10
#:constraint
  (line=? (line 0 (stanza 0))
          (line 2 (stanza 1))
          (line 2 (stanza 3))
          (line 2 (stanza 5)))
#:constraint
  (line=? (line 2 (stanza 0))
          (line 2 (stanza 2))
          (line 2 (stanza 4))
          (line 3 (stanza 5)))

Instead I want to write

#:constraint  (line=? R1)

And it should know what I mean by R1 : all the lines in the poem at the positions labeled R1 in the rhyme scheme.

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