<audy>
i want to make a markdown but for annotating genomes that renders to SVG. I started playing with a parser library in JavaScript and have a sort of LISP-y language that gets converted to a tree
<audy>
but how do I go from tree -> SVG?
<audy>
I guess that part is the "compiler"
<alexgordon>
I
<alexgordon>
uh
<audy>
I'm just going to learn how haml works
<alexgordon>
audy: why not just parse it
<alexgordon>
then output it
<alexgordon>
why so complicated!
<audy>
alexgordon I already have the parser
<audy>
but I want to generate some SVG. It's not a 1:1 mapping like with haml
<audy>
more like markdown
<alexgordon>
well
<alexgordon>
do it :P
alexgordon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yrashk has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
ELLIOTTCABLE has joined #elliottcable
yrashk has joined #elliottcable
manveru has quit [Remote host closed the connection]
manveru has joined #elliottcable
<ELLIOTTCABLE>
audy: not sure what you're asking.
<ELLIOTTCABLE>
audy: or rather, I think what you're asking, is not how2codeit, but how2structureit.
<ELLIOTTCABLE>
and you're basically describing … the actual point of your project. which is the part you *should* know. :P
<ELLIOTTCABLE>
i.e. the semantics: how <something> in your language, once parsed and stored and all the boring crap is done, *actually maps to* <something> in the target semantic. (in this case, the SVG DOM.)
<ELLIOTTCABLE>
right?
<whitequark>
wow, ec preaches semantics
<whitequark>
did you grow up while i was away or what
<audy>
ELLIOTTCABLE yeah that
<audy>
I know how to write a bunch of logic to get what I want but I want to see an example of how2structureit
<ELLIOTTCABLE>
whitequark: wat
<ELLIOTTCABLE>
whitequark: grew up how?
<ELLIOTTCABLE>
whitequark: and I've *always* been semantics ≥ syntax
<ELLIOTTCABLE>
the whole thing where Paws hasn't had a syntax since it was a fledgling 1-year-old …
<ELLIOTTCABLE>
:P
* ELLIOTTCABLE
says Paws over and over, just to annoy you
<ELLIOTTCABLE>
Paws
<ELLIOTTCABLE>
Paws has continuations that aren't
<whitequark>
I'm not annoyed by the mention of Paws
<ELLIOTTCABLE>
Paws is distributed definitely
<ELLIOTTCABLE>
totally stable and distributed
<ELLIOTTCABLE>
it has Science
<ELLIOTTCABLE>
that distributes it
<ELLIOTTCABLE>
it has C, A, P, and even Z!
<ELLIOTTCABLE>
beat that, Non-Sciencey Systems.
<whitequark>
I will strangle you
<ELLIOTTCABLE>
2:48 PM <+whitequark> I'm not annoyed by the mention of Paws
<ELLIOTTCABLE>
2:49 PM <+whitequark> I will strangle you
<ELLIOTTCABLE>
timestamps. too perfect. can't breathe.
<ELLIOTTCABLE>
whitequark: I heart ur butt
<ELLIOTTCABLE>
(Z stands for ZOMG.)
<ELLIOTTCABLE>
(any distributive pattern without ZOMG isn't a useful pattern.)
<ELLIOTTCABLE>
(Z and P being the non-optional parts of CAPZ.)
<whitequark>
so many people have no understanding of CAP >_>
sharkbot has quit [Remote host closed the connection]
sharkbot has joined #elliottcable
sharkbot has quit [Remote host closed the connection]