From 77d1d07fbc1b8e27125d5d727e1551e9aeaac6c2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 17 Mar 2023 01:56:28 +0900 Subject: fix(content): fix XML notations --- .../posts/2022-04-09/phperkaigi-2022-tokens.xml | 47 ++++++---------------- 1 file changed, 12 insertions(+), 35 deletions(-) (limited to 'content/posts/2022-04-09/phperkaigi-2022-tokens.xml') diff --git a/content/posts/2022-04-09/phperkaigi-2022-tokens.xml b/content/posts/2022-04-09/phperkaigi-2022-tokens.xml index b0c749b..0f5d7be 100644 --- a/content/posts/2022-04-09/phperkaigi-2022-tokens.xml +++ b/content/posts/2022-04-09/phperkaigi-2022-tokens.xml @@ -141,27 +141,13 @@ 実行結果はこちら: https://ideone.com/22VWmb それぞれの絵文字で表された関数が、各命令に対応している。 - - $👉: > - - - $👈: < - - - $👍: + - - - $👎: - - - - $📝: . - - - $🤡: [ - - - $🎪: ] - + $👉: > + $👈: < + $👍: + + $👎: - + $📝: . + $🤡: [ + $🎪: ] , (入力) に対応する関数はない (このプログラムでは使わないので用意していない)。 @@ -286,20 +272,11 @@ assert(10 === +(![].+!![])); ヒント 次に、ソースコードに書いてあるヒントを読んでいく。 - - N それ自体は、42 や 8128 - といったような特別な意味を持たず、ランダムに決められている - - - $token の各要素は、1文字を表す - - - 1文字は 5x5 のセルからなる - - - 出力されるのは、完全な PHPer トークンである - - + N それ自体は、42 や 8128 といったような特別な意味を持たず、ランダムに決められている + $token の各要素は、1文字を表す + 1文字は 5x5 のセルからなる + 出力されるのは、完全な PHPer トークンである + ここで、PHPer トークンは必ず # 記号から始まることを思いだすと、 $token の最初の数字 0x14B499C は、変換の結果 # になるのではないかと予想される (なお、このことは、リポジトリの README -- cgit v1.2.3-70-g09d2