Official extension of Visual Studio Code for COmpiscript language. This extension includes support for syntx highlighting, snippets and semantic analysis in real time.
Caracteristics
Syntax highlighting for .cps files␍
Predefined snippets for common language structures␍
Diagnosis Support:␍
Syntax errors␍
Semantic errors␍
Integrated command for running the compiler.␍
␍
Usage
Open a file with the .cpsextension. VSCode will regconize it as Compiscript and will apply the sintax and semantic analysis␍
All the code analysis runs in real time but to see complete compilation logs you can use the command Run Compiscript File from the command pallete.
In a new terminal will appear the logs from the semantic analysis and the possible errors the code could have.
Real Time Diagnosis␍
This is the format for the semantic errors:
Error: (line: X, column Y-Z) message
And for the syntactic errors:␍
line X:Y message
Included Snippets␍
Snippets available for the Compiscript language:␍
let
let identifier = value;
var
var identifier = value;
const
const identifier = value;
function
function name(params) {
// body
}
class
class ClassName {
function constructor(params) {
// init
}
}