previous up contents next
Left: Proposed new directives Up: The DATR Standard Library Right: Standard library function functions

The ``path cut'' operator

In addition to the DATR nodes described below, we propose the addition of a (built-in) ``path cut'' operator (notated by a period) to discard path extensions.

    Path_cut_demo:
        <cut>   == Idem:<a b c .>
        <uncut> == Idem:<a b c>.
    
    Path_cut_demo:<cut d e f>   = a b c.
    Path_cut_demo:<uncut d e f> = a b c d e f.


---------------------------------------------------------

Copyright © Roger Evans, Gerald Gazdar & Bill Keller, Tuesday 10 November 1998