This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use nom::{ | |
IResult, | |
character::complete::i32, | |
bytes::complete::tag, | |
branch::alt, | |
}; | |
#[derive(Debug, PartialEq)] | |
enum Expr { | |
Term(Term), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$__="#"=~/$/;$_=$__-$__;$___=$__+$__;@_=$**'';@__=[$_]*($___**($___+$___+$__)) | |
@___=$_;@____=->(_){@_[_]&&(@_[_]=='>'&&@___+=$__;@_[_]=='<'&&@___-=$__;@_[_]== | |
'+'&&@__[@___]+=$__;@_[_]=='-'&&@__[@___]-=$__;@_[_]=='.'&&$><<(""<<@__[@___]) | |
@_[_]=='['&&@__[@___]==$_&&_=$____[_+$__,$__];@_[_]==']'&&@__[@___]!=$_&&_= | |
$_____[_-$__,$__];@____[_+$__])};$____=->(_,__){@_[_]==']'&&__-=$__;@_[_]== | |
'['&&__+=$__;__==$_?_:$____[_+$__,__]};$_____=->(_,__){@_[_]=='['&&__-=$__;@_[_ | |
]==']'&&__+=$__;__==$_?_:$_____[_-$__,__]};@____[$_] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from abc import ABCMeta, abstractmethod | |
from typing import TypeVar, Generic, Dict, List | |
class Target: | |
""" | |
ターゲットオブジェクト | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FunctionalInterface | |
interface ThrowableFunction<T, R>{ | |
R apply(T t) throws Throwable; | |
} | |
@FunctionalInterface | |
interface VoidFunction { | |
void apply(Throwable e); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################### | |
### グローバルな変数 | |
###################################################################### | |
[bool]$DEBUG = $TRUE | |
[array]$MEMORY = @(0, 0, 0, 0, 0, 0) | |
[int]$MEMORY_FIRST = "A"[0] | |
###################################################################### | |
### コマンド関連 | |
###################################################################### |