PIE Scanner

back to main page

The scanner used in various projects is PIE scanner (Prolog Inference Engine by PDC http://vip.pdc.dk) and performs conversion of the string into atoms, declared in PIE Domains.

To include Text Scanner - open your project.inc file with VP Studio Setup utility and checkout necessary options:

This version of Scanner has been enhanced to handle Escape sequences - "\\","\t","\n" and etc.

We also provide GUI tools which allow easy exploration of the  Scanner Results.
Click here to download Scanner GUI.

This scanner breaks a string up into a list of tokens of the following kinds:

TOK    = lbrack; rbrack; [ ]
    lpar; rpar; ( )
    lcurly; rcurly; { }
    var(STRING); X, This, _ok
    atom(STRING); hello, :-, :::, fail

    int(INTEGER); /*123, -456*/
    str(STRING); /* "This is a string", supports ESC sequences. */
    char(CHAR); /*  'C' */
   
    comma; ,
    bar; |
    dot .

A symbol is either a name starting with a lowercase letter, or a sequence of the following characters:

+ - * / = ` : . \ ^ < > ? @ # $ &

/* Comments in this following format are accepted */

 


Copyright 1998-2000 EDMGROUP (Australia)

Last Updated: March 20, 2002