|
Daniel Silverstone 🏳️🌈🇬🇧
@
dsilverstone
Manchester
|
|
Mostly Grey former ginger with a preference for Rust. Leads wg-rustup, sorry about the mess. He/Him/His
|
|
|
11.243
Tweetovi
|
166
Pratim
|
455
Osobe koje vas prate
|
| Tweetovi |
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
2 h |
|
I would prefer an AST which was moderately easily returned to markdown, rather than one which is lower level (which I'd consider HTML to be) but not a bad idea if other options aren't useful inspiration enough, thanks.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
20 h |
|
Thanks.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
22 h |
|
Based on today's expenditure, mostly running :D
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
23 h |
|
A brief glance suggests github.com/icyleaf/markd/… is the AST -- is that right? (While I said any language will do, Crystal and Ruby are not ones I'm yet familiar with navigating)
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
24 h |
|
Nice. There will be easier to use options (e.g. using serde and yaml-rust directly to convert from yaml to Rust structs) but if you care about provenance and reporting errors then you might find `marked-yaml` to be of use :D Issues and PRs *gratefully* received.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
24 h |
|
I've been directed toward mdast by someone in another place, but looking at those other impls sounds sensible too. Pandoc's AST is so far the most obvious thing to crib from.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
The spec is definitely useful, though it doesn't really come out and say "this is the AST" it's more of a set of rules for identifying and parsing the components. AFAICT. Perhaps I missed an AST definition in my skim?
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
We also consume YAML as input, and I wrote crates.io/crates/marked-… over the past couple of weeks for similar purposes :D
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
I am working on a tool with a friend which consumes markdown as a semi-structured input format. In order to better report errors in the input, I want to be able to point at the line (and column perhaps) where the error exists.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
Thanks, added to the reading list.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
Not quite. I am putting together a provenanced Markdown AST and want to ensure that it's as nicely structured as it can be. Parsing Markdown is a total pig, but there're good libraries for that already.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
Dear Lazyweb/Twitterverse,
Do you have a favourite Markdown AST? I am already looking at Pandoc's AST for inspiration, but other examples would be useful.
Any programming language is fine, I am capable of consuming ideas from most genres.
Thanks, D.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
3. velj |
|
I have my first pint of tea in hand as we speak :D
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
31. sij |
|
For those interested, it's primary purpose is to allow you to report back to users when configuration values are bad etc, in a more effective way. Everyone loves provenanced errors.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
31. sij |
|
This morning I released version 0.1.0 of `marked-yaml` which is a @rustlang library crate for a simplified YAML data structure which provides spans (or at least start marks) for all the data you parse out of YAML strings.
crates.io/crates/marked-…
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
30. sij |
|
Presumably either there's some super-secret headers trainfares.co.uk need to add, or gmail needs to learn to cope with their emails.
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
29. sij |
|
It me. twitter.com/AchewoodNC/sta…
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
29. sij |
|
So far you've not been recommending it, but in 4 days of Go, surely you have encountered something *positive* to say ?
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
29. sij |
|
Photos of me looking nearly dead, and utterly dead, from the Heaton 10K last Sunday... pic.twitter.com/LtuhYKhpiG
|
||
|
|
||
|
Daniel Silverstone 🏳️🌈🇬🇧
@dsilverstone
|
29. sij |
|
I'd say 'cry' but honestly my ducts are dry, despite hyperhydration efforts.
|
||
|
|
||