A compiler definition facility based on the syntactic macro
Open Access
- 1 January 1978
- journal article
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 21 (1) , 35-41
- https://doi.org/10.1093/comjnl/21.1.35
Abstract
This paper introduces an improvement on Leavenworth's syntactic macro for language extension whereby the user has greater flexibility for defining new syntactic constructs in the LL(1) context and for specifying conditional macro expansion dependent on semantic attributes passed among macros. The facility permits more accurate error detection, less repetitive scanning of text and more efficient generation of object code than allowed by the traditional string replacement macro; though the user may conceive this extensions in the context of string replacement, the processor is actually manipulating code trees. Further facilities are introduced for effecting a compiler definition system.Keywords
This publication has 0 references indexed in Scilit: