Browse Prior Art Database

User Interface for an Interactive C Language Interpreter

IP.com Disclosure Number: IPCOM000108977D
Original Publication Date: 1992-Jul-01
Included in the Prior Art Database: 2005-Mar-23
Document File: 2 page(s) / 69K

Publishing Venue

IBM

Related People

Bordovsky, JS: AUTHOR [+3]

Abstract

Disclosed is a method for interpreting user commands as C language statements. Such an interpreter can be used to directly call the internal functions of a compiled C program, giving the interactive user access to the same application programming interface (API) that is available to the programmer.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

User Interface for an Interactive C Language Interpreter

       Disclosed is a method for interpreting user commands as C
language statements.  Such an interpreter can be used to directly
call the internal functions of a compiled C program, giving the
interactive user access to the same application programming interface
(API) that is available to the programmer.

      Interpreters are commonly used to access internal functions of
compiled C language programs; however, these interpreters do not
support the C language syntax.  Other languages, such as Lisp or
REXX, are commonly used.  These implementations require a set of
interface functions which convert the calls to the interpreter into
calls to the appropriate C functions.

      C interpreters are commonly available; however, they are batch
or file oriented.  These C interpreters parse an entire file, not
just a single line.  They do not provide an interactive user
interface.  The novelty of this invention is how a single command
line is handled by an interactive C interpreter.

      The C language syntax is dependent on the order in which the
following items occur within a file: type definitions, external
declarations, external data definitions and function definitions.
The scope of variables depends on where they are in the file and
whether they are inside or outside of a function.  Also, statements
may occur only within a function definition.  The C language does not
define how a single line should be handled.

      Input could be from a standard command line interf...