emilwallner / emilwallner/Screenshot-to-code

Bootstrap version: Adding more flexibility to the DSL vocabulary

Open
#26 11 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
HTML
Stars
16.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

The DSL is simple and straight forward: A token per matching html snippet. However, in a real world scenario many classes would overlap and intermix with each other ie:

`

{}
`

could be:

`

{}
`

or

`div class="col-md-3 border border-primary">{}`

It seems the structure of the DSL requires you to have a very large vocabulary with thousands of tokens but it would still not solve the flexibility problem. How would you approach solving this problem?

Is an emmet style vocabulary like the below possible?

`{`
`"quadruple.border+border-primary": "

\n{}\n
\n"`
`}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.