Topic: function syntax by pattern

topics > computer science > programming > Group: function


extensible languages
function definition
function syntax definition
grammar modification
interface type
macro syntax definition
pattern matching
production systems
Thesa as a database of modules
semantic grammar
syntax analysis


Function syntax can be a pattern for identifying function calls. This is the approach taken in Thesa. Each function's pattern is a sequence of literals and parameters. Similarly, Planner functions are a pattern which when matched by a goal statement initiates the function. (cbb 5/80)
Subtopic: function patterns up

Quote: in Galaxy, the syntax for a function call is anything legal that matches a function pattern [»beet5_1989]
Quote: a message pattern for a Smalltalk method consists of a selector for matching and parameters for arguments [»xlrg8_1981]
Quote: declare operations as a pattern giving data types, operator, and result type [»solnN_1971, OK]
QuoteRef: cbb_1973 ;;[reading (QuoteRef: shawCJ_1963) entry descriptor describes a pattern eg integer-class + integer-class
Quote: macro Cobol recognizes macro calls by pattern; e.g., 'perform' integer 'times' statement-list 'end-perform' [»triaJM8_1980]
QuoteRef: ironET1_1969 ;;32 extend syntax by function definition specifying syntax as well

Subtopic: argument templates up

QuoteRef: cbb_1973 ;;2/8/75 entry must be recognizable
QuoteRef: cbb_1973 ;;4/8/79 what is the simplest recognizer-- only variables for parameters, variables identified by capital letters, instruction lookup can be the same as variable lookup. no templated variables.
QuoteRef: waitWM7_1967 ;;433 uses template on a per line basis with parameters as * (positional re*
Quote: XPOP uses blanks, noise words, and cue words to convert statements to operator/operand form [»halpMI1_1968, OK]

Subtopic: keyword arguments up

QuoteRef: hehnEC7_1975 ;;45 lots of key words, straightforward pattern matching merlin
QuoteRef: bennRK6_1968 ;;4-3 key word quotes for fixed length by keyword to indicate a position and a keyword terminator eg for i=1 to 10 by 2 do == for (i,1,10,2)

Subtopic: flexible syntax up

Quote: user customization language for screen formatting; popular; very simple, flexible syntax [»boreNS_1991]
QuoteRef: hogbD10_1971 ;;3 command format: key-word number-list (any other interspersed symbols for documentation ok)

Subtopic: composition up

Quote: structural operational semantics recovers compositionality through the syntactic structure of the language

Related Topics up

Group: patterns   (8 topics, 179 quotes)

Topic: extensible languages (71 items)
Topic: function definition (25 items)
Topic: function syntax definition (17 items)
Topic: grammar modification (10 items)
Topic: interface type (50 items)
Topic: macro syntax definition (10 items)
Topic: pattern matching (42 items)
Topic: production systems (10 items)
Topic: Thesa as a database of modules (23 items)
Topic: semantic grammar (23 items)
Topic: syntax analysis
(29 items)

Updated barberCB 6/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.