fppVSCode language support for FPrimePrime modeling language. How toWhen first loading up your FPrime project, you will notice many errors! This is because the compiler doesn't know where to search for FPP declarations You will need to load the locs files which is generated during build time
in the cmake build folder. Look for Once the locs file is loaded, the entire project will be indexed and references will be resolved. It's recommended to 'pin' the reload status so that its easier to reload/reindex the project: This will add a status bar item that will reindex the locs file when clicked. Features
Technical DescriptionThis VSCode extension is essentially a FPP compiler frontend written in TypeScript using ANTLR4. It injests a 'locs' file generated during the FPrime build process which will tell the compiler which files to include during its variable/type declaration stage. Files are parsed and reduced in a separate worker thread and then sent through the compilers declaration collection in the main thread. DevelopmentTo set up dependencies you will need NodeJS and a package manager like
When making a change to the ANTLR definition (
To build a VSIX file you can use:
|