$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
$ bundle list | grep kitchen
* kitchen-ansible (0.45.9)
* kitchen-vagrant (1.0.1)
* test-kitchen (1.15.0)
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
| {!(number|boolean)} | |
| {!Object} | |
| {!number|!string} | |
| {!{myNum: number}} | |
| {"foo.bar.baz"} | |
| {'foo.bar.baz'} | |
| {(Array.<string>|Object.<string, ?>)} | |
| {(Array|Object.<string, ?>)} | |
| {(Element|Object|Document|Object.<string, (string|function(!jQuery.event=))>)=} | |
| {(Error|function(): Error)} |
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
| count(List, X, Count) :- count_sub(List, X, 0, Count). | |
| count_sub([], _, N, N). | |
| count_sub([Head | Xs], X, N, Count) :- | |
| (Head == X -> N1 is N + 1; N1 is N), | |
| count_sub(Xs, X, N1, Count). | |
| % トランプの数は1〜13まで。 | |
| card(X) :- between(1, 13, X). | |
| % さやかのヒントにあてはまる。 |
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
| // Compile-Time 4-bit Adder for TypeScript | |
| // Author: https://github.com/Kuniwak | |
| // INTPUT //////////////////////////////// | |
| // O: Low | |
| // I: High | |
| let inputA1: I; | |
| let inputA2: I; | |
| let inputA3: O; |
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
| map <C-u> scrollPageUp | |
| map <C-d> scrollPageDown | |
| map <C-h> deleteChar | |
| cunmap <C-h> | |
| let scrollstep = 200 |
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
| pip install vim-vint |
- identifier が定義・参照・静的解析不能を判別
- IdentifierClassifier
- IdentifierCollector
- Scope chain を作成
- ScopeStore
- declaring identifier を scope に登録、scope を referencing identifier に登録
- ScopeLinker
- referencing identifier から declaring identifier に到達可能かどうかを調べる
- ParentAttacher
- ReferenceReachabilityTester
| stmt | left | list | op | rest | right | type |
|---|---|---|---|---|---|---|
let num = 0 |
identifier |
= |
number |
let |
||
let dict[key] = 0 |
dot |
= |
number |
let |
||
let list[0] = 99 |
subscript |
= |
number |
let |
||
let list[1:2] = [99, 99] |
slice |
= |
list |
let |
||
let str .= 'str_to_add' |
identifier |
.= |
number |
let |
||
let $ENV = 'str_content' |
env |
= |
string |
let |
||
let @@ = 'str_content' |
reg |
= |
string |
let |
||
let [elem0, elem1] = [0, 1] |
[identifier, identifier] |
= |
list |
let |
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
| $ git commit |