FUNCTION:
Fortran FFI
Prev:LIBRARY:
Next:SUBROUTINE:


Vocabulary
alien.fortran

Syntax
FUNCTION: RETURN-TYPE NAME ( [!]ARGUMENT-TYPE NAME, ... ) ;


Word description
Declares a Fortran function binding with the given return type and arguments. See Fortran types for a list of supported types.

Definition
USING: alien.parser kernel lexer namespaces sequences ;

IN: alien.fortran

SYNTAX: FUNCTION:
scan-token current-library get scan-token ";" parse-tokens
[ "()" subseq? not ] filter define-fortran-function ;