A syntax and semantic checker for mq files. Validates .mq query files for errors and warnings, providing colored diagnostic output with precise line and column information.

Features
- Detects syntax errors and semantic issues in mq files
- Colored terminal output (red for errors, yellow for warnings)
- Precise error locations with line and column numbers
- Supports checking multiple files at once
- Suitable for CI/CD pipelines (non-zero exit code on errors)
- Available as both a CLI tool and a library
Installation
From source
Using the Installation Script (Recommended)
|
The installer will:
- Download the latest release for your platform
- Verify the binary with SHA256 checksum
- Install to
~/.mq-check/bin/ - Update your shell profile (bash, zsh, or fish)
After installation, restart your terminal or run:
Cargo
# Install from crates.io
# Install using binstall
From Source
# Binary will be at target/release/mq-check
Usage
CLI
# Check a single file
# Check multiple files
# Use in CI/CD
&&
Example output
Checking: query.mq
Error: Expected `;` but found `|` at line 2, column 5
Warning: Function `old_func` is deprecated at line 3, column 10
Library
use PathBuf;
License
MIT