Changeset 4598 for trunk/compiler
- Timestamp:
- 11/20/08 17:49:29 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4592 r4598 5264 5264 5265 5265 5266 % '$lgt_tr_expand_goal'(+callable, -callable) 5267 % 5268 % expands a goal; fails if no goal expansion hook is defined 5269 5270 '$lgt_tr_expand_goal'(Goal, EGoal) :- % source-file specific compiler hook 5271 '$lgt_pp_hook_goal_expansion_'(Goal, EGoal), 5272 !. 5273 5274 '$lgt_tr_expand_goal'(Goal, EGoal) :- % default compiler hook 5275 '$lgt_hook_goal_expansion_'(Goal, EGoal), 5276 !. 5277 5278 5279 5266 5280 % '$lgt_tr_term'(+term, +integer, @stream, @stream) 5267 5281 % … … 5345 5359 \+ callable(Goal), 5346 5360 throw(error(type_error(callable, Goal), directive(if(Goal)))). 5361 5362 '$lgt_tr_directive'(if(Goal), Line, Input, Output) :- 5363 '$lgt_tr_expand_goal'(Goal, EGoal), 5364 !, 5365 '$lgt_tr_directive'(if(EGoal), Line, Input, Output). 5347 5366 5348 5367 '$lgt_tr_directive'(if(Goal), _, Input, _) :- … … 5382 5401 \+ '$lgt_pp_cc_if_found_'(_), 5383 5402 throw(error(unmatched_directive, directive(elif(Goal)))). 5403 5404 '$lgt_tr_directive'(elif(Goal), Line, Input, Output) :- 5405 '$lgt_tr_expand_goal'(Goal, EGoal), 5406 !, 5407 '$lgt_tr_directive'(elif(EGoal), Line, Input, Output). 5384 5408 5385 5409 '$lgt_tr_directive'(elif(Goal), _, Input, _) :- … … 5523 5547 ensure_loaded(File), % assume that ensure_loaded/1 is also a built-in predicate 5524 5548 assertz('$lgt_pp_directive_'(ensure_loaded(File))). 5549 5550 '$lgt_tr_file_directive'(initialization(Goal), Line, Input, Output) :- 5551 '$lgt_tr_expand_goal'(Goal, EGoal), 5552 !, 5553 '$lgt_tr_file_directive'(initialization(EGoal), Line, Input, Output). 5525 5554 5526 5555 '$lgt_tr_file_directive'(initialization(Goal), _, _, _) :-
