• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.20 Term reading and writing
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Term reading and writing
          • write_term/2
          • write_term/3
          • write_length/3
          • write_canonical/1
          • write_canonical/2
          • write/1
          • write/2
          • writeq/1
          • writeq/2
          • writeln/1
          • writeln/2
          • print/1
          • print/2
          • portray/1
          • read/1
          • read/2
          • read_clause/3
          • read_term/2
          • read_term/3
          • read_term_from_atom/3
          • read_history/6
          • prompt/2
          • prompt1/1
    • Packages
Availability:built-in
read_clause(+Stream, -Term, +Options)
Equivalent to read_term/3, but sets options according to the current compilation context and optionally processes comments. Defined options:
syntax_errors(+Atom)
See read_term/3, but the default is dec10 (report and restart).
term_position(-TermPos)
Same as for read_term/3.
subterm_positions(-TermPos)
Same as for read_term/3.
variable_names(-Bindings)
Same as for read_term/3.
process_comment(+Boolean)
If true (default), call prolog:comment_hook(Comments, TermPos, Term) if this multifile hook is defined (see prolog:comment_hook/3). This is used to drive PlDoc.
comments(-Comments)
If provided, unify Comments with the comments encountered while reading Term. This option implies process_comment(false).

The singletons option of read_term/3 is initialised from the active style-checking mode. The module option is initialised to the current compilation module (see prolog_load_context/2).

ClioPatria (version V3.1.1-51-ga0b30a5)