slint icon indicating copy to clipboard operation
slint copied to clipboard

Please document the syntax of slint files

Open martinellison opened this issue 1 year ago • 5 comments

Could you please document the syntax of the slint language. Something like https://www.sqlite.org/lang.html would be very helpful.

martinellison avatar Feb 14 '24 07:02 martinellison

Hi, there is a Slint language reference https://slint.dev/releases/1.4.1/docs/slint/. It also contains details about the syntax. Is that what are you looking for?

FloVanGH avatar Feb 14 '24 10:02 FloVanGH

Florin,

I was looking at something more formal, for example the syntax diagrams for sqLite that I linked to. Perhaps I am wrong there.

Regards, Martin Ellison (he/him)

On Wed, 14 Feb 2024, 18:04 Florian Blasius, @.***> wrote:

Hi, there is a Slint language reference https://slint.dev/releases/1.4.1/docs/slint/. It also contains details about the syntax. Is that what are you looking for?

— Reply to this email directly, view it on GitHub https://github.com/slint-ui/slint/issues/4614#issuecomment-1943435108, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEA3AVR3GPA3RWTALWSQSTYTSD2DAVCNFSM6AAAAABDHZDE3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGQZTKMJQHA . You are receiving this because you authored the thread.Message ID: @.***>

martinellison avatar Feb 14 '24 12:02 martinellison

Hi Martin, no problem. Then it I think you suggestion is a improvement for the documentation.

Regards Florian

FloVanGH avatar Feb 14 '24 12:02 FloVanGH

Do you want this to write tooling or as real documentation?

For the first use-case you might find our tree-sitter grammar handy. It's in editors/tree-sitter-slint/grammar.js. That does of course not work as documentation!

hunger avatar Feb 14 '24 13:02 hunger

Real documentation. I just want to write slint code for a personal project.

I think other slint users would benefit from the same documentation. The existing documentation is more of a tutorial (despite the name) and reference documentation would be useful.

martinellison avatar Feb 28 '24 06:02 martinellison