[dylan-lang/melange] a51ce9: Support pointer-type-name: in struct clauses.

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <5555c175838c7_46b03f9ed69552b8877e@hookshot-fe1-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/melange
  Commit: a51ce9f08c92d4b5da77d818fd5c2d12db592b94
      https://github.com/dylan-lang/melange/commit/a51ce9f08c92d4b5da77d818fd5c2d12db592b94
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-05-14 (Thu, 14 May 2015)

  Changed paths:
    M documentation/source/struct-union-clauses.rst
    M melange-core/c-decl-write-c-ffi.dylan
    M melange-core/c-decl.dylan
    M melange/int-lexer.dylan
    M melange/int-parse.input
    M melange/interface.dylan
    M melange/library.dylan
    A tests/test.struct.pointer-type-name/expected.dylan
    A tests/test.struct.pointer-type-name/struct.pointer-type-name.h
    A tests/test.struct.pointer-type-name/test.intr

  Log Message:
  -----------
  Support pointer-type-name: in struct clauses.

* documentation/source/struct-union-clauses.rst: Document new option.

* melange-core/c-decl-write-c-ffi.dylan
  (write-declaration on <struct-declaration>,
   write-declaration on <union-declaration>): Generate the correct C-FFI option.

* melange-core/c-decl.dylan
  (apply-options): Add (and not use) new option.
  (class <structured-type-definition>): Track pointer-type-name.
  (apply-container-options): Apply the pointer-type-name to the declarations.

* melange/int-lexer
  (<pointer-type-name-token>): New. Also, renumber subsequent tokens.
  (constant reserved-words): Add "pointer-type-name:" mapping to token.

* melange/int-parse.input
  (<container-options>): Track pointer-type-name.
  (process-container-options): Store the pointer-type-name option in
    the container options.
  (parser): Add support for pointer-type-name container option.

* melange/interface.dylan
  (merge-container-options): Update for pointer-type-name.

* melange/library.dylan
  (module int-lexer): Export <pointer-type-token-name>.
  (module int-parse): Export pointer-type-name.

* tests/test.struct.pointer-type-name: Add a couple of basic tests.

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.