| 1 |
---input--- |
| 2 |
PS> python -m doctest ` |
| 3 |
> -o DONT_ACCEPT_TRUE_FOR_1 ` |
| 4 |
> -o ELLIPSIS options.txt |
| 5 |
|
| 6 |
PS> $Params = @{ |
| 7 |
> Height = 50 |
| 8 |
> Width = 50 |
| 9 |
> Depth = 50 |
| 10 |
> Name = 'My Widget' |
| 11 |
> ID = '10dbe43f-0269-48b8-96cb-447a755add55' |
| 12 |
> } |
| 13 |
|
| 14 |
|
| 15 |
PS> ls | |
| 16 |
> grep "python" |
| 17 |
|
| 18 |
---tokens--- |
| 19 |
'PS> ' Generic.Prompt |
| 20 |
'python' Name |
| 21 |
' ' Text |
| 22 |
'-m' Name |
| 23 |
' ' Text |
| 24 |
'doctest' Name |
| 25 |
' ' Text |
| 26 |
'`' Punctuation |
| 27 |
'\n' Text |
| 28 |
|
| 29 |
'> ' Generic.Prompt |
| 30 |
'-o' Name |
| 31 |
' ' Text |
| 32 |
'DONT_ACCEPT_TRUE_FOR_1' Name |
| 33 |
' ' Text |
| 34 |
'`' Punctuation |
| 35 |
'\n' Text |
| 36 |
|
| 37 |
'> ' Generic.Prompt |
| 38 |
'-o' Name |
| 39 |
' ' Text |
| 40 |
'ELLIPSIS' Name |
| 41 |
' ' Text |
| 42 |
'options' Name |
| 43 |
'.' Punctuation |
| 44 |
'txt' Name |
| 45 |
'\n' Text |
| 46 |
|
| 47 |
'\n' Generic.Output |
| 48 |
|
| 49 |
'PS> ' Generic.Prompt |
| 50 |
' ' Text |
| 51 |
'$Params' Name.Variable |
| 52 |
' ' Text |
| 53 |
'=' Punctuation |
| 54 |
' ' Text |
| 55 |
'@' Punctuation |
| 56 |
'{' Punctuation |
| 57 |
'\n' Text |
| 58 |
|
| 59 |
'> ' Generic.Prompt |
| 60 |
' ' Text |
| 61 |
'Height' Name |
| 62 |
' ' Text |
| 63 |
'=' Punctuation |
| 64 |
' ' Text |
| 65 |
'50' Name |
| 66 |
'\n' Text |
| 67 |
|
| 68 |
'> ' Generic.Prompt |
| 69 |
' ' Text |
| 70 |
'Width' Name |
| 71 |
' ' Text |
| 72 |
'=' Punctuation |
| 73 |
' ' Text |
| 74 |
'50' Name |
| 75 |
'\n' Text |
| 76 |
|
| 77 |
'> ' Generic.Prompt |
| 78 |
' ' Text |
| 79 |
'Depth' Name |
| 80 |
' ' Text |
| 81 |
'=' Punctuation |
| 82 |
' ' Text |
| 83 |
'50' Name |
| 84 |
'\n' Text |
| 85 |
|
| 86 |
'> ' Generic.Prompt |
| 87 |
' ' Text |
| 88 |
'Name' Name |
| 89 |
' ' Text |
| 90 |
'=' Punctuation |
| 91 |
' ' Text |
| 92 |
"'My Widget'" Literal.String.Single |
| 93 |
'\n' Text |
| 94 |
|
| 95 |
'> ' Generic.Prompt |
| 96 |
' ' Text |
| 97 |
'ID' Name |
| 98 |
' ' Text |
| 99 |
'=' Punctuation |
| 100 |
' ' Text |
| 101 |
"'10dbe43f-0269-48b8-96cb-447a755add55'" Literal.String.Single |
| 102 |
'\n' Text |
| 103 |
|
| 104 |
'> ' Generic.Prompt |
| 105 |
'}' Punctuation |
| 106 |
'\n' Text |
| 107 |
|
| 108 |
'\n' Generic.Output |
| 109 |
|
| 110 |
'\n' Generic.Output |
| 111 |
|
| 112 |
'PS> ' Generic.Prompt |
| 113 |
' ' Text |
| 114 |
'ls ' Name.Builtin |
| 115 |
'|' Punctuation |
| 116 |
'\n' Text |
| 117 |
|
| 118 |
'> ' Generic.Prompt |
| 119 |
'grep' Name |
| 120 |
' ' Text |
| 121 |
'"' Literal.String.Double |
| 122 |
'python' Literal.String.Double |
| 123 |
'"' Literal.String.Double |
| 124 |
'\n' Text |