1. Re: Context Final & Euro2000

Foolish me. The code just looked so neat, it had to work. It HAD to. But it
didn't

Sorry for the misleading, lets just hope I haven't lost all my credibility.
I've attached a zip-file, containing a working context-library.[finally!
also using the perfect algorithm]

Try the DOCKER Shell program. The commands are case sensitive (and off
course context sensitive tongue)

Use 'List' to list all available (applying within the context) concepts.
(example: >>> List Ralf)
Use 'Ask' to resolve a query. (example: >> Ask Quit Status)
Use 'Concept' to supply a standard prefix. (example: >> Concept Ralf)
Use 'Change' to change/add a context. (example: >> Change My Name)
Use 'Help' to get all of the info.

Inserted below here, are the instructions of how to use Context.e

Greetings,

Ralf N.
nieuwen at xs4all.nl

Instructions & Notes from Context.E

----------------------------------------------------------------------------
--------------
----------------------------------------------------------------------------
--------------
--
--     CONTEXT                                                   June 2000
--     (c) By Ralf Nieuwenhuijsen                          USE AT OWN RISK
--
----------------------------------------------------------------------------
--------------
--
--        Offers context sensitive information management. There are two
different
--     approaches. Here the differces:
--
--        * FORMAL ROUTINES *
--
--         - Resolve, store and work with queries of integers.
--         - You can work with many different databases at the same time.
--
--        * QUICK'n'DIRTY *
--
--         - Resolve, store and work with formatted strings as queries.
--            (whitespace is used as seperator)
--         - Work with only one big common knowledge database.
--
--       The quick'n'dirty routines are easier and ideal for most cases. You
will only
--     need the formal routines when you want to store arbituary data or
work with
--     several seperated databases.
--
--------------
--
--      Code example:
--
--
--          concept ( "FakeWorld" )
--             the ("Euro2000 Winner") equals ("Netherlands")
--
--          top_level ()
--
--          the ("Ralf World") equals ("FakeWorld")
--
--          puts (1, "The winner of the Euro200 is ")
--          puts (1, ask ("Ralf World Euro2000 Winner") )
--
--
--
--       The example above is quite trivial and surely doesn't show the
power of the
--     context resolve algorithms, but it should give you a general idea.
--
--       NOTES:
--
--           * Call top_level () before you make any top level definitions.
--
--           * When using equals () your query will be parsed based upon
whitespace.
--
--           * When using setto () your query will not be parsed.
--
--           * These two do the very same thing:
--
--                1)    the ("Word1 Word2") equals ("Word3 Word4")
--
--                2)    concept ("Word1")
--                       the ("Word2") equals ("Word3 Word4")
--
--           * You can use list( query ) to get a list of all context
related concepts.
--
---[Formal
---
--
--          context c
--          query q, concept, left, right
--
--          c = EMPTY
--          c = define ( c, concept, left, right )
--
--          q = ask_query ( c, q )
--
--          sequence s
--          s = list ( q )                           -- a list of associated
context
--
----------------------------------------------------------------------------
--------------

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu