Pewlang

From Esolang
Jump to navigation Jump to search

Pewlang is an esoteric programming language, that translates to brainfuck and was made in 2021. It was mostly inspired by Z and was made as a joke in the PewPew Discord Server for the game PewPew. Pewlang is a part of the Trivial brainfuck substitution. It was made by User:Tasty Kiwi and User:SKPG-Tech.

Pewlang can be used with the provided encoder/decoder here at GitHub.

The encoder/decoder is written in Python.

Syntax

brainfuck command Pewlang command
> pew
< Pew
+ pEw
- peW
, PEw
. pEW
[ PeW
] PEW

Examples

Hello World:

pEw PeW peW peW pew peW PeW pew pew pEw pew peW peW peW peW peW Pew Pew PEW Pew peW peW Pew peW peW peW PEW pew peW pEW pew pew pew pEw pEW pew pew pEW pEW pEw pEw pEw PeW pEW pew PEW Pew Pew Pew Pew pEW pEw pEw pEw pEW peW peW peW peW peW peW pEW Pew Pew peW pEW pew pew pew pew pEw pEW

Sierpiński triangle:

                                pew    
                               pEw pEw    
                              pEw   pEw    
                             PeW Pew pEw pEw    
                            pEw       pEw    
                           pEw pEw     pEw pEw    
                          pew   peW   PEW   pew    
                         pEw pEw pEw pEw pEw pEw pEw pEw    
                        PeW               pew    
                       pEw pEw             pEw pEw    
                      Pew   peW           PEW   pew    
                     pew pEw pEw pew         pew pew pEw pew    
                    pew       pew       pEw       Pew    
                   Pew Pew     Pew Pew     Pew Pew     Pew Pew    
                  Pew   PeW   peW   PeW   peW   pew   pEw   Pew    
                 PEW pew PeW peW Pew pEw pew pew pew pEW Pew Pew PEW pew pew pew    
                PeW                               PeW    
               peW pew                             pEw pEw    
              pEw   pEw                           pEw   pEw    
             pEw pEw PeW pew                         pEw pEw pEw pEw    
            Pew       peW                       PEW       pew    
           pEW Pew     Pew PeW                     peW pew     pEw Pew    
          PEW   pEw   pew   PeW                   peW   pew   pEw   pEw    
         pEw pEw pEw pEw pEw pEw pEw pEw                 Pew Pew pEw pew PEW pew pEW PeW    
        peW               PEW               pew               PEW    
       PEW pEw             Pew Pew             Pew PeW             peW PeW    
      peW   pew           pEw   Pew           PEW   pEw           pew   PeW    
     peW Pew pEw pew         pew pew peW PeW         peW pew pEw Pew         PEW pEw pEw pew    
    PeW       peW       Pew       peW       pew       PEW       Pew       Pew    
   Pew PEW     Pew Pew     Pew Pew     PEW pEw     pEw pEw     pEw pEw     pEw pEw     pEw pEw    
  pEw   pEW   pEw   pEw   pEw   pEW   PeW   peW   PEW   Pew   PEW   pEw   pEw   pEw   pEw   pEw    

Christmas tree:

pewpewpewpeWpeWpeWpeWpeWpeWpeWpeWPewPEwPeWPewPeWpewpEwpEwpEwpEwpEwpEwpEwpEwpEwpEwPewpeWPEWpewpewPeWPewpeWpeWpeWpeWpeWpeWpewpewpeWPewpEwPEWPEwPEWpEwpEwpewpewpEwpEwPewpeWpeWPeWPewpEwpEwPeWpEwpewPEWpewpEwPewPewpEwpEwpEwPewPEWPew
PewPeWpewpewpEwPeWPeWpewpewpEwPewPewpeWPEWPewPewPEWpewpewpewpewPeWPeWPewPewpEwpewpEWpewpeWPEWpewpewPEWPewpEWPewPewPewpEwPewPewpeWPEWpewpewPeWPewpEWpewpeWpeWPEWpewpEWpewpewpEW

Print out input (cat program):

pEw PeW pew PEw pEW PEW

(Most examples were taken from here)