Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
Cezary Drożak edited this page May 26, 2021 · 2 revisions

Pepe syntax is simple - it's possible to parse it with a regular expression that doesn't even span more than 15 characters. Here is an example, where every command is captured to group 1 - note that it doesn't handle spaces in the middle of the word correctly…

Let's start from the basics:

Case-sensitivity

Pepe is case-sensitive. RE and re are 2 completely different things!

Comments

In Pepe, everything that is not in REre is ignored, so we can call it a comment.

This is a commnt.

However, because it takes a bit of time to remove all op's and some words might be unreadable, we can use the second type of comments:

# Everything following a "#" per line is a comment.
ReEeEeE  # Comments end with a line break.

Commands

After removing all the comments, Pepe will parse all commands. A command starts with either R or r and consists of every E and e before the next command.

1    2    
REEE r e e  # comment in middle of command
    3  4 
e e re re

In the above example, there are 4 commands. REEE, reeee and two res. Note that all spaces are ignored, since they're comments too.

How commands work?

  • The first R or r defines the stack the command works on. Pepe has two, with names corresponding to the used letter: R and r.
  • The following E's and e's tell Pepe what command from the list it is.

Examples:

  • REEE - Auto parse input and push it to stack R.
  • Re - Pop item from stack R.
  • rEeeEE - Square active item in stack r.

Flags

In Pepe, every command starts with R or r and contains at least one E or e. If it does not meet one of the criteria, it's a flag.

Examples (uppercase = flag):

  • EEEEreee
  • RRreee
  • EEERRreee
  • reee reee Rreeee
  • EEE ree Rreee RRreeee
Clone this wiki locally