Browse Prior Art Database

COG USER'S GUIDE

IP.com Disclosure Number: IPCOM000149351D
Original Publication Date: 1981-Oct-31
Included in the Prior Art Database: 2007-Apr-01
Document File: 55 page(s) / 2M

Publishing Venue

Software Patent Institute

Related People

Aronson, Marc: AUTHOR [+3]

Abstract

Marc Aronson and Deborah S. Laforce Technical Report 81-8 October 1981 Department of Computer Science State University of New York at Albany Albany, N.Y. 1222% COG was written by Marc Aronson in 1979. The COG User's Guide was written by Marc Aronson and revised by Deborah S. Laforce. f Reserach supported in part by NSF Grant No. MCS 78-03157 COG ABSTRACT COG, Compiler o f Grammars, i s a cor~piter-compifer u h i c h runs o n L t h e LrNlVAC 7lC14. I t k i l l take as i n p u t an a t t r i b u t e d LL(1) grammar s i t h embedded a c t i o n r o u t i n e c a l l s and output a p a r s e r f o r the Canquage d e f i r e d by t b e grammar. The user has t h e o p t i o n o f v r i t i n g a l e x i c a l anatyzet which vay t:e e a s i l y i n t e r f a c e d w i t h t h e COG syntax a n a l y z e r , cr adainc L e x i c a l i n f o r m a t i o n t o t h e grammar, and having COG croauce t h e l e x i c a l analyzer* In a d d i t i o n , COG supoorts a genera t i z e d symbol t a b l e rnitnaacr f o r use u i t h i t s aun Lexicak tor, u i t h r o u t i n e s k h i c h may a l s o b e c a l l e d by a user who i s suoptying h i s cun l e x i c a l box,

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 7% of the total text.

Page 1 of 55

COG USER'S GUIDE

Marc Aronson and Deborah S. Laforce

Technical Report 81-8

October 1981

Department of Computer Science

State University of New York at Albany
Albany, N.Y. 1222%

COG was written by Marc Aronson in 1979. The COG User's Guide was written by Marc Aronson and revised by Deborah S. Laforce.

Reserach supported in part by NSF Grant No. MCS 78-03157

f

[This page contains 1 picture or other non-text object]

Page 2 of 55

COG

ABSTRACT

COG, Compiler o f Grammars, i s a cor~piter-compifer u h i c h runs o n

L t h e LrNlVAC 7lC14. I t k i l l take as i n p u t an a t t r i b u t e d LL(1)

grammar s i t h embedded a c t i o n r o u t i n e c a l l s and output a p a r s e r f o r the Canquage d e f i r e d by t b e grammar. The user has t h e o p t i o n o f v r i t i n g a l e x i c a l anatyzet which vay t:e e a s i l y i n t e r f a c e d w i t h t h e COG syntax a n a l y z e r , cr adainc L e x i c a l i n f o r m a t i o n t o t h e grammar, and having COG croauce t h e l e x i c a l analyzer* In a d d i t i o n , COG

supoorts a genera t i z e d symbol t a b l e rnitnaacr f o r use u i t h i t s aun Lexicak tor, u i t h r o u t i n e s k h i c h may a l s o b e c a l l e d by a user who i s suoptying h i s cun l e x i c a l box,

[This page contains 1 picture or other non-text object]

Page 3 of 55

COG

1. Introcuct ion

2. U s i n g CCG
2.1. U s e r Surptied L e x i c a t 6ax

2 C O G ' S LewicaC 80%
2.2.1. No L e x i c a l Box

- t e s t grarnmar f o r L L ( ? l

3. D E F I N E statements
3.1. TOKEN S C U R C E

- I n t e r f a c i n g L.exica1 Boxes
3.7.1. D E F I h E T O K E N SOURCE AS PROCEDURE pname

3.1.2. DEFINE TOKEN SOURCE A5 M A I A PROGRAM

3.1.3. DEFIkE T O K E V SOURCE A S FILt 'fname'

3.2. INITIALIZATION ROUTTNE/TEPMfhATIOY ROUT IN€
3-30 LANGUAGE AS
3.40 CONSTAhT ATTRf B U T E
3.5. iYrAXKAMES AS 3 . 6 . TERPINACS A S S E S E R ~ E D k C R D S

3.70 RESERVED UORD LIST

4. Product ions
4.1. <NOR TERMINALS)
4.2. TERPINALS
4.2.1. I f user s u p p l i e s t e x i c a t box
4.2.2. I f using COG'S t e x i c a t box
4.3. CACTION R O U T i N E S 3
4.4. ? S E L E C T I O N ROUTIhES?
4.5. $ L E X I C A L TERMI&ALSZ

405.3 SIDENTS(I;TYPEI
4.502. S I k T G F S ( N )

4.5.3 SCSTRS 4 0 5 . 4 . BCRB

405.5. SEOFB

4.5.6. BANYB(1;TYPEl

4.6. (ATTRIBUTES]

5. I n t e r f a c i n g u s e r act i o n r o u t i n e s

6. Runtime tibrary
6.1. Output r o u t i n e s

6.1.1 w fLINIf(fP1AME) < s t r i n g>
6.102. FLSDf C ( I M B C E )
6.1.3* FLTERP(SW1ZCH)
6.2* Symbot t a b l e routSnes
602.1 w IDENT(SNAME,INDX> < s t r i n g , i n t e g e r>
6.2*2. IDINDX(SNAME,TYPE) C s t r i n g , i n t e g e r >

602.3. IDTYPE(II

6.2.4. IGPUTtINDEX,VAL) <integer ,inf eger,

4 Oct 81

- t

APPtNDIX I
Tab 1 e of con t erlt s

[This page contains 1 picture or other non-text object]

Page 4 of 55

4 O c t 8 1

COG APPENDIX I

Tab t e of contents

6.2.5. I D G E T ( I Y D E X )
6.3. Misc
6.3.1. OFT(LETTER1...