Who the fuck in their sane mind would willingly choose that horribly vebose and ugly syntax???
god damn savages
http://github.com/deeepaaa/rana
Wait, so it's a preprocessor that converts c-like to HTML? That is actually sick!
>>55724040
thank you I guess :^)
>>55724050
Does it leave JS intact?
what are the differences between this and markdown?
>>55724015
>not just programming the markup in js
come on
>>55724072
You can escape processing with double quotes
>>55724095
This is a full "C"->XML compiler, markdown doesn't support every tag, just formatting.
>>55724119
>markdown
Dude i want to help out! We need syntax checking, includes, the whole 9 yards! Optimizing?
>>55724119
yeah i just realized that but i already made the post. looks pretty sick desu
>>55724142
You seem excited lol feel free to fork it
>>55724142
Also, some tips, you cant just statically replace crap, you need a lexer and a tokenizer. Strinp all whitespaces, and then analyze char by char. Look up Lexical analysis
>>55724176
I think I could just pass the output through one of those beautyfier things
>>55724194
No way, to much error prone. Skip a space somewhere and ur screwed. And syntax errors? forget it.
>>55724015
This is exactly my objection to HTML, and exactly the solution I always wanted. Have a star!
>not using elm
>>55724269
Thank you senpai
>>55724015
Would you accept a patch that added a proper yacc/lex parser?
>>55724296
sure!
Is this the thing ur going for?
>>55724285
>elm
>writing 200 lines of code to print "hello ,wordl"
>>55724330
yes it is
>>55724307
Do you have any test files already? It might help if I had some test input so I can check for regressions when I change something.
>>55724330
without the semicolon though
>>55724351
We'll also need a tool that does the reverse, so people can convert existing HTML to Rana.
>>55724072
>writing js inside html files
kys
>>55724368
The only test file i've saved is the nest-egg thing you see in the readme :$
>>55724377
Imagine someone has JS example code on their website, what the faggot?
>>55724337
It's two lines actually
looks even worse desu
How's this thread STILL up? Oh wait.
>>55724395
Sent you a PR that adds a Makefile and a regression testing system. Only test so far is the one from the README, but it passes, so that's good.
https://warosu.org/g/image/8BKv5l5G3t6xG9Ff1OLxMQ
>>55724015
>OP doesn't know about Jade (now Pug)
>>55724015
Your thing is horrible. What you really want is quasiquoted SXML templates, or some other kind of improvement on them.
>>55725621
>lisp style html
no thanks
Dunno if a good idea
Seeing a lot of } } } } } (indented obviously) and no clear way of telling what tag each } closes might be actually counter productive
It works in C because having tons of }}}} isn't common and probably bad design.
Having many </div> </etc> near each other is much more common for obvious reasons
>>55724938
You misspelled Rana though. Multiple times. Lol.
>>55725685
Where? I didn't capitalize it, but that's pretty normal...