søren peter mørch

Conversation

Recent posts in reply to #hrqg53a

xuu (txt.sour.is)

@prologic ooh I am adding that to my test suite

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic as promised! https://github.com/JonLundy/twtxt/blob/xuu/integrate-lextwt/types/lextwt/lextwt_test.go#<L435-L461 https://txt.sour.is/search?tag=L435-L461>

the lexer is nearing completion.. the tough part left is rooting out all the formatting code.

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic kinda.. It can parse the twts into an AST.. but most of the formatting out expects a string to do regex over rather then the parsed AST. thats what i am working out next.

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@adi @prologic using regex. which can be a rather inexact science ;)

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic yep. it actually extracts everything at parse time. like mentions/tags/links/media. so they can be accessed and manipulated without additional parsing. it can then be output as MarkDown

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic ah I need to add an edge case for naked urls with fragments.

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic yep!some of the lexer is directly copied from monkey-lang. love that book series.

In reply to: #hrqg53a 5 years ago
xuu (txt.sour.is)

@prologic @xuu Closer! Last bit to finish is a beast. FormatTwtFactory

In reply to: #hrqg53a 5 years ago
Reply via email