in playground/tree-sitter/concrete-syntax.js [694:735]
window.testConcreteSyntaxIntegration = function() {
const results = {
playground: !!window.playground,
codeEditor: !!(window.playground && window.playground.codeEditor),
concreteSyntax: !!window.ConcreteSyntax,
queryType: null,
pattern: null,
concreteSyntaxEditor: null
};
const queryType = document.querySelector('input[name="query-type"]:checked');
if (queryType) {
results.queryType = queryType.value;
}
const concreteSyntaxEditor = getConcreteSyntaxEditor();
if (concreteSyntaxEditor) {
results.concreteSyntaxEditor = true;
results.pattern = concreteSyntaxEditor.getValue().trim();
} else {
results.concreteSyntaxEditor = false;
}
console.log('Concrete Syntax Integration Status:', results);
if (results.playground && results.codeEditor && results.concreteSyntax) {
console.log('✅ All systems operational!');
if (results.queryType === 'concrete-syntax' && results.pattern) {
console.log('✅ Ready for concrete syntax matching');
} else {
console.log('ℹ️ Switch to concrete syntax mode and enter a pattern to test');
}
} else {
console.log('❌ Some components not ready:', {
needsPlayground: !results.playground,
needsCodeEditor: !results.codeEditor,
needsConcreteSyntax: !results.concreteSyntax
});
}
return results;
};