Skip to content

Repository files navigation

Quale Language Support for VS Code

Syntax highlighting and code snippets for the Quale neuroevolution language.

Quale is a domain-specific language for evolving neural networks using NEAT (NeuroEvolution of Augmenting Topologies). Define agent bodies, worlds, fitness criteria, and evolution parameters in .quale files, then let the engine evolve brains that solve your problem.

Features

  • Syntax highlighting for all .quale constructs
  • Semantic comment system (--, --!, --!!, --[ ]--)
  • Code snippets for rapid scaffolding
  • Auto-closing brackets and string pairs
  • Code folding on brace blocks
  • Auto-indentation

Comment System

Quale uses a semantic comment system:

-- Regular comment (discarded by parser)
--! NOTE: this needs calibration (note - preserved in AST)
--!! FIXME: hardcoded value (critical - blocks --strict mode)
--[
Block comments span multiple lines.
Useful for temporarily disabling sections
or writing longer explanations.
]--
SyntaxPurposeVisibility
--Author notes, scratchpadParser discards
--!Notes, TODOsShown in quale check
--!!Critical issuesFails quale check --strict
--[ ... ]--Block commentParser discards

Snippets

PrefixDescription
bodyAgent body with sensors and actuators
sensor-internalInternal state sensor
sensor-directionalDirectional sensor (4 nodes)
sensor-propertyItem property sensor
sensor-socialSocial/peer sensor
actuator-directionalDirectional actuator (4 nodes)
actuator-triggerTrigger actuator
itemItem with properties and effects
worldWorld grid configuration
fitnessFitness objectives
evolveEvolution experiment
evolve-fullEvolution with all optional blocks
mutationMutation rate block
speciationSpeciation block
convergenceConvergence block
checkpointCheckpoint block

Installation

Search for "Quale" in the VS Code Extensions panel, or install from the command line:

code --install-extension Provant.quale-lang

Links

About

VS Code language support for Quale - a neuroevolution DSL

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors