Show
Ignore:
Timestamp:
05/04/08 05:41:56 (5 months ago)
Author:
pmoura
Message:

Added support for the scope operator, ::/2, to the syntax coloring tests. Minor documentation improvements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wenv/tests/source.lgt

    r4242 r4247  
    1818    extends(parent)). 
    1919 
    20     :- info([ 
     20    :- info([ 
    2121        version is 1.0, 
    2222        author is 'Paulo Moura', 
    23         date is 2003/12/18, 
     23        date is 2008/5/1, 
    2424        comment is 'Sample prototype for testing syntax coloring.']). 
    2525    :- threaded. 
     
    2727    :- dynamic. 
    2828    :- initialization(some_goal(X, Y)). 
    29     :- calls(some_other_protocol). 
    30     :- uses(another_object). 
     29    :- calls(some_other_protocol). 
     30    :- uses(another_object). 
    3131 
    3232    :- alias(set, member/2, set_member/2). 
     
    164164    direct_calls_of_category_predicates :- 
    165165        :Goal. 
     166 
     167    if_then_else :- 
     168        (   If -> 
     169            Then 
     170        ;   Else 
     171        ). 
    166172 
    167173    numbers :- 
     
    274280        \+ Goal, 
    275281        once(Goal), 
    276         repeat. 
     282        repeat, 
     283        !. 
    277284 
    278285    atomic_term_processing :- 
     
    292299        halt. 
    293300 
     301    number(C) --> "+", number(C). 
     302    number(C) --> "-", number(X), {C is -X}. 
     303    number(X) --> [C], {0'0 =< C, C =< 0'9, X is C - 0'0}. 
     304 
    294305:- end_object. 
    295306 
     
    297308 
    298309:- object(class, 
     310    implements(protected::protocol), 
     311    imports(private::category), 
     312    instantiates(metaclass), 
     313    specializes(superclass)). 
     314 
     315 
     316:- end_object. 
     317 
     318 
     319 
     320:- object(parametric(Parameter, "String", 33.78), 
    299321    implements(protocol), 
    300322    imports(category), 
    301     instantiates(metaclass), 
    302     specializes(superclass)). 
    303  
    304  
    305 :- end_object. 
    306  
    307  
    308  
    309 :- object(parametric(_Par1, _Par2), 
    310     implements(protocol), 
    311     imports(category), 
    312     extends(parent(_Par))). 
     323    extends(parent(Parameter))). 
    313324 
    314325