-
Notifications
You must be signed in to change notification settings - Fork 2
/
TODO
50 lines (33 loc) · 1.43 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
* The Command grammar can't parse the string "New-Object 'int[,]' 3,2"
* Pathological case for Command grammar for the string "New-Object -ArgumentList 3,2 -TypeName 'int[,]'"
* Pathological case for the following:
for ($i = 1; $i -le 10; ++$i) { "$i $($i*$i)" }
* Infinite loop with "process {{{" over ScriptBlock (same for "process { } process { }" under ScriptBlockBody)
* We don't support comments apparently.
* wispy doesn't support full Unicode variables.
* 'Format-Table path,linenumber -AutoSize' is unrecognised by the Command grammar.
* Another pathological case:
data -supportedcommand Format-XML {
Format-XML -strings string1, string2, string3
}
* Infinite loop with the following examples over the TryStatement:
{
try { $value * 10 }
catch [ System.OutOfMemoryException ] { $err = "Naruto" }
catch { $err = $_.Exception.Message }
}
{
try { $value * 10 }
catch [System.OutOfMemoryException] { $err = "Obito" }
catch { $err = $_.Exception.Message }
finally { $Time=Get-Date}
}
* RequiresComment -> not supporting command arguments
* Handle extra new lines issue under statements (matching something else)
function My-Function
{
}\n
-> Pipeline instead FunctionStatement due the fact that there is a new line after the last brace
* We could use greedy=False for LIST_OF and REPEAT for better performance.
* { $value * 10 } is wrongly detected by StatementList as a Pipeline,
composed by two statements '$value * 1' and '0'.