Wednesday, February 9, 2011

WEB PROGRAMMING LANGUAGE

Give 5 Not Common PL.



Datalog is a query and rule language for deductive databases that syntactically is a subset of Prolog. Its origins date back to the beginning of logic programming, but it became prominent as a separate area around 1977 when HervĂ© Gallaire and Jack Minker organized a workshop on logic and databases. David Maier is credited with coining the term Datalog. Query evaluation with Datalog is based on first order logic, and is thus sound and complete. It can be done efficiently even for large databases. Query evaluation is usually done using bottom-up strategies.

(BLISS) Basic Language for Implementation of System Software is also ‘‘expression language’’ rather than a ‘‘statement language’’  a type less block-structured language based on expressions rather than statements, and includes constructs for exception handling, coroutines, and macros. It does not include a goto statement. For example, the counterpart of an assignment ‘‘statement’’ in BLISS is, strictly speaking, an expression that itself has a value. The value of an expression can be either used or discarded in BLISS... Finally, BLISS includes a macro facility that provides a level of capability usually found only in macro-assemblers.


Advanced Multi-Purpose Language (AMPLE) is a scripting language and a part of the Falcon Framework software framework developed for the Apollo/Domain computer by Mentor Graphics. It is a dynamically typed C-like programming language, with for example vector types added. In 2009, AMPLE was enhanced with hash-like data types in version 9.0 of the AMPLE-IC variant (IC-Station product line).
As the Apollo/Domain was very popular in computer-aided engineering (especially in electronic design automation), AMPLE is still used in several Mentor Graphics applications such as Design Architect IC and IC Station. These tools are built on the Falcon Framework, and run on Unix and Linux workstations. Some of the PCB design tools even run on Windows NT.


AppleScript is a scripting language created by Apple Inc. and built into Macintosh operating systems since System 7. The term "AppleScript" may refer to the scripting system itself, or to particular scripts that are written in the AppleScript language.
AppleScript is primarily an inter-application processing system, designed to exchange data between and control other applications in order to automate repetitive tasks. AppleScript has some limited processing abilities of its own - basic calculation abilities, and some more intricate text processing tools - and is extensible, allowing the addition of scripting additions which add new functions to the language itself. Mainly, however, AppleScript relies on the built-in functionalities of other applications and processes to handle complex tasks.


CLIST is an interpreted language. That is, the computer must translate a CLIST every time the program is executed. CLISTs therefore tend to be slower than programs written in compiled languages such as COBOL, FORTRAN, or PL/1. (A program written in a compiled language is translated once to create a "load module" or executable.)



Compare at least two Not Common PL.


AMPLE
As the Apollo/Domain was very popular in computer-aided engineering (especially in electronic design automation), AMPLE is still used in several Mentor Graphics applications such as Design Architect IC and IC Station. These tools are built on the Falcon Framework, and run on Unix and Linux workstations. Some of the PCB design tools even run on Windows NT.


AppleScript
AppleScript is primarily an inter-application processing system, designed to exchange data between and control other applications in order to automate repetitive tasks. AppleScript has some limited processing abilities of its own - basic calculation abilities, and some more intricate text processing tools - and is extensible, allowing the addition of scripting additions which add new functions to the language itself. Mainly, however, AppleScript relies on the built-in functionalities of other applications and processes to handle complex tasks.




Examples Source Code :



  • AMPLE




function split(s:string,d : optional {default = " "} ),
  QUICK_HELP "Splits string <s> delimited by <d> in a vector"
{
  local ret=[];
  local n;
  local e="";
  for(n=0;n<length(s);n=n+1)
  {
    if(s[n] != d )
      e=$strcat(e,s[n]);
    else
    {
      ret=lappend(ret,e);
      e="";
    }
  }
  if(e != "") ret=lappend(ret,e);
  return ret;
}
 
function foo( param : string { default=($last!=void)?$last:"my default value" } )
  , INDIRECT   // transcript all commands each in the function body
  , QUICK_HELP "Just a little Example Function"
{
  local n=0;
  for(n=0;n<length(param);n=n+1)
  {
    $writeln($strcat("=> ",param[0:n]));
  }
  return 0;
}

  • AppleScript

set chosenListItem to choose from list {"A", "B", "3"} ¬
        with title ¬
        "List Title" with prompt ¬
        "Prompt Text" default items ¬
        "B" OK button name ¬
        "Looks Good!" cancel button name ¬
        "Nope, try again" multiple selections allowed false ¬
        with empty selection allowed






No comments:

Post a Comment