// surface-profile-demo.el - ONE SemFrame, realized ONCE, projected to THREE // surfaces via surface profiles. Proves surface-as-profile natively: the frame // and the realized sentence are identical; only the surface PROFILE differs. fn demo() -> String { // 1. The shared frame (meaning-geometry): assert(Neuron, contain, the memory). let frame: [String] = sem_frame("assert", "Neuron", "the memory", "") // 2. REALIZE once via the EXISTING native realizer (language = a profile). let sentence: String = sem_realize(frame) // 3. PROJECT the same realized sentence onto three surfaces (surface = a // profile). Same frame, same sentence, different surface — one render. let heading: String = "Memory" let md: String = surface_section(surface_profile_markdown(), heading, sentence) let html: String = surface_section(surface_profile_html(), heading, sentence) let plain: String = surface_section(surface_profile_plain(), heading, sentence) // 4. Report the non-text seam: a surface profile can declare an audio/image // medium; the render dispatches to the medium projector on the SAME frame. let midi_media: String = surface_get(surface_profile_midi(), "media_type") return "MD=[" + md + "] HTML=[" + html + "] PLAIN=[" + plain + "] MIDI_MEDIA=" + midi_media } println(demo())