|
| 1 | +[ |
| 2 | + {"type":"CommentSingle","value":"// reverse polish\n"}, |
| 3 | + {"type":"TextWhitespace","value":"\n"}, |
| 4 | + {"type":"KeywordDeclaration","value":"mtype"}, |
| 5 | + {"type":"TextWhitespace","value":" "}, |
| 6 | + {"type":"Operator","value":"="}, |
| 7 | + {"type":"TextWhitespace","value":" "}, |
| 8 | + {"type":"Punctuation","value":"{"}, |
| 9 | + {"type":"TextWhitespace","value":" "}, |
| 10 | + {"type":"Name","value":"operator"}, |
| 11 | + {"type":"Punctuation","value":","}, |
| 12 | + {"type":"TextWhitespace","value":" "}, |
| 13 | + {"type":"Name","value":"value"}, |
| 14 | + {"type":"TextWhitespace","value":" "}, |
| 15 | + {"type":"Punctuation","value":"}"}, |
| 16 | + {"type":"TextWhitespace","value":"\n\n"}, |
| 17 | + {"type":"KeywordDeclaration","value":"chan"}, |
| 18 | + {"type":"TextWhitespace","value":" "}, |
| 19 | + {"type":"Name","value":"f"}, |
| 20 | + {"type":"TextWhitespace","value":" "}, |
| 21 | + {"type":"Operator","value":"="}, |
| 22 | + {"type":"TextWhitespace","value":" "}, |
| 23 | + {"type":"Punctuation","value":"["}, |
| 24 | + {"type":"LiteralNumberInteger","value":"12"}, |
| 25 | + {"type":"Punctuation","value":"]"}, |
| 26 | + {"type":"TextWhitespace","value":" "}, |
| 27 | + {"type":"Name","value":"of"}, |
| 28 | + {"type":"TextWhitespace","value":" "}, |
| 29 | + {"type":"Punctuation","value":"{"}, |
| 30 | + {"type":"TextWhitespace","value":" "}, |
| 31 | + {"type":"KeywordDeclaration","value":"mtype"}, |
| 32 | + {"type":"Punctuation","value":","}, |
| 33 | + {"type":"TextWhitespace","value":" "}, |
| 34 | + {"type":"KeywordType","value":"int"}, |
| 35 | + {"type":"TextWhitespace","value":" "}, |
| 36 | + {"type":"Punctuation","value":"}"}, |
| 37 | + {"type":"TextWhitespace","value":"\n\n"}, |
| 38 | + {"type":"KeywordDeclaration","value":"proctype"}, |
| 39 | + {"type":"TextWhitespace","value":" "}, |
| 40 | + {"type":"Name","value":"calc"}, |
| 41 | + {"type":"Punctuation","value":"("}, |
| 42 | + {"type":"KeywordDeclaration","value":"chan"}, |
| 43 | + {"type":"TextWhitespace","value":" "}, |
| 44 | + {"type":"Name","value":"you"}, |
| 45 | + {"type":"Punctuation","value":")"}, |
| 46 | + {"type":"TextWhitespace","value":"\n"}, |
| 47 | + {"type":"Punctuation","value":"{"}, |
| 48 | + {"type":"TextWhitespace","value":"\t"}, |
| 49 | + {"type":"KeywordType","value":"int"}, |
| 50 | + {"type":"TextWhitespace","value":" "}, |
| 51 | + {"type":"Name","value":"s"}, |
| 52 | + {"type":"Punctuation","value":","}, |
| 53 | + {"type":"TextWhitespace","value":" "}, |
| 54 | + {"type":"Name","value":"lft"}, |
| 55 | + {"type":"Punctuation","value":","}, |
| 56 | + {"type":"TextWhitespace","value":" "}, |
| 57 | + {"type":"Name","value":"rgt"}, |
| 58 | + {"type":"TextWhitespace","value":"\n\t"}, |
| 59 | + {"type":"KeywordDeclaration","value":"chan"}, |
| 60 | + {"type":"TextWhitespace","value":" "}, |
| 61 | + {"type":"Name","value":"me"}, |
| 62 | + {"type":"TextWhitespace","value":" "}, |
| 63 | + {"type":"Operator","value":"="}, |
| 64 | + {"type":"TextWhitespace","value":" "}, |
| 65 | + {"type":"Punctuation","value":"["}, |
| 66 | + {"type":"LiteralNumberInteger","value":"0"}, |
| 67 | + {"type":"Punctuation","value":"]"}, |
| 68 | + {"type":"TextWhitespace","value":" "}, |
| 69 | + {"type":"Name","value":"of"}, |
| 70 | + {"type":"TextWhitespace","value":" "}, |
| 71 | + {"type":"Punctuation","value":"{"}, |
| 72 | + {"type":"TextWhitespace","value":" "}, |
| 73 | + {"type":"KeywordType","value":"int"}, |
| 74 | + {"type":"TextWhitespace","value":" "}, |
| 75 | + {"type":"Punctuation","value":"}"}, |
| 76 | + {"type":"TextWhitespace","value":"\n\n\t"}, |
| 77 | + {"type":"Keyword","value":"if"}, |
| 78 | + {"type":"TextWhitespace","value":"\n\t"}, |
| 79 | + {"type":"Operator","value":"::"}, |
| 80 | + {"type":"TextWhitespace","value":" "}, |
| 81 | + {"type":"Name","value":"f"}, |
| 82 | + {"type":"Operator","value":"?"}, |
| 83 | + {"type":"Name","value":"operator"}, |
| 84 | + {"type":"Punctuation","value":"("}, |
| 85 | + {"type":"Name","value":"s"}, |
| 86 | + {"type":"Punctuation","value":")"}, |
| 87 | + {"type":"TextWhitespace","value":"\n\t\t"}, |
| 88 | + {"type":"OperatorWord","value":"run"}, |
| 89 | + {"type":"TextWhitespace","value":" "}, |
| 90 | + {"type":"Name","value":"calc"}, |
| 91 | + {"type":"Punctuation","value":"("}, |
| 92 | + {"type":"Name","value":"me"}, |
| 93 | + {"type":"Punctuation","value":");"}, |
| 94 | + {"type":"TextWhitespace","value":" "}, |
| 95 | + {"type":"Name","value":"me"}, |
| 96 | + {"type":"Operator","value":"?"}, |
| 97 | + {"type":"Name","value":"lft"}, |
| 98 | + {"type":"TextWhitespace","value":"\n\t\t"}, |
| 99 | + {"type":"OperatorWord","value":"run"}, |
| 100 | + {"type":"TextWhitespace","value":" "}, |
| 101 | + {"type":"Name","value":"calc"}, |
| 102 | + {"type":"Punctuation","value":"("}, |
| 103 | + {"type":"Name","value":"me"}, |
| 104 | + {"type":"Punctuation","value":");"}, |
| 105 | + {"type":"TextWhitespace","value":" "}, |
| 106 | + {"type":"Name","value":"me"}, |
| 107 | + {"type":"Operator","value":"?"}, |
| 108 | + {"type":"Name","value":"rgt"}, |
| 109 | + {"type":"TextWhitespace","value":"\n\t\t"}, |
| 110 | + {"type":"Keyword","value":"if"}, |
| 111 | + {"type":"TextWhitespace","value":"\n\t\t"}, |
| 112 | + {"type":"Operator","value":"::"}, |
| 113 | + {"type":"TextWhitespace","value":" "}, |
| 114 | + {"type":"Name","value":"s"}, |
| 115 | + {"type":"TextWhitespace","value":" "}, |
| 116 | + {"type":"Operator","value":"=="}, |
| 117 | + {"type":"TextWhitespace","value":" "}, |
| 118 | + {"type":"LiteralStringChar","value":"'+'"}, |
| 119 | + {"type":"TextWhitespace","value":" "}, |
| 120 | + {"type":"Operator","value":"-\u003e"}, |
| 121 | + {"type":"TextWhitespace","value":" "}, |
| 122 | + {"type":"Name","value":"you"}, |
| 123 | + {"type":"Operator","value":"!"}, |
| 124 | + {"type":"Punctuation","value":"("}, |
| 125 | + {"type":"Name","value":"lft"}, |
| 126 | + {"type":"Operator","value":"+"}, |
| 127 | + {"type":"Name","value":"rgt"}, |
| 128 | + {"type":"Punctuation","value":")"}, |
| 129 | + {"type":"TextWhitespace","value":"\n\t\t"}, |
| 130 | + {"type":"Keyword","value":"fi"}, |
| 131 | + {"type":"TextWhitespace","value":"\n\t"}, |
| 132 | + {"type":"Operator","value":"::"}, |
| 133 | + {"type":"TextWhitespace","value":" "}, |
| 134 | + {"type":"Name","value":"f"}, |
| 135 | + {"type":"Operator","value":"?"}, |
| 136 | + {"type":"Name","value":"value"}, |
| 137 | + {"type":"Punctuation","value":"("}, |
| 138 | + {"type":"Name","value":"s"}, |
| 139 | + {"type":"Punctuation","value":")"}, |
| 140 | + {"type":"TextWhitespace","value":" "}, |
| 141 | + {"type":"Operator","value":"-\u003e"}, |
| 142 | + {"type":"TextWhitespace","value":" "}, |
| 143 | + {"type":"Name","value":"you"}, |
| 144 | + {"type":"Operator","value":"!"}, |
| 145 | + {"type":"Name","value":"s"}, |
| 146 | + {"type":"TextWhitespace","value":"\n\t"}, |
| 147 | + {"type":"Keyword","value":"fi"}, |
| 148 | + {"type":"TextWhitespace","value":"\n"}, |
| 149 | + {"type":"Punctuation","value":"}"}, |
| 150 | + {"type":"TextWhitespace","value":"\n"} |
| 151 | +] |
0 commit comments