Reminds me of brainfuck.

On Wed, Oct 19, 2016 at 10:04 AM, Marko Rodriguez <[email protected]>
wrote:

> Hello,
>
> Last night I was cruisin’ around Wikipedia and was checking out various
> programming languages. One in particular caught my eye — APL.
>
> https://en.wikipedia.org/wiki/APL_(programming_language)#Game_of_Life
>
> I thought it would be neat to have different type of syntax to express
> Gremlin traversals and came up with the following "2D pipes” language.
>
> https://gist.github.com/okram/cfb526bf01c36c1e4001de6b3dc0f60c
>
> Basically, there are “piping” symbols that dictate traverser flow:
> - ^ / \
> These pipes link the steps, where commonly used steps have a short-hand
> syntax.
>
> The translator to go from this to Gremlin bytecode seems pretty simple.
> The internal data structure for the language is:
>
> List<List<String>>
>
> This give you the 2D matrix. You then can go “up and down” the lists and
> “left and right” along the tokens, where the - ^ \ / pipes tell you how to
> move about the List<List<String>> structure.
>
> Does anyone think this is cool?
>
> Marko.
>
> http://markorodriguez.com
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/gremlin-users/B347B223-FD64-4F5C-9E65-7F50CF72BF38%40gmail.com
> <https://groups.google.com/d/msgid/gremlin-users/B347B223-FD64-4F5C-9E65-7F50CF72BF38%40gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Dale

Reply via email to