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
.relixscripts. Handlesnamespace,env,import,source, assignment (:=),def, andquerystatements. Embedded relational algebra bodies are delegated toRelAlgebraParserwith 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:
-
ClassDescriptionThrown when the
ScriptParserencounters a syntax error in a.relixsource file.A single token produced by theLangLexer.All token types produced by theLangLexerfor the relix scripting language.Recursive-descent parser for.relixscripting language source files.