[PYTHON] A programming language that protects the people from NHK

Introduction

The other day, an article titled [Mathematics] The Party to Protect the People from NHK to the Party to Protect the People from NHK was posted on Qiita. I did.

In this article, ** the party grammar that protects the people from NHK ** is defined. After reading this, I thought:

Combinatory logic

The grammar that protects the people from NHK can unambiguously describe a binary tree with two types of leaves, ** NHK ** and ** people **.

I focused on Lazy K as a programming language with such a simple syntax.

Lazy K is [Combinatory Logic](https://ja.wikipedia.org/wiki/%E3%82%B3%E3%83%B3%E3%83%93%E3%83%8D%E3%83%BC It is a programming language based on% E3% 82% BF% E8% AB% 96% E7% 90% 86), and you can write programs with only three combinators, S`` K ʻI. Of these, ʻI is known to be extensionally equal to S K K, so the only practical combinators needed are S and K. [^ 1]

[^ 1]: If you say ι = (λf. (F S) K), you don't even need S and K. Reference

Therefore, you can make a Turing complete language just by reading the following [^ 2].

[^ 2]: In other words, "the language that protects the people from NHK" like Ook! For Brainfuck is just a change of the reserved word of Lazy K.

Grammar to protect the people from NHK Combinator
NHK S
People K
Party that protects B from A (A B)

Please refer to Lazy K's introductory site for input / output and handling of numerical values.

Implementation of processing system

I used Python to implement the processing system.

nhk.py


#!/usr/bin/env python3
import sys
class Combinator :
    '''X-Y is synonym of Apply(X,Y)'''
    def __sub__(self, arg) :
        return Apply(self, arg)

    def evaluate(self) :
        return self

    def get_left(self, xs) :
        xs.append(self)

class _SIN(Combinator) :
    '''Do not call _SIN() . Use SIN instead'''
    sinlist = None
    def evaluate(self) :
        if _SIN.sinlist is None :
            _SIN.sinlist = str_to_sk(sys.stdin.read())
        return _SIN.sinlist

class _S(Combinator) :
    '''Do not call _S() . Use S instead'''

class _K(Combinator) :
    '''Do not call _K() . Use K instead'''

class Foreign(Combinator) :
    '''Non-combinator class. ((Foreign f)-(Foreign x)).evaluate() == f(x)'''
    def __init__(self, val) :
        self.val = val

class Apply(Combinator) :
    '''Application of combinators. Apply(X,Y) represents (X Y)'''
    def __init__(self, fun, arg) :
        self.fun = fun
        self.arg = arg

    def get_left(self, xs) :
        xs.append(self.arg)
        self.fun.get_left(xs)

    def evaluate(self) :
        left_evaled = self.fun.evaluate() - self.arg
        left = []
        left_evaled.get_left(left)
        n = len(left)
        if(n == 4 and left[3] == S) :
            return (left[2] - left[0] - (left[1] - left[0])).evaluate()
        if(n == 3 and left[2] == K) :
            return (left[1]).evaluate()
        if(n == 2 and isinstance(left[1], Foreign)) :
            return Foreign(left[1].val(left[0].evaluate().val))
        return left_evaled

S = _S()
K = _K()
SIN = _SIN()

I = S-K-K
true = K
false = K-I

# cons = \ x y c . c x y
cons = S-(S-(K-S)-(S-(K-K)-(S-(K-S)-(S-(K-(S-I))-K))))-(K-K)

succ = S-(S-(K-S)-K)
zero = K-I
one = I
two = succ-one
mul = S-(K-S)-K

def str_to_sk(string) :
    ret = cons - int_to_church(256) - false
    for c in reversed(string) :
        ret = cons - int_to_church(ord(c)) - ret
    return ret

def church_to_int(c) :
    return (c-(Foreign(lambda n: n+1))-(Foreign(0))).evaluate().val

def int_to_church(n) :
    if(n == 0) :
        return zero
    if(n == 1) :
        return one
    if(n == 2) :
        return two
    else :
        ret = one
        for c in bin(n)[3:]:
            ret = mul - two - ret
            if c == '1' :
                ret = succ - ret
        return ret

def get_car(c) :
    return (c-true).evaluate()

def get_cdr(c) :
    return (c-false).evaluate()

def evalAsLazyK(arg) :
    sk = arg - SIN
    while True :
        n = church_to_int(get_car(sk))
        if n > 255 :
            break
        print(chr(n), end='')
        sk = get_cdr(sk)

def parseNHK(code) :
    len_NHK     = len('NHK')
    len_people = len('People')
    len_from    = len('From')
    len_save    = len('Party to protect')

    stk = []
    code = code.replace('\n', '')

    while code :
        if code.startswith('NHK') :
            stk.append(S)
            code = code[len_NHK:]
        elif code.startswith('People') :
            stk.append(K)
            code = code[len_people:]
        elif code.startswith('From') :
            code = code[len_from:]
        elif code.startswith('Party to protect') :
            try :
                arg = stk.pop()
                fun = stk.pop()
            except IndexError as e :
               raise Exception('parseNHK failed. Too much "Party to protect"')
            stk.append(fun-arg)
            code = code[len_save:]
        elif code.startswith(' ') or code.startswith('\t') or code.startswith(' ') :
            code = code[1:]
        else :
            raise Exception('parseNHK failed at ' + code[:10])
    if len(stk) == 1 :
        return stk.pop()
    else :
        raise Exception('parseNHK failed. Too few "Party to protect"')

if __name__ == '__main__' :
    with open(sys.argv[1]) as f:
        src = f.read()
    ast = parseNHK(src)
    evalAsLazyK(ast)

Actually, I wanted to read one character from the standard input each time I needed it, but because my kung fu wasn't enough, it was designed to read all the standard input when I first needed it [^ 3] ].

[^ 3]: I'll fix it when I feel like it

Sample code

echo Let's write a program that just outputs the standard input to the standard output. The code looks like this:

sample.nhk


The party that protects the people from the NHK

I will try it.

python


echo "foo bar baz" |./nhk.py sample.nhk

output


foo bar baz

It's working well.

String output

If you use the people (K combinator), you can write a program that ignores standard input and gives a fixed output.

Below is the sample code.

sample2.nhk


From the people from NHK From NHK From the party that protects NHK from the people From the party that protects the party from NHK From the party that protects the people from the people From NHK
From the party that protects NHK from the people From the party that protects the people from NHK From the people From NHK From the party that protects the people from NHK
From the party that protects the people from the party that protects the people from the party that protects the party that protects the party that protects the party from the party that protects the people
From the party that protects NHK from the people From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
Protect the party from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the party from the party that protects the party
From the party that protects the party From the party that protects the people From NHK From NHK From the people From the party that protects NHK From the party that protects the party From the party that protects the people N
From the party that protects the people from HK From the party that protects the people from the party that protects the party From NHK From the party that protects NHK from the people
From the party that protects the people From NHK From the party that protects NHK From the party that protects the party From the party that protects the people From NHK From the people
From the party that protects the NHK From the party that protects the people From the party that protects the party From the party that protects the people from NHK From the party that protects the people From the party that protects the party?
From the party that protects the NHK from the people from NHK from the party that protects the people from the party from NHK to the party that protects NHK from the people from NHK
From the party that protects the people from the party that protects the people from NHK From the party that protects the people From the party that protects the party from NHK From the people to NHK
From the party that protects the party from the party that protects the people From the party that protects the people from NHK From NHK From the party that protects NHK
From the party to protect the people from NHK From the party to protect the people from the party to protect the party from the party to protect the party from the party to protect the NHK from the people
From the party that protects the people From NHK From NHK From the people that protects NHK From the party that protects the party From the party that protects the people From the party that protects the people from NHK
The party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people
From the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party from NHK
From the party that protects the people from NHK From the party that protects NHK from the party From NHK From the people From NHK to the people from NHK
From the party that protects the people From the party that protects the party that protects the party that protects the party that protects the party from the party that protects the party
From the party that protects the people from the people From NHK From the party that protects NHK from the people From the party that protects the people from the party that protects the people
From the party that protects the NHK from the people from NHK from the party that protects the people from the party from NHK to the party that protects NHK from the people from NHK
From the party that protects the people from the party that protects the people from NHK From the party that protects the people from the party that protects the party from NHK to the people from NHK
Protect the NHK from the party Protect the people from the party Protect the people from the party Protect the NHK from the NHK Protect the people from the party Protect the people from the party
From the party From NHK From NHK Protect the people from the people From the party Protect the people From the party Protect the people From the party Protect the people from NHK From the party to the country
From the party that protects the people From the party that protects the party From NHK From the party that protects NHK from the party From the party that protects the people
From the party that protects NHK from the people from HK From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects the people From the party that protects the people from NHK From the party that protects the people From the party that protects the party From NHK From NHK From the people N
From the party that protects HK From the party that protects the people From the party that protects the people From NHK From the party that protects NHK From the party that protects the people From the party that protects the people
From NHK to NHK Protect the people from the people Protect the party from the party Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party from the party that protects the party from NHK From the party that protects NHK from the party that protects the party from NHK
From the party that protects the NHK From the party that protects the people From the party that protects the party From the party that protects the people from NHK From the party that protects the people From the party that protects the party?
From NHK to the party that protects NHK from the people from NHK From the party that protects the people from the party that protects the people from NHK
From the party that protects the people From the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party that protects the people
Protect the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from NHK
Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party From NHK From NHK
From the party that protects NHK from the people From the party that protects the people from NHK From the party that protects the people from the people From the party that protects NHK from the people
From the party to protect the people from NHK From the people from NHK From the party that protects the people from the party that protects the people from the party that protects the party that protects the people from the party that protects the people
From the party that protects the party that protects the party that protects the party that protects the party that protects the party from the party that protects the people from the party that protects the party from NHK to NHK
From the party that protects the party from the party that protects the people From the party that protects the party from NHK From the party that protects NHK
Protect the people from K to NHK Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party From the party that protects the party From NHK From the NHK From the people From the party that protects the NHK From the party that protects the people
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the party Protect the NHK from the NHK Protect the people from the NHK
Protect the party Protect the people from the NHK Protect the people from the party Protect the party Protect the party Protect the NHK from the NHK Protect the people from the people
From the party that protects the party From the party that protects the people From the party that protects the party from NHK From the party that protects NHK From the party that protects the party from the party that protects the people From NHK to N
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party Protects NHK from the people From the party that protects the party that protects the people from the party that protects the people
From the party that protects the party to protect the people from the party that protects the party from the party that protects the people from NHK
From the party that protects the NHK from the people to the party that protects the people from the party that protects the people from the NHK
From the party that protects the people from NHK From NHK From the party that protects NHK from the party From the party that protects the people From the party that protects the people from NHK
From the party that protects the party that protects the party From the party that protects the party that protects the party from NHK From NHK From the party that protects NHK from the party
From the party that protects the party that protects NHK from the people from the party that protects the party from the party that protects the people from the party that protects the people from NHK
From the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people
From the party that protects the people to the party that protects the people The party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party
From the party that protects the party that protects the party that protects the party from NHK to the party that protects NHK from the people
From the defending party From NHK From the people From the party that protects NHK From the party that protects from NHK From the people From NHK From the party that protects the people from NHK
Protect the party Protect the party Protect the party Protect the people from the party Protect the party Protect the party Protect the party Protect the party Protect the people from the party
Protect the party Protect the NHK from the NHK Protect the party Protect the people from the party Protect the people from the party NHK from the NHK Protect the NHK from the people
From the party that protects the party From the party that protects the people From the party that protects the party From the party that protects the people from the party that protects the people From the party that protects the party from NHK
From the party that protects NHK from the people from NHK From the party that protects the people from the party that protects the people from NHK
From the party that protects the people From NHK From NHK From the people that protects NHK From the party that protects the party From the party that protects the people From the party that protects the people from NHK
From the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects from NHK From the party that protects NHK from the people From the party that protects from the party that protects the people from NHK From NHK From the people
From the party that protects the people from the party that protects the party from the party that protects the people from NHK From the party that protects the people from the party that protects the party from NHK to NHK
From the party that protects NHK from the people From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects the people From NHK From NHK From the people Protect the NHK From the party Protect the people From the party Protect the party Protect the people from the NHK
Protect the people from the party Protect the party From the party Protect the NHK From the people Protect the NHK From the party Protect the people From the party Protect the people From NHK
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party From NHK From NHK From the people From the party that protects NHK From the party that protects the party From the party that protects the party From NHK From the people
From the party that protects the NHK From the party that protects the people From the party that protects the people from NHK From the NHK From the party that protects NHK From the party that protects the party that protects the people
From the party that protects the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from the party that protects the people from NHK
From NHK to NHK
From the party that protects NHK from the people From the party that protects the people from NHK From the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects from NHK From the people From NHK From the party that protects the people from the party that protects the people From the party that protects the party that protects the party that protects the country
Protect the people Protect the party Protect the party Protect the party Protect the party Protect the people from the people Protect the people from the party Protect the NHK from the people
From the party that protects the party to the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
From the party that protects the people from NHK, from the party that protects the people from the party that protects the people, from the party that protects the people from NHK
From the party that protects the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the people from the party that protects the party from NHK From the party that protects NHK from the party that protects the people from the party that protects the people from NHK
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
Protect the party Protect the NHK from the NHK Protect the party Protect the people from the party Protect the people from the party NHK from the NHK Protect the NHK from the people
From the party that protects the party From the party that protects the people From the party that protects the party From the party that protects the people from the party that protects the people From the party that protects the party from NHK
Protect the NHK from the people Protect the people from the party Protect the people from the NHK Protect the NHK from the people
From the party that protects the party to protect the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from the party that protects the people from NHK
The party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects NHK from the NHK
From the party that protects the people from NHK from the party that protects the people from NHK From the party that protects NHK from the people from NHK
Protect the people from NHK Protect the people from the party Protect the people Protect the party Protect the party Protect the party Protect the people Protect the party Protect the party
From the party that protects the party to protect the people from the people From the party that protects the party from NHK to from NHK
From the party that protects From the party that protects NHK From the party that protects NHK From the party that protects from the party that protects the people From NHK From NHK From the people From NHK
From the party that protects the party that protects the people From the party that protects the party from the party that protects the people from the party that protects the people
From the party that protects the NHK from the people from the party that protects the party from the party that protects the people from the party that protects the people from the NHK
From the party that protects the people from NHK From NHK From the party that protects NHK from the party that protects the people from the party that protects the people from NHK
Protect the people from the party that protects the people from the party that protects the party that protects the people from NHK from NHK
Protect the party Protect the NHK from the NHK Protect the party Protect the people from the party Protect the people from the party NHK from the NHK Protect the NHK from the people
From the party that protects the party From the party that protects the people From the party that protects the party From the party that protects the people from the party that protects the people From the party that protects the party from NHK
Protect the NHK from the people Protect the people from the party Protect the people from the NHK Protect the NHK from the people
Protect the people from the party that protects the party Protects the people from the party that protects the people from the party that protects the party that protects the people
From the party that protects the party to protect the people From the party that protects the party from NHK From the party that protects NHK From the party that protects the party from the party that protects the people
From the party that protects the NHK from the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the NHK
From the party that protects the party from NHK to the people from NHK From the party that protects NHK From the party that protects the party from the party that protects the people from NHK
From the party that protects NHK from the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
Protect the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people
Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party
From NHK to the party that protects the people from NHK from the party that protects NHK from the party that protects the people from NHK from the party that protects the people from NHK
From the party that protects NHK From the party that protects the people from NHK From the party that protects the people from NHK From the party that protects the people
From the party that protects the people from the party that protects the party from the party that protects the party that protects the party from the party that protects the people
From the party that protects NHK from the people From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects the people From NHK From NHK From the people Protect the NHK From the party Protect the people From the party Protect the party Protect the people from the NHK
Protect the people from the party Protect the party From the party Protect the NHK From the people Protect the NHK From the party Protect the people From the party Protect the people From NHK
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party Protects NHK from the people From the party that protects the party that protects the people from the party that protects the people
From the party that protects the party to protect the people from the party that protects the party from the party that protects the people from NHK
From the party that protects the NHK from the people to the party that protects the people from the party that protects the people from the NHK
From the party that protects the people from NHK From NHK From the party that protects NHK from the party From the party that protects the people From the party that protects the people from NHK
From the party that protects the party that protects the party From the party that protects the party that protects NHK From the party that protects NHK
Protect the people from NHK Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the party
From the party that protects the party From the party that protects the party From NHK From the NHK From the people From the party that protects the NHK From the party that protects the people
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the party Protect the NHK from the NHK Protect the people from the NHK
Protect the party from the party Protect the people from NHK Protect the people from the party Protect the party Protect the party Protect the people from NHK Protect the people from the party
Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party From NHK to NHK
From the party that protects NHK from the people, from the party that protects the people from NHK, from the party that protects the people from NHK, from the party that protects NHK from the people
From the defending party From NHK From the people From NHK From the NHK From the party that protects the people From the party that protects the party that protects the party that protects the party from the party that protects the people
Protect the party Protect the party Protect the party Protect the party Protect the people from the party Protect the people from the party Protect the NHK from the NHK
From the party that protects the party From the party that protects the people From NHK From NHK From the people From the party that protects NHK From the party that protects the party From the party that protects the people N
Protect the people from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the people from the party
From the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the people from the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
From the party that protects the NHK from the people from NHK from the party that protects the people from the party from NHK to the party that protects NHK from the people from NHK
From the party that protects the people from the party that protects the people from NHK From the party that protects the people From the party that protects the party from NHK From the people to NHK
From the party that protects the party from the party that protects the people From the party that protects the people from NHK From NHK From the party that protects NHK
Protect the people from the party Protect the people from the party Protect the people from the party Protect the party Protect the party from NHK Protect the NHK from the people
Protect the people from the party Protect the people from the party Protect the NHK from the people Protect the party from the party Protect the people from the party NHK to the country from NHK
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the people
From the party to protect the NHK from the NHK Protect the party from the party Protect the people from the party Protect the people from the party Protect the NHK from the NHK
From the party that protects the party to the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
From the party that protects the people from NHK The party that protects the people from the party that protects the party from the party that protects the people from NHK
From the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party from NHK to NHK
From the party that protects K From the party that protects the people from NHK From the party that protects the people from NHK From the party that protects NHK from the people From the party that protects NHK
From K to the people From NHK From NHK Protect the people From the party Protect the people Protect the party Protect the party Protect the party Protect the people from the party
From the party that protects the party that protects the party that protects the party from the party that protects the people from the people
From the party that protects the people from NHK From NHK From the party that protects NHK from the party From the party that protects the people From the party that protects the people from NHK
From the party that protects the party that protects the party From the party that protects the party that protects NHK From the party that protects NHK
Protect the people from NHK Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the party
From the party that protects the party From the party that protects the NHK From the people From the party that protects the party that protects the party From the party that protects the people From NHK From NHK From the people NH
From the party that protects K From the party that protects the people From the party that protects the people From the party that protects the people from NHK From the party that protects the people
From NHK Protect the people from NHK Protect the party from the party Protect the people from the party Protect the party from the party Protect the party from NHK Protect the NHK from the people
From the party that protects the people from the party that protects the people from NHK From the party that protects the NHK from the party that protects the people from the party that protects the people from NHK
From the party that protects the people From the party that protects the people From the party that protects the party from NHK From the party that protects NHK from the party
From NHK to NHK From the party that protects NHK from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the party that protects the party that protects the people From the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects NHK from the people, from the party that protects the people, from NHK, from NHK, from the party that protects NHK from the people, from the party that protects the people
From the party that protects the party that protects the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from the party that protects the people from NHK
Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party From NHK to NHK
Protecting NHK from the People Protecting the Party from the Party Protecting the People from the NHK Protecting the Party from the Party Protecting the People from the People
From the party From NHK From the people From NHK From NHK Protect the people From the party Protect the people Protect the party Protect the party Protect the people from the party
From the party that protects the party that protects the party that protects the party that protects the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the people From the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party that protects the people
From the party that protects the people, from the party that protects the people, from the party that protects the party from NHK, from the party that protects NHK from the party
From NHK to NHK From the people that protect the people from the party that protects the party from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the party that protects the party that protects the party from the party that protects NHK from the party that protects NHK from the party that protects the people from NHK
Protect the party from NHK Protect the people from the party Protect the people from the party Protect the people from the party that protects the people from NHK
Protect the NHK from the Party from the NHK Protect the Party from the Party Protect the People from the Party Protect the NHK from the NHK from the Party Protect the NHK from the People
Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the party From the NHK from the people
From the party that protects the NHK From the party that protects the people From the party that protects the people from NHK From the NHK From the party that protects NHK From the party that protects the party that protects the people
From the party that protects the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from the party that protects the people from NHK
From the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects NHK from the party that protects NHK from the party that protects NHK
From the party that protects the people from the people from NHK From the party that protects NHK from the people From NHK From the people From NHK to NHK
Protect the people from the party that protects the people Protect the party that protects the party Protects the party that protects the party that protects the people from the party that protects the people
Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the people from the party Protect the people from the party NHK to N
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party From NHK From NHK From the people From the party that protects NHK From the party that protects the party From the party that protects the party From NHK From the people
From the party that protects the NHK From the party that protects the people From the party that protects the people from NHK From the NHK From the party that protects NHK From the party that protects the party that protects the people
Protect the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects NHK from the people From the party that protects the people From the party that protects the people from the party that protects the people from NHK
From the defending party From NHK From NHK From the people From the people From the party that protects the party from the party that protects the people
From the party that protects the party that protects the people From the party that protects the people From NHK From NHK From the party that protects NHK From the party that protects the party that protects the people
From the party that protects the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from NHK
From the party that protects the people From NHK From NHK From the people Protect the NHK From the party Protect the people From the party Protect the party Protect the people from the NHK
Protect the people from the party Protect the party From the party Protect the NHK From the people Protect the NHK From the party Protect the people From the party Protect the people From NHK
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party that protects the people from NHK The party that protects the people from the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party
From the party that protects the party that protects the party that protects the party that protects the party from NHK to the people that protects NHK from the party that protects the party that protects the party from NHK
From the party that protects the party from NHK From the party that protects NHK from the party that protects from the party that protects from NHK From the party that protects from NHK
From the party to protect the party from the party to protect the party from the party to protect the party from the party to protect the party from the party to protect the party
From the party that protects the people From NHK From the party that protects NHK From the party that protects the party From the party that protects the people From NHK From the people
From the party that protects the NHK From the party that protects the people From the party that protects the party From the party that protects the people from NHK From the party that protects the people From the party that protects the party?
From the party that protects the NHK from the people from NHK from the party that protects the people from the party from NHK to the party that protects NHK from the people from NHK
From the party that protects the people from the party that protects the people from NHK From the party that protects the people From the party that protects the party from NHK From the people to NHK
From the party that protects the party from the party that protects the people From the party that protects the people from NHK From NHK From the party that protects NHK
Protect the people from the party Protect the people from the party Protect the people from the party Protect the party Protect the party from NHK Protect the NHK from the people
Protect the people from the party Protect the people from the party Protect the NHK from the people Protect the party from the party Protect the people from the party NHK to the country from NHK
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the people
Protect the party from NHK to the people from the party Protect the people from the party Protect the people from the party Protect the NHK from the people from NHK
From the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from NHK
From the party that protects the NHK to the party that protects the people From the party that protects the people from the party that protects the NHK from the party that protects the NHK
From the party that protects the party that protects the people from NHK The party that protects the people from the party that protects the party that protects the party from the party that protects the people from NHK
Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party From NHK Protect the NHK from the people
From the party that protects the party From the party that protects the people from NHK From the party that protects the party from NHK From the party that protects NHK from the people From the party that protects the country from NHK
From the people From NHK Protect the people from NHK Protect the people from the party Protect the party Protect the party Protect the party Protect the people from the party Protect the people
From the party that protects the party that protects the party from the party that protects the people from the people From the party that protects the party from NHK to the party that protects NHK from the people
From the party that protects the people from NHK From the party that protects NHK from the party that protects the people From the party that protects the people From NHK to the people from NHK
From the party that protects NHK From the party that protects the people From the party that protects the people from NHK The party that protects the people from the party that protects the people
From NHK to NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the party from NHK From the party that protects NHK from the people
From the party that protects the people From the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
Protect the people from the party Protect the people from the party Protect the party Protect the people from the NHK Protect the people from the party Protect the people from the party
From the party From NHK From NHK Protect the people from the people From the party Protect the people From the party Protect the people From the party Protect the people from NHK From the party to the country
From the party that protects the people From the party that protects the party From NHK From the party that protects NHK from the party From the party that protects the people
From the party that protects NHK from the people from HK From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects the people From the party that protects the people from NHK From the party that protects the people From the party that protects the party From the party that protects the party that protects NHK from the people
From the party that protects the party to the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
From the party that protects the people from NHK, from the party that protects the people from the party that protects the people, from the party that protects the people from NHK
From the party that protects the party that protects the people from the party that protects the people from the party that protects the people from NHK
Protecting the People from Protecting the Party Protecting the Party Protecting the Party Protecting the Party Protecting the Party Protecting the Party Protecting the Party Protecting the Party Protecting the Party
From the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party from NHK to the party that protects NHK from the people
From the party that protects the people from the people from NHK From the party that protects the NHK from the people from NHK From the party that protects the NHK from the people from NHK
Protect the people from the NHK Protect the people from the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party
Protect the party from the party Protect the people from the party Protect the party from NHK Protect the people from NHK Protect the party from the party Protect the people from the party
From the party that protects the party Protects NHK from the people From the party that protects the party that protects the people from the party that protects the people
From the party that protects the party to protect the people from the party that protects the party from the party that protects the people from NHK
From the party that protects NHK from the people, from the party that protects the people, from NHK, from NHK, from the party that protects NHK from the people, from the party that protects the people
From the party that protects the party that protects the people from NHK The party that protects the people from the party that protects the party that protects the party that protects NHK
From the party that protects the people From the party that protects the people From NHK From the party that protects NHK from the people From the party that protects the party from the party that protects the people
Protect the people from the party Protect the people from the party Protect the party Protect the people from the NHK Protect the people from the party Protect the people from the party
From the party From NHK From NHK Protect the people from the people From the party Protect the people From the party Protect the people From the party Protect the people from NHK From the party to the country
From the party that protects the people From the party that protects the party from NHK From the party that protects NHK From the party that protects the party from the party that protects the people From NHK From NHK
Protect the NHK from the people Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party Protect the people
From the party to protect the people from NHK Protect the people from the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party
From the party that protects the NHK from the people from NHK from the party that protects the people from NHK from the party that protects the people from NHK
From the party that protects NHK From the party that protects the party from NHK From the people from NHK From the party that protects the people from NHK
From the party that protects the people From the party that protects the party from the party that protects the party from the party that protects the party
Protect the NHK from the people Protect the people from the party Protect the people from the NHK Protect the NHK from the people
Protect the people from the party that protects the party Protects the people from the party that protects the people from the party that protects the party that protects the people
From the party that protects the party to protect the people From the party that protects the party from NHK From the party that protects NHK From the party that protects the party from the party that protects the people
From the party that protects the NHK from the people from the party that protects the people from the party that protects the people from the party that protects the people from the party that protects the people from the NHK
From the party that protects the party from NHK From the party that protects NHK From the party that protects from the party that protects the people From NHK From NHK From the people
From the party that protects the party from the party that protects the people From the party that protects the party from the party that protects the people from the party that protects the people from the party that protects the people
From the party that protects the people from HK From the party that protects the party From the party that protects the party that protects the party that protects the party
From the party that protects NHK From the party that protects the people from NHK From the party that protects the people from NHK From the party that protects NHK from the people
From NHK to the people From NHK to the people from NHK From the party that protects the people From the party that protects the party that protects the party that protects the party that protects the people from the party
The party that protects the party that protects the party that protects the party that protects the people from the party that protects the people from the party that protects the people
From the party that protects the people from NHK From NHK From the party that protects NHK from the party that protects the people from the party that protects the people from NHK
From the party that protects the people from the party that protects the party from the party that protects the party from NHK From the party that protects NHK from the party that protects the people
Protect the people from K to NHK Protect the people from the party Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party From the party that protects the NHK From the people From the party that protects the party that protects the party From the party that protects the people From NHK From NHK From the people NH
From the party that protects K From the party that protects the people From the party that protects the people From the party that protects the people from NHK From the party that protects the people
From the party that protects NHK from the people from NHK From the party that protects the people from the party that protects the people from NHK From the party that protects NHK from the people
From the party that protects the people From the party that protects the people from NHK From the party that protects the people From the party that protects the party From NHK From the people NHK
From the party that protects the party that protects the people From the party that protects the people From NHK From NHK From the party that protects NHK From the party that protects the party that protects the people
From the party that protects the people from NHK From the party that protects the people from the party that protects the party from the party that protects the people from NHK
From the party that protects the people From NHK From NHK From the people Protect the NHK From the party Protect the people From the party Protect the party Protect the people from the NHK
Protect the people from the party Protect the party From the party Protect the NHK From the people Protect the NHK From the party Protect the people From the party Protect the people From NHK to N
Protect the NHK from the HK Protect the people from the party Protect the people from the party Protect the people from the NHK Protect the people from the party
From the party that protects the party Protects NHK from the people From the party that protects the party that protects the people from the party that protects the people
From the party that protects the party to the party that protects the people from the party that protects the party from the party that protects the people from the party that protects the people from the party that protects the people
From the party that protects the people to the party that protects the people Protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party
From the party to the people From the NHK Protect the people From the party Protect the people Protect the party Protect the party Protect the party Protect the party Protect the party Protect the party
The party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party that protects the party

I will try it.

python


./nhk.py sample2.nhk

output


Down with NHK!

Looks good.

Summary

How was it?

It is wonderful.

Postscript

Pioneer is here.

After all, there seems to be a great demand for programming with a grammar that protects the people from NHK.

Recommended Posts

A programming language that protects the people from NHK
Is there a contradiction between the party that protects the people from NHK and the party that protects NHK from the people?
A programming language that young people will need in the future
A formula that simply calculates the age from the date of birth
From a book that programmers can learn (Python): Find the mode
Start SQLite in a programming language
Best 3 from the impressions of reading a new shell programming textbook
Extract lines that match the conditions from a text file with python
A program that will slowly recover the economy from any news headline
I made a simple timer that can be started from the terminal
What is a C language library? What is the information that is open to the public?
From a book that makes the programmer's way of thinking interesting (Python)
The most sought after programming language in 2020
A class that hits the DMM API
Draw graphs in the programming language Julia
Try using a stochastic programming language (Pyro)
A code that corrects the yoon / sokuon (sokuon)
Operate the programming follow from Pythonista (iPhone)
[Python] A program that rounds the score
Create a BOT that displays the number of infected people in the new corona
[Django] Create a form that automatically fills in the address from the zip code
The story of making a Line Bot that tells us the schedule of competitive programming
A model that identifies the guitar with fast.ai
DJango Memo: From the beginning (creating a view)
Origin of that name related to programming # 1 Language name 1
A program that searches for the same image
Tools that fit in your hand (programming language)
I tried using Pythonect, a dataflow programming language.
"Python Kit" that calls a Python script from Swift
A shell program that displays the Fibonacci sequence
A story that failed when trying to remove the suffix from the string with rstrip
A python script that gets the number of jobs for a specified condition from indeed.com
[Django] Hit a command you made from within the process that runs on manage.py.
[Go] Create a tool that returns the Pokemon race value received from the standard input
The end of programming beginners (my pattern) who wrote the code motivated by the results that bring programming, not from a technical perspective