Performance Equation Suntax Highlight for Visual Studio Code
This Visual Studio Code extension provides IntelliSense support for Performance Equitions (PE) custom .pi language. It includes features such as syntax highlighting, auto-completion, hover information, and validation for various PE functions.
Features
Syntax Highlighting: Provides syntax highlighting for .pi files.
IntelliSense:
Auto-completion for PE functions.
Hover information with detailed documentation for each function.
Validation: Real-time validation of PE functions to ensure correct syntax and argument types.
Supported Functions
The extension currently supports the following PE functions with IntelliSense and validation:
BadVal
FindEq
FindGE
FindLE
FindLT
FindNE
Float
Format
Int
Left
Len
Median
NoOutput
PrevEvent
PrevVal
Right
String
TagAvg
TagTot
TagMax
TagMin
Supported Keywords
If, Then, Else
Supported Types
Tagnames: Tagnames are in single quotes.
Example: 'KaBC54C_FT01' is a valid tagname. "KaBC54C_FT01" is NOT a valid tagname.
PI Time Expressions: Time expressions are in single quotes.
Example: '01-dec-03', '16-jul-94', '*' are valid time expression.