共查询到20条相似文献,搜索用时 78 毫秒
1.
王万森 《计算机应用与软件》1996,13(5):39-43
在对语义网络表示进行面向对象程序设计时,一个重要的问题是如何描述结点间属性的变异关系,本文主要探讨在C^++程序设计语言环境下,语义网络表示中变异关系的实现问题。 相似文献
2.
3.
动态模糊逻辑程序设计语言的指称语义 总被引:1,自引:0,他引:1
文献[8]借鉴Dijkstra的监督命令程序结构,给出了动态模糊逻辑程序设计语言的基本框架结构.在此基础上,进一步扩充和完善,并根据指称语义的原理和方法,用结构归纳法给出动态模糊逻辑程序设计语言的指称语义,主要包括:动态模糊程序设计语言的语义域、语义函数及其指称语义.最后给出了一个动态模糊程序设计语言的例子以观察程序的运行过程. 相似文献
4.
Fortran 90语言中辅程序交叉返回的编译技术 总被引:1,自引:0,他引:1
Fortran90是Fortran语言的最新国际标准。出于对语言兼容性方面的考虑,Fortran90语言中的辅程序可以有多个出口。该编译系统的目标语言是程序设计语言C。根据C语言的语义,在一个函数中只能有一个出口。源语言与目标语言之间存在的语义差距,给编译程序的实现增加了难度。文中着重介绍了Fortran90语言中辅程序交叉返回的特征及其编译实现的技术。 相似文献
5.
Garment中的归约语义 总被引:1,自引:0,他引:1
文中用代数方法研究了Garment中程序设计语言的归约语义,首先给出了归约语义在形式语言理论中的含义,然后提出了Garment中语言的代数模型。在此代数模型下讨论了归约语义及其性质,并给出了语言可归的充分条件。 相似文献
6.
逻辑程序语言又叫说明语言,这是因为用它编写的程序中,说明语句多于赋值语句或流程控制语句。逻辑程序语言的一个最基本的特征是它的语义。研究逻辑程序语言的语义称为说明语义学。具体说就是寻找一种简单的方法来确定每一语句的意义,而该方法与语句将解决的问题无关。第一个逻辑程序语言PROLOG是在70年代初由法国马赛大学的周amC0hnerauer和PhillippeR_l开发成功的,它的设计技巧由伦敦大学的RobertKOWISki提出。在一般的程序设计系统中,程序告诉计算机的是如何一步一步地去解决问题。而在逻辑程序设计系统中,程序会告诉计算机… 相似文献
7.
8.
9.
函数式面向对象语言FOPL的指称语义 总被引:1,自引:0,他引:1
函数式面向对象程序设计语言FOPL是笔者设计并实现的一种合成语言,本文在一个全称的抽象域上描述了FOPL语言的指称语义。 相似文献
10.
带迭代算子的函数式程序设计 总被引:2,自引:2,他引:0
本文提出了程序设计语言的一种新的计算模型,带迭代处子的函数式模型,文中给出了基于该计算模型的程序设计语言的语法、计算规则集及确定怀证明,该类语言以表达式的复合描述顺序,以迭代表达式描述循环,以条件表达式描述分支,使得程序以数学语义为基础,易于理解,证明及构造高效的执行系统,相信该类语言是一咱有坚实理论基础、高效的、实际有用的高级确定性程序设计语言。 相似文献
11.
Programming languages are studied in the abstract. Algebraic theories supply the syntax for programming languages. Semantics is provided by coproduct preserving functors from the algebraic theory to some semantic category with finite coproducts. Deterministic programming languages are provided when the semantic domain is the category of pointed sets and point preserving functions. Nondeterministic programming languages occur when the semantic domain is the category of Abelian monoids. The class of all nondeterministic programming languages with a fixed syntax is shown to be a variety of algebras. All classes of deterministic programming languages that allow branching are shown to be nonvarietal. Other properties of classes of programming languages are studied using category theory. 相似文献
12.
13.
This paper presents one experiment to explain why and under which circumstances visual programming languages would be easier to understand than textual programming languages. Towards this goal we bring together research from psychology of programming and image processing. According to current theories of imagery processing imagery facilitates a quicker access to semantic information. Thus, visual programming languages should allow for quicker construction of a mental representation based on data flow relationships of a program than procedural languages. To test this hypothesis the mental models of C and spreadsheet programmers were assessed in different program comprehension situations. The results showed that spreadsheet programmers developed data flow based mental representations in all situations, while C programmers seemed to access first a control flow and then data flow based mental representations. These results could help to expand theories of mental models from psychology of programming to account for the effect of imagery. 相似文献
14.
徐锡山 《计算机工程与科学》1993,15(1):32-39
C语言是目前最流行的计算机语言之一,它兼有传统高级语言和汇编语言的优点,概念简洁,风格灵活,内涵相当丰富。要真正掌握该语言的精髓和理解其语义并非易事。本文对C语言的语义特点作了深入探讨,并给出了一些重要概念,最后,列举了若干在编程中的常见错误。 相似文献
15.
16.
Use of executable declarative metalanguages has simplified programming language syntax specification and implementation, whereas existing formalisms for static semantics are still relatively procedural. A working hypothesis is that the context-sensitivity of languages (under static semantic rules) is derived in significant part from the interleaved presences therein of sentences in implicitly-defined and effectively invisible context-free languages. Procedures by which these sentences and context-free grammars for their languages can be respectively derived from the original sentence and the combination of the original language's grammar and semantic rules, lead to the possibility of automatic generation of static semantic analysers from the purely context-free specifications of “Facet Grammars” (FG)!
We show that the utility of FG for static semantic analysis has a non-trivial lower bound, by specifying the relatively complicated identifier scope and accessibility rules for Dijkstra's Guarded Commands Language. 相似文献
17.
Parsers, whether constructed by hand or automatically via a parser generator tool, typically need to compute some useful semantic information in addition to the purely syntactic analysis of their input. Semantic actions may be added to parsing code by hand, or the parser generator may have its own syntax for annotating grammar rules with semantic actions. In this paper, we take a functional programming view of such actions. We use concepts from the semantics of mostly functional programming languages and adapt them to give meaning to the actions of the parser. Specifically, the semantics is inspired by the categorical semantics of lambda calculi and the use of premonoidal categories for the semantics of effects in programming languages. This framework is then applied to our leading example, the transformation of grammars to eliminate left recursion. The syntactic transformation of left-recursion elimination leads to a corresponding semantic transformation of the actions for the grammar. We prove the semantic transformation correct and relate it to continuation passing style, a widely studied transformation in lambda calculi and functional programming. As an idealization of the input language of parser generators, we define a call-by-value calculus with first-order functions and a type-and-effect system where the effects are given by sequences of grammar symbols. The account of left-recursion elimination is then extended to this calculus. 相似文献
18.
19.
Didier Parigot Carine Courbis Pascal Degenne Alexandre Fau Claude Pasquier Joël Fillon Christophe Held Isabelle Attali 《Electronic Notes in Theoretical Computer Science》2002,65(3)
SmartTools is a semantic framework generator, based on XML and object technologies. Thanks to a process of automatic generation from specifications, SmartTools makes it possible to quickly develop environments dedicated to domain-specific and programming languages. Some of these specifications (XML, DTD, Schemas, XSLT) are issued from the W3C which is an important source of varied emerging domain-specific languages. SmartTools uses object technologies such as visitor patterns and aspect-oriented programming. It provides code generation adapted to the usage of those technologies to support the development of semantic analyses. In this way, we obtain at minimal cost the design and implementation of a modular development platform which is open, interactive, uniform, and most important prone to evolution. 相似文献
20.
Sven-Olof Nyström 《Information Processing Letters》1996,60(6):320-293
It is well known that for many non-deterministic programming languages there is no continuous fully abstract fixpoint semantics. This is usually attributed to “problems with continuity”, that is, the assumption that the semantic functions should be continuous supposedly plays a role in the difficulties of giving a fully abstract fixpoint semantics. We show that for a large class of non-deterministic programming languages there is no fully abstract least fixpoint semantics even if one considers arbitrary functions (not necessarily continuous) over arbitrary partial orders (not necessarily complete). 相似文献