{"id":3942,"date":"2014-01-29T09:00:04","date_gmt":"2014-01-29T00:00:04","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=3942"},"modified":"2018-11-14T16:33:52","modified_gmt":"2018-11-14T07:33:52","slug":"forth%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%ae%e3%81%98%e3%82%83%ef%bc%88%ef%bc%92%ef%bc%89%e3%83%af%e3%83%bc%e3%83%89%e5%ae%9a%e7%be%a9%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2014\/01\/29\/forth%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%ae%e3%81%98%e3%82%83%ef%bc%88%ef%bc%92%ef%bc%89%e3%83%af%e3%83%bc%e3%83%89%e5%ae%9a%e7%be%a9%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99\/","title":{"rendered":"Forth\u3092\u4f5c\u308b\u306e\u3058\u3083\uff08\uff12\uff09\u30ef\u30fc\u30c9\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>\u524d\u56de<a title=\"Forth\u3092\u4f5c\u308b\u306e\u3058\u3083\" href=\"http:\/\/www.techscore.com\/blog\/2014\/01\/28\/forth%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%ae%e3%81%98%e3%82%83\/\">\u4f5c\u6210<\/a>\u3057\u305f Forth \u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u3092\u6539\u826f\u3057\u3066\u3001\u30ef\u30fc\u30c9\u306e\u5b9a\u7fa9\u306a\u3069\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5143\u306b\u306a\u308b\u30b3\u30fc\u30c9<\/h2>\n<p>\u5143\u306b\u306a\u308b\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3067\u3059\u3002\u524d\u56de\u4f5c\u6210\u3057\u305f\u3082\u306e\u306b\u5b9a\u7fa9\u6e08\u307f\u30ef\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u305f\u3082\u306e\u3067\u3059\u3002\uff08@words \u306b\u3044\u304f\u3064\u304b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\uff09<\/p>\n<pre class=\"lang:ruby decode:true\">class MyForth\r\n\r\n  def initialize\r\n    @stack = []\r\n    @words = {\r\n      '.s'   =&gt; lambda { p @stack },\r\n      '+'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs + rhs) },\r\n      '-'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs - rhs) },\r\n      '*'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs * rhs) },\r\n      '\/'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs \/ rhs) },\r\n      'dup'  =&gt; lambda { @stack.push(@stack.last) },\r\n      'drop' =&gt; lambda { @stack.pop },\r\n      'swap' =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(rhs, lhs) },\r\n      'over' =&gt; lambda { @stack.push(@stack[-2]) },\r\n      'rot'  =&gt; lambda { @stack.push(@stack.delete_at(-3)) },\r\n      'nip'  =&gt; lambda { %w(swap drop).each{|word| eval_word(word)} },\r\n      'tuck' =&gt; lambda { %w(swap over).each{|word| eval_word(word)} },\r\n    }\r\n  end\r\n\r\n  def eval_word(word)\r\n    if word =~ \/^^?\\d+$\/\r\n      @stack.push(word.to_i)\r\n    elsif @words[word]\r\n      @words[word].call\r\n    else\r\n      puts \"ERROR: Unsupported word: #{word}\"\r\n    end\r\n  end\r\n\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30ef\u30fc\u30c9\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044<\/h2>\n<p>\u30ef\u30fc\u30c9\u306e\u5b9a\u7fa9\u306f\u6b21\u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u3092\u3059\u308b\u306e\u3067\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">: \u30ef\u30fc\u30c9\u540d ... ;<\/pre>\n<p>\u4f8b\u3048\u3070\u5024\u3092 3 \u4e57\u3059\u308b cube \u3068\u3044\u3046\u30ef\u30fc\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">: cube dup dup * * ;<\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<ol>\n<li>\u300c:\u300d\u304c\u5165\u529b\u3055\u308c\u305f\u5834\u5408\u3001\u305d\u308c\u4ee5\u964d\u306e\u300c;\u300d\u4ee5\u5916\u306e\u5165\u529b\u306f\u8a55\u4fa1\u305b\u305a\u306b\u30b9\u30bf\u30c3\u30af\u306b\u7a4d\u3080\u3002<\/li>\n<li>\u300c;\u300d\u304c\u5165\u529b\u3055\u308c\u305f\u5834\u5408\u3001\u300c:\u300d\u304b\u3089\u300c;\u300d\u307e\u3067\u3092\u5b9f\u884c\u3059\u308b Proc \u3092\u4f5c\u6210\u3057\u3001@words \u306b\u767b\u9332\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u73fe\u72b6\u306e eval_word(word) \u30e1\u30bd\u30c3\u30c9\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3068\u30ef\u30fc\u30c9\u304c\u3059\u3050\u306b\u8a55\u4fa1\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u30011. \u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081 eval_word(word) \u306e\u51e6\u7406\u5185\u5bb9\u3092\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u300d\u3068\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u300d\u3067\u51e6\u7406\u3092\u5206\u3051\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u4f34\u3044\u3001\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u3068\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30ef\u30fc\u30c9\u3082\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08\u4f8b\u3048\u3070\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u3067\u306f\u300c;\u300d\u306f\u4f7f\u3048\u306a\u3044\u304c\u3001\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u3067\u306f\u300c;\u300d\u3092\u4f7f\u3048\u308b\u306a\u3069\uff09\u3002<\/p>\n<p>\u4fee\u6b63\u65b9\u91dd\u3092\u6574\u7406\u3059\u308b\u3068\u3001<\/p>\n<ul>\n<li>eval_word(word) \u306e\u51e6\u7406\u5185\u5bb9\u3092\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u300d\u306e\u5834\u5408\u3068\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u300d\u306e\u5834\u5408\u3067\u5207\u308a\u66ff\u3048\u308b\u3002<\/li>\n<li>\u4f7f\u3048\u308b\u30ef\u30fc\u30c9\u3082\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u300d\u306e\u5834\u5408\u3068\u300c\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u300d\u306e\u5834\u5408\u3067\u5207\u308a\u66ff\u3048\u308b\uff08@words \u3092\u5206\u5272\u3059\u308b\uff09\u3002<\/li>\n<li>\u300c;\u300d\u304c\u5165\u529b\u3055\u308c\u305f\u3089\u300c:\u300d\u304b\u3089\u300c;\u300d\u307e\u3067\u306e\u5185\u5bb9\u3092\u5b9f\u884c\u3059\u308b Proc \u3092\u4f5c\u6210\u3057\u3001\u5b9a\u7fa9\u6e08\u307f\u30ef\u30fc\u30c9\u3068\u3057\u3066\u767b\u9332\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4fee\u6b63\u7248\u306e\u30b3\u30fc\u30c9<\/h2>\n<p>\u4e0a\u8a18\u306e\u65b9\u91dd\u3067\u4fee\u6b63\u3057\u305f\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">class MyForth\r\n\r\n  def initialize\r\n    @stack = []\r\n\r\n    # (1) \u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30ef\u30fc\u30c9.\r\n    @words_in_default = {\r\n      '.s'   =&gt; lambda { p @stack },\r\n      '+'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs + rhs) },\r\n      '-'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs - rhs) },\r\n      '*'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs * rhs) },\r\n      '\/'    =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(lhs \/ rhs) },\r\n      '.'    =&gt; lambda { @stack.pop },\r\n      'dup'  =&gt; lambda { @stack.push(@stack.last) },\r\n      'drop' =&gt; lambda { @stack.pop },\r\n      'swap' =&gt; lambda { lhs, rhs = @stack.pop(2); @stack.push(rhs, lhs) },\r\n      'over' =&gt; lambda { @stack.push(@stack[-2]) },\r\n      'rot'  =&gt; lambda { @stack.push(@stack.delete_at(-3)) },\r\n      'nip'  =&gt; lambda { %w(swap drop).each{|word| eval_word(word)} },\r\n      'tuck' =&gt; lambda { %w(swap over).each{|word| eval_word(word)} },\r\n\r\n      # (1) \u8ffd\u52a0.\r\n      ':'    =&gt; method(:begin_word_definition),\r\n    }\r\n\r\n    # (1) \u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30ef\u30fc\u30c9.\r\n    @words_in_definition = {\r\n      # (1) \u8ffd\u52a0.\r\n      ';'    =&gt; method(:end_word_definition),\r\n    }\r\n\r\n    # (2) eval_word(word) \u30e1\u30bd\u30c3\u30c9\u304c\u5185\u90e8\u3067\u547c\u3073\u51fa\u3059\u30e1\u30bd\u30c3\u30c9.\r\n    @eval_word = method(:eval_word_in_default)\r\n  end\r\n\r\n  # (2) \u30ef\u30fc\u30c9\u3092\u8a55\u4fa1\u3059\u308b.\r\n  def eval_word(word)\r\n    @eval_word.call(word)\r\n  end\r\n\r\n  private\r\n\r\n  # (2) \u30ef\u30fc\u30c9\u3092\u8a55\u4fa1\u3059\u308b (\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u306b\u3044\u308b\u5834\u5408).\r\n  def eval_word_in_default(word)\r\n    if word =~ \/^-?\\d+$\/\r\n      @stack.push(word.to_i)\r\n    elsif @words_in_default[word]\r\n      @words_in_default[word].call\r\n    else\r\n      puts \"ERROR: Unsupported word: #{word}\"\r\n    end\r\n  end\r\n\r\n  # (2) \u30ef\u30fc\u30c9\u3092\u8a55\u4fa1\u3059\u308b (\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u306b\u3044\u308b\u5834\u5408).\r\n  def eval_word_in_definition(word)\r\n    if @words_in_definition[word]\r\n      @words_in_definition[word].call\r\n    else\r\n      @stack.push(word)\r\n    end\r\n  end\r\n\r\n  # (3) \u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u306b\u5165\u3063\u305f\u3068\u304d\u306e\u51e6\u7406.\r\n  def begin_word_definition\r\n    @stack.push(':')\r\n    @eval_word = method(:eval_word_in_definition)\r\n  end\r\n\r\n  # (4) \u30ef\u30fc\u30c9\u5b9a\u7fa9\u304c\u7d42\u308f\u3063\u305f\u3068\u304d\u306e\u51e6\u7406.\r\n  def end_word_definition\r\n    # \u30b9\u30bf\u30c3\u30af\u4e0a\u306e\u30ef\u30fc\u30c9\u5b9a\u7fa9\u3092\u5206\u89e3\u3059\u308b.\r\n    # Ex. [..., ':', 'square', 'dup', '*'] \u3092 name='square', definitions=['dup', '*'] \u306b\u5206\u89e3\u3059\u308b.\r\n    name, *definitions = @stack.slice!(@stack.rindex(':') .. -1).drop(1)\r\n\r\n    @words_in_default[name] = lambda { definitions.each{|word| eval_word_in_default(word)} }\r\n\r\n    @eval_word = method(:eval_word_in_default)\r\n  end\r\n\r\nend<\/pre>\n<p>\u8272\u3005\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30dd\u30a4\u30f3\u30c8\u3092\u30b3\u30e1\u30f3\u30c8\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f (1) \u3067\u5143\u306e\u30b3\u30fc\u30c9\u306b\u304a\u3051\u308b @words \u3092 @words_in_default\uff08\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5916\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30ef\u30fc\u30c9\uff09\u3068 @word_in_definition\uff08\u30ef\u30fc\u30c9\u5b9a\u7fa9\u5185\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u30ef\u30fc\u30c9\uff09\u306b\u5206\u5272\u3057\u3001\u305d\u308c\u305e\u308c\u300c:\u300d\u3068\u300c;\u300d\u306e\u51e6\u7406\u3092\u884c\u3046 Proc \u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b (2) \u306e\u90e8\u5206\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002eval_word(word) \u30e1\u30bd\u30c3\u30c9\u3092 eval_word_in_default(word) \u3068 eval_word_in_definition(word) \u306b\u5206\u5272\u3057\u3001\u547c\u3073\u51fa\u3059\u3079\u304d\u30e1\u30bd\u30c3\u30c9\u3092 @eval_word \u306b\u4fdd\u6301\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>(3) \u306e begin_word_definition \u30e1\u30bd\u30c3\u30c9\u306f\u300c:\u300d\u304c\u5165\u529b\u3055\u308c\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u5185\u90e8\u3067\u306f\u30b9\u30bf\u30c3\u30af\u306b\u300c:\u300d\u3092 push \u3057\u3066\u304b\u3089\u3001\u4ee5\u964d\u306e eval_word(word) \u547c\u3073\u51fa\u3057\u3067 eval_word_in_definition(word) \u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b @eval_word \u306e\u5024\u3092\u66f4\u65b0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>(4) \u306e end_word_definition \u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30ef\u30fc\u30c9\u5b9a\u7fa9\u306e\u672c\u4f53\u3067\u3059\u3002\u300c:\u300d\u306e\u5f8c\u306b\u5165\u529b\u3055\u308c\u305f\u5024\u304c @stack \u306b\u7a4d\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5206\u89e3\u3057\u3066 Proc \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u3001\u767b\u9332\u6e08\u307f\u306e\u30ef\u30fc\u30c9\u306b\u8ffd\u52a0\uff08@word_in_default \u306b\u8ffd\u52a0\uff09\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306b @eval_word \u306e\u5024\u3092\u5143\u306b\u623b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u52d5\u304b\u3057\u3066\u307f\u308b<\/h2>\n<p>\u305d\u308c\u3067\u306f\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u524d\u56de\u540c\u69d8\u3001\u6b21\u306e\u3088\u3046\u306a\u8db3\u5834\u3092\u4f5c\u3063\u3066\u5b9f\u884c\u3059\u308c\u3070 REPL \u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">forth = MyForth.new\r\n\r\nwhile line = gets\r\n  line.split(\/\\s\/).each do |word|\r\n    forth.eval_word(word)\r\n  end\r\nend<\/pre>\n<p>\u3084\u308d\u3046\u3068\u3057\u3066\u3044\u305f\u3001\u5024\u3092 3 \u4e57\u3059\u308b\u30ef\u30fc\u30c9 cube \u3092\u5b9a\u7fa9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">: cube dup dup * * ;<\/pre>\n<p>3 \u306e 3 \u4e57\u3092\u6c42\u3081\u3066\u307f\u308b\u3068\u30fb\u30fb\u3001<\/p>\n<pre class=\"lang:default decode:true\">3 cube .s<\/pre>\n<p>\u7121\u4e8b\u306b 27 \u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">[27]<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4f55\u3068\u304b\u72ec\u81ea\u306e\u30ef\u30fc\u30c9\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6b21\u306f\u6761\u4ef6\u5206\u5c90\u3082\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>\u524d\u56de\u4f5c\u6210\u3057\u305f Forth \u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u3092\u6539\u826f\u3057\u3066\u3001\u30ef\u30fc\u30c9\u306e\u5b9a\u7fa9\u306a\u3069\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<br \/>\n\u5143\u306b\u306a\u308b\u30b3\u30fc\u30c9<br \/>\n\u5143\u306b\u306a\u308b\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2014\/01\/29\/forth%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%ae%e3%81%98%e3%82%83%ef%bc%88%ef%bc%92%ef%bc%89%e3%83%af%e3%83%bc%e3%83%89%e5%ae%9a%e7%be%a9%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[133,18,84],"tags":[130],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/3942"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=3942"}],"version-history":[{"count":5,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/3942\/revisions"}],"predecessor-version":[{"id":4015,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/3942\/revisions\/4015"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=3942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=3942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=3942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}