Skip to content

Latest commit

 

History

History
 
 

Ook_Language_Integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Ook Language Integration Sample

Implement custom language support into Visual Studio for the esoteric language 'Ook!'.

  • Technologies: Visual Studio 2015 SDK
  • Topics: Visual Studio Editor, VSX

Description

This sample implements_Ook!_, an esoteric example language consisting of three valid tokens separated by spaces: Ook!, Ook?, and Ook.

The Ook! language supports the following features:

  • General purpose token tagger
  • A classification tagger
  • A QuickInfo source and controller
  • A completion source and controller

image

Requirements

Visual Studio 2015

Get all samples

Clone the repo (How to):

git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git

Run the sample

  1. To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new instance of Visual Studio will launch under the experimental hive.
  2. Once loaded, open a file with the .ook filename extension. This sample includes an example .ook file: test.ook
  3. Instances of "Ook!" are colored Purple
  4. Instances of "Ook?" are colored Green
  5. Instances of "Ook." are colored Yellow
  6. Test Completion: Click anywhere in the file and press Space. An auto-complete dialog should appear at the location of the text caret
  7. Test QuickInfo: Position the mouse cursor over a valid token. Text appears in a grey box describing the purpose of the token.

Notes

This example was used during the Visual Studio Ecosystem Summit Presentation "Getting Linguistic: Integrating a Language into Visual Studio" by Chris Granger.

Related topics