formaladjacent
Formaladjacent is a term used in discussions of formal language theory and related disciplines to describe a relation between two elements that occur directly next to each other within a specified formal context. It is a label chosen for clarity in analyses of grammars, automata, and derivations, rather than a universally standardized relation.
In a formal grammar, two symbols X and Y are formaladjacent if X immediately precedes Y on
Applications of the notion include parsing and grammar analysis, where identifying formaladjacent pairs helps to reason
Relation to other ideas is important: formaladjacent is distinct from semantic adjacency (concerned with meaning) and