[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

UGH fucking HTML

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 39
Thread images: 4

File: F2C.jpg (76KB, 427x435px) Image search: [Google]
F2C.jpg
76KB, 427x435px
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!
>>
File: Screenshot_2016-07-24_02-08-56.png (5KB, 250x148px) Image search: [Google]
Screenshot_2016-07-24_02-08-56.png
5KB, 250x148px
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
>>
File: 29123991239.png (230KB, 522x430px) Image search: [Google]
29123991239.png
230KB, 522x430px
>>55724015
>OP doesn't know about Jade (now Pug)
>>
File: sxml.png (93KB, 692x492px) Image search: [Google]
sxml.png
93KB, 692x492px
>>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...
Thread posts: 39
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.