Kanada, Y., Master's Thesis, University of Tokyo Graduate School, 1981 (in Japanese).
[ 日本語のページ ]
[ Kindle edition ]
[ Paper PDF file (6 MB !) (in Japanese) ]
Introduction to this research theme:
Programming Linguistics
Abstract
If we recognize that programming languages are not languages only for machines but are languages that human beings write and read [and used for human-to-human communication], we can see that studies on them rather belong to humanities.
This recognition enables possibility to study programming languages using methods of linguistics.
This recognition also leads us to find significance of comparative studies on programming languages and natural languages.
Until now, some software scientists have had interests on linguistic research on programming languages, but they seems not to have performed it.
So I believe that this paper should establish the basis of linguistic research.
Therefore, in this paper, I show linguistic viewpoints on programming languages, show what types of analysis methods can and should be applied to which parts of programming languages, and try to show the direction of linguistic researches.
The most important linguistic viewpoints among the viewpoints shown in this paper are to regard programming languages as systems that include customs (i.e., rules that are not codified, or, not specified in language specifications), and to regard program unit names as relationships to the abstractions.
In addition, in a study of applying linguistic methodology to programming languages, this paper lists and explains several structural similarities to natural languages.
This paper also try to show the research direction of the fields of programming linguistics from morphology to semantics.
Among them, one of the most important branch (of semantics) is research of ambiguity in programming languages.
Linguistic researches mainly target existing programs.
Although this paper does not go deep into analysis of existing programs, I believe future research projects will find many clues from this paper.
Contents
- Introduction
- Research fields that relate to programming languages
- Significance of contrastive research on programming and natural languages
- What are programming lanuguages?
- Three expressions of programming languages
- Rules of programming languages
- Codified rules and non-codified rules 1
- Are there non-cofified rules?
- Codified rules and non-codified rules 2
- Classification of codified rules
- Classification of rules by communicative function
- Rules of programming languages and rules of natural languages
- Flexibility of rules
- Complexity of rules
- Problems of linguistic research on rules
- Independence of programming lanugages
- Reasons for examining the independence
- Reasons that support dependence
- Reasons that support independence
- Examination from engineering viewpoint
- Understanding meanings
- Basic triangle
- Definition of "meaning"
- Characteristics of languages
- "Characteristics of natural languages":
A. Communicative function, B. Arbitrariness of symbols, C. Systematic nature, D. Linearity of symbols and messages, E. Discreteness of units, F. Double articulation
- Do programming languages have characteristics of languages?:
A. Communicative function, B. Arbitrariness of symbols, C. Systematic nature, D. Linearity of symbols and messages, E. Discreteness of units, F. Double articulation
- Other characteristics of programming languages
- Ambiguity
- Closeness and evolutionary nature
- Non-speakability of programming languages
- Frequency of naming and scope of words
- Progams are "used" and rewritten
- Non-linguistic part of programming languages
- Nature of expressions
A. Non double articulation, B. Non-linearity
- Meaning of existence of non-linguistic part
- Variety and changes of programming languages
- Programming linguistics and its research fields
- Individual research
- Fields of individual research
- Syntax
- Semantics
- Comparative and contrastive research
Morphology -- an initial step
- Classification of symbols and their structures
- Articulation of identifiers
- Structure of variable names
- Structure of calls
- Structure in language specifications
- Structure of function calls
- Structure of procedure calls
- Consideration on structure of procedure calls from engineering viewpoint
- Contraction of identifiers
- Restrictions of identifier length and solutions
- Contraction rules
Research on ambiguities
- General meaning, polysemy, and homonymy
- Causes of polysemy and homonymy
- Needs of amgiguity resolution
- Resolution of polysemy and homonymy
- Meaning of ambiguities
Conclusion
References
Acknowledgments
P.S. (2007)
A paper that analyzes programming languages by methods of (human)
linguistics, i.e., humanistically.
(Linguistically, there is not so many differences in programming
lanugages between 1981 and now. However, data description languages,
especially XML, which were not widely used, are now widely used.
I think we will have important knowledge by analyzing XML
linguistically.)
Keywords: Programming linguistics, Linguistics, Software linguistics, Non-codified rule, Arbitrariness, Non-linearity, Discreteness, Non double articulation, Ambiguity, Closedness, Evolutionary nature, Scope, Morphology, Polysemy, Homonymy, Semiotics, Semiology