Skip to content

Language guide #2

@indexzero

Description

@indexzero

First Fascinating stuff. I really like your creativity here. I got turned onto computers through logo when I was 6 so teaching languages always have a special place in my heart.

Have you begun to formalize the language guide yet? It's usually one of the first things to do in these situations before going off an implementing all the language features.

Based on reading the code base and some example code:

  literals
  --------
  `my` is a reserved keyword representing the POV of the story
  `name` is a reserved keyword representing the name of the POV
  `room` is a reserved keyword representing a place the POV can move through 
  `summary` is a reserved keyword describing an entity in the story
  `exit` is a reserved keyword connecting rooms
  The language supports single quoted strings for attaching text to entities

  operators
  ---------
  `is` is equivalent to `=`. `is` may optionally be followed by `a` 
  but no grammar checking is done to determine if that is appropriate.
  `look` is an operator of examining entities
  `at` is a qualifying operator for look

That's all I got right now. Have you considered a Javascript version of the parser? It would make playing this in the browser much easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions