Package com.darkcollective.relix.lang


package com.darkcollective.relix.lang
Language-level parser for .relix script files.

Overview

This package provides the ScriptParser that reads a complete .relix source file and produces a Script AST. The script AST is then consumed by the semantic analysis pipeline in the relix-semantic module.

Entry points

ScriptParser
Recursive-descent parser for full .relix scripts. Handles namespace, env, import, source, assignment (:=), def, and query statements. Embedded relational algebra bodies are delegated to RelAlgebraParser with offset coordinates so that source positions are accurate end-to-end.
LangLexer
Tokenizer used internally by ScriptParser.
LangParseException
Thrown on syntax errors in the script layer.

Source positions

Every Statement produced by ScriptParser carries a SourceLocation identifying the file, line, and column where the statement began. When a file path is supplied to the parser, that path is embedded in every location, enabling the semantic analyser to emit diagnostics of the form script.relix:12:5: error: ....

See Also: