mirror of
https://github.com/personamanagmentlayer/pcl.git
synced 2026-09-14 15:40:22 +08:00
dcf5e14efa
- Update extractProperties() to handle depth and verbosity properties - Update extractPersonaConfig() to extract depth and verbosity from AST - Add depth/verbosity to codegen property extraction interface - Test parsing and extraction of complete persona syntax Parsing now correctly handles: - intent/tone/depth/verbosity properties - skills/constraints/tags blocks Status: Parser + Codegen + Runtime integration COMPLETE
10 lines
308 B
JavaScript
10 lines
308 B
JavaScript
import { parse } from '../dist/index.js';
|
|
|
|
const result = parse('persona SEC { intent: "test" }');
|
|
console.log('Parse result:', result.ok ? 'SUCCESS' : 'FAILED');
|
|
if (result.ok) {
|
|
console.log('Statements:', result.value.program.statements.length);
|
|
} else {
|
|
console.log('Errors:', result.error.length);
|
|
}
|