9 lines
505 B
PowerShell
9 lines
505 B
PowerShell
#Requires -Version 7.0
|
|
$ErrorActionPreference='Stop'
|
|
foreach($file in @('enumerate-inputs.ps1','capture.ps1','run.ps1','binary-inputs.ps1','finalize.ps1','verify-parser.ps1','validate-scripts.ps1','diagnostic.ps1')){
|
|
$tokens=$null;$errors=$null
|
|
$null=[System.Management.Automation.Language.Parser]::ParseFile((Join-Path $PSScriptRoot $file),[ref]$tokens,[ref]$errors)
|
|
if($errors.Count){$errors|ForEach-Object {Write-Output $_};throw ('Parse failure: '+$file)}
|
|
Write-Output ('Parsed '+$file)
|
|
}
|