Changeset 4579 for trunk/compiler

Show
Ignore:
Timestamp:
11/07/08 16:12:44 (2 months ago)
Author:
pmoura
Message:

Added conditional compilation support, as found in some Prolog compilers, using the new directives if/1, elif/1, else/0, and endif/0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4578 r4579  
    47584758 
    47594759'$lgt_tr_file'(Term, _, _, Input, Output) :- 
    4760     '$lgt_pp_cc_skipping_', 
    4761     \+ '$lgt_lgt_cc_directive'(Term), 
     4760    '$lgt_pp_cc_skipping_',             % we're performing conditional compilation and skipping terms  
     4761    \+ '$lgt_lgt_cc_directive'(Term),   % except for conditional compilation directives itself 
    47624762    !, 
    47634763    '$lgt_read_term'(Input, Next, [singletons(NextSingletons)], NextLine),