Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Hey

Name: 🐫 2018-02-12 4:49

I'm writing a new textboard that will revolutionize all textboards!

It is being written in the revolutionary programming language called Perl

This is what i have so far:


#!/usr/bin/perl
1;

Name: Anonymous 2018-04-28 4:38

Perl is like the twitter of programming languages. Very short and sweet.

You can have some 20 character perl script -- pretty much impossible to read unless you're the author -- and it's the equivalent to like 500 lines of Java.

But it's not aging very well. Sites with .pl in the URL (for a file, not the ccTLD) usually look like they were designed in 2001.

Name: Anonymous 2018-04-28 9:20

Camel-kun, can I contribute? I know Java and I can consume a REST api and the create a mobile client for your web sight.

Name: 🐫 2018-04-29 20:26

>>122
Sure, anon, but i am still far from defining an API. I need a decent open beta first to test my current design.

I have finished the design of the markup. I leave it here for you to comment. The coding of the parser is going pretty well! 5 passes of regexps gave me almost everything i needed 😎

Frog-mu v0.1
https://imgur.com/5OiGAv3

2 Examples
https://imgur.com/a/83ZdlTc

Considering that the board will not have JS, i tried to think in something that was robust and quick to type. There are a couple or more constructs i'm working on (like a greentext block, and a special spoiler block) but in general this is a good description of the markup. An image markup and external links block are missing, and this is intentional.

And yes, i am thinking on support BBCODE later, and Markdown, there are perl modules for that already so integrating them should be easy. But this is going to be the official markup.

Name: 🐫 2018-04-29 20:42

>>123
Some clarification about the "align left"", and asking for help too. The name in the table says "align left" and it shows aligning right because i still have not decided HOW to call it. See, there is NO PURPOSE in aligning left UNLESS, you write in a language where aligning right is the default, so the picture is just a reflection on what i'm thinking now. Now, for the question:

How would you call it? I only have these ideas: ALIGN OPPOSITE, INVERT ALIGN, ALIGN FRONT.

Name: 🐫 2018-05-02 5:24

This is a sample of the current incarnation of the markup.

https://imgur.com/a/a2SPAFS

Name: Anonymous 2018-05-02 6:53

please don't make me learn another renegade markup language
please support sexp code, it is powerful, expressive, and nonverbose

Name: Anonymous 2018-05-02 7:52

>>126
It's also a bitch to parse, because you have to keep a table of all identifiers and their arity to tell the text part from the arguments. Some kind of delimiter between the arguments and the text would have helped.

Name: Anonymous 2018-05-02 8:19

>>127
that's unpythonic, don't make things unnecessarily complicated to use

Name: 🐫 2018-05-02 12:33

>>126
But, is similar to sexpcode!!!! Except for function composition, i tried to mimic it's general structure.

this is some markup

Just compare BBCODE vs this one...
[o][b]this[/b] [i]is[/i][/o] [u]some markup[/u]

VS

[o [b this] [i is]] [u some markup]

I left the function composition out because is just markup. However, i plan to use a very simple "parametrization" of some tags in this general form.

[x(flag1 flag2) contents of the tag]


--------------------------------------------

Examples
For the Table construct:
[t(separator-semicolon)
header ; header
data1 ; data2
data3 ; data4
]



For the spoiler tag
[h(reveal) a special type of spoiler]
[h(blinds) another type of spoiler]

Name: 🐫 2018-05-02 12:34

>>126
But, is similar to sexpcode!!!! Except for function composition, i tried to mimic it's general structure.

this is some markup

Just compare BBCODE vs this one...
[o][b]this[/b] [i]is[/i][/o] [u]some markup[/u]

VS

[o [b this] [i is]] [u some markup]

I left the function composition out because is just markup. However, i plan to use a very simple "parametrization" of some tags in this general form.

[x(flag1 flag2) contents of the tag]


--------------------------------------------

Examples
For the Table construct:
[t(separator-semicolon)
header ; header
data1 ; data2
data3 ; data4
]



For the spoiler tag
[h(reveal) a special type of spoiler]
[h(blinds) another type of spoiler]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List