home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8712 / edif / 1 / edif.y.1 next >
Encoding:
Text File  |  1990-07-13  |  39.1 KB  |  2,501 lines

  1. %{
  2. /*
  3.  *    $Header: edif.y,v 1.18 87/12/07 19:59:49 roger Locked $
  4.  */
  5. /************************************************************************
  6.  *                                    *
  7.  *                edif.y                    *
  8.  *                                    *
  9.  *            EDIF 2.0.0 parser, Level 0            *
  10.  *                                    *
  11.  *    You are free to copy, distribute, use it, abuse it, make it    *
  12.  *    write bad tracks all over the disk ... or anything else.    *
  13.  *                                    *
  14.  *    Your friendly neighborhood Rogue Monster - roger@mips.com    *
  15.  *                                    *
  16.  ************************************************************************/
  17. #include <stdio.h>
  18. #include <ctype.h>
  19. /*
  20.  *    Local definitions.
  21.  */
  22. #define    IDENT_LENGTH        255
  23. #define    Malloc(s)        malloc(s)
  24. #define    Free(p)            free(p)
  25. #define    ABS(v)            ((v) < 0 ? -(v) : (v))
  26. #define    Getc(s)            getc(s)
  27. #define    Ungetc(c)        ungetc(c,Input);
  28. /*
  29.  *    External functions.
  30.  */
  31. extern char *malloc(),*strcpy();
  32. extern int atoi();
  33. extern free();
  34. %}
  35.  
  36. %union {
  37.   char *s;
  38. }
  39.  
  40. %token    <s>    IDENT
  41. %token    <s>    INT
  42. %token    <s>    KEYWORD
  43. %token    <s>    STR
  44.  
  45. %token        ANGLE
  46. %token        BEHAVIOR
  47. %token        CALCULATED
  48. %token        CAPACITANCE
  49. %token        CENTERCENTER
  50. %token        CENTERLEFT
  51. %token        CENTERRIGHT
  52. %token        CHARGE
  53. %token        CONDUCTANCE
  54. %token        CURRENT
  55. %token        DISTANCE
  56. %token        DOCUMENT
  57. %token        ENERGY
  58. %token        EXTEND
  59. %token        FLUX
  60. %token        FREQUENCY
  61. %token        GENERIC
  62. %token        GRAPHIC
  63. %token        INDUCTANCE
  64. %token        INOUT
  65. %token        INPUT
  66. %token        LOGICMODEL
  67. %token        LOWERCENTER
  68. %token        LOWERLEFT
  69. %token        LOWERRIGHT
  70. %token        MASKLAYOUT
  71. %token        MASS
  72. %token        MEASURED
  73. %token        MX
  74. %token        MXR90
  75. %token        MY
  76. %token        MYR90
  77. %token        NETLIST
  78. %token        OUTPUT
  79. %token        PCBLAYOUT
  80. %token        POWER
  81. %token        R0
  82. %token        R180
  83. %token        R270
  84. %token        R90
  85. %token        REQUIRED
  86. %token        RESISTANCE
  87. %token        RIPPER
  88. %token        ROUND
  89. %token        SCHEMATIC
  90. %token        STRANGER
  91. %token        SYMBOLIC
  92. %token        TEMPERATURE
  93. %token        TIE
  94. %token        TIME
  95. %token        TRUNCATE
  96. %token        UPPERCENTER
  97. %token        UPPERLEFT
  98. %token        UPPERRIGHT
  99. %token        VOLTAGE
  100.  
  101. %token        ACLOAD
  102. %token        AFTER
  103. %token        ANNOTATE
  104. %token        APPLY
  105. %token        ARC
  106. %token        ARRAY
  107. %token        ARRAYMACRO
  108. %token        ARRAYRELATEDINFO
  109. %token        ARRAYSITE
  110. %token        ATLEAST
  111. %token        ATMOST
  112. %token        AUTHOR
  113. %token        BASEARRAY
  114. %token        BECOMES
  115. %token        BETWEEN
  116. %token        BOOLEAN
  117. %token        BOOLEANDISPLAY
  118. %token        BOOLEANMAP
  119. %token        BORDERPATTERN
  120. %token        BORDERWIDTH
  121. %token        BOUNDINGBOX
  122. %token        CELL
  123. %token        CELLREF
  124. %token        CELLTYPE
  125. %token        CHANGE
  126. %token        CIRCLE
  127. %token        COLOR
  128. %token        COMMENT
  129. %token        COMMENTGRAPHICS
  130. %token        COMPOUND
  131. %token        CONNECTLOCATION
  132. %token        CONTENTS
  133. %token        CORNERTYPE
  134. %token        CRITICALITY
  135. %token        CURRENTMAP
  136. %token        CURVE
  137. %token        CYCLE
  138. %token        DATAORIGIN
  139. %token        DCFANINLOAD
  140. %token        DCFANOUTLOAD
  141. %token        DCMAXFANIN
  142. %token        DCMAXFANOUT
  143. %token        DELAY
  144. %token        DELTA
  145. %token        DERIVATION
  146. %token        DESIGN
  147. %token        DESIGNATOR
  148. %token        DIFFERENCE
  149. %token        DIRECTION
  150. %token        DISPLAY
  151. %token        DOMINATES
  152. %token        DOT
  153. %token        DURATION
  154. %token        E
  155. %token        EDIF
  156. %token        EDIFLEVEL
  157. %token        EDIFVERSION
  158. %token        ENCLOSUREDISTANCE
  159. %token        ENDTYPE
  160. %token        ENTRY
  161. %token        EVENT
  162. %token        EXACTLY
  163. %token        EXTERNAL
  164. %token        FABRICATE
  165. %token        FALSE
  166. %token        FIGURE
  167. %token        FIGUREAREA
  168. %token        FIGUREGROUP
  169. %token        FIGUREGROUPOBJECT
  170. %token        FIGUREGROUPOVERRIDE
  171. %token        FIGUREGROUPREF
  172. %token        FIGUREPERIMETER
  173. %token        FIGUREWIDTH
  174. %token        FILLPATTERN
  175. %token        FOLLOW
  176. %token        FORBIDDENEVENT
  177. %token        GLOBALPORTREF
  178. %token        GREATERTHAN
  179. %token        GRIDMAP
  180. %token        IGNORE
  181. %token        INCLUDEFIGUREGROUP
  182. %token        INITIAL
  183. %token        INSTANCE
  184. %token        INSTANCEBACKANNOTATE
  185. %token        INSTANCEGROUP
  186. %token        INSTANCEMAP
  187. %token        INSTANCEREF
  188. %token        INTEGER
  189. %token        INTEGERDISPLAY
  190. %token        INTERFACE
  191. %token        INTERFIGUREGROUPSPACING
  192. %token        INTERSECTION
  193. %token        INTRAFIGUREGROUPSPACING
  194. %token        INVERSE
  195. %token        ISOLATED
  196. %token        JOINED
  197. %token        JUSTIFY
  198. %token        KEYWORDDISPLAY
  199. %token        KEYWORDLEVEL
  200. %token        KEYWORDMAP
  201. %token        LESSTHAN
  202. %token        LIBRARY
  203. %token        LIBRARYREF
  204. %token        LISTOFNETS
  205. %token        LISTOFPORTS
  206. %token        LOADDELAY
  207. %token        LOGICASSIGN
  208. %token        LOGICINPUT
  209. %token        LOGICLIST
  210. %token        LOGICMAPINPUT
  211. %token        LOGICMAPOUTPUT
  212. %token        LOGICONEOF
  213. %token        LOGICOUTPUT
  214. %token        LOGICPORT
  215. %token        LOGICREF
  216. %token        LOGICVALUE
  217. %token        LOGICWAVEFORM
  218. %token        MAINTAIN
  219. %token        MATCH
  220. %token        MEMBER
  221. %token        MINOMAX
  222. %token        MINOMAXDISPLAY
  223. %token        MNM
  224. %token        MULTIPLEVALUESET
  225. %token        MUSTJOIN
  226. %token        NAME
  227. %token        NET
  228. %token        NETBACKANNOTATE
  229. %token        NETBUNDLE
  230. %token        NETDELAY
  231. %token        NETGROUP
  232. %token        NETMAP
  233. %token        NETREF
  234. %token        NOCHANGE
  235. %token        NONPERMUTABLE
  236. %token        NOTALLOWED
  237. %token        NOTCHSPACING
  238. %token        NUMBER
  239. %token        NUMBERDEFINITION
  240. %token        NUMBERDISPLAY
  241. %token        OFFPAGECONNECTOR
  242. %token        OFFSETEVENT
  243. %token        OPENSHAPE
  244. %token        ORIENTATION
  245. %token        ORIGIN
  246. %token        OVERHANGDISTANCE
  247. %token        OVERLAPDISTANCE
  248. %token        OVERSIZE
  249. %token        OWNER
  250. %token        PAGE
  251. %token        PAGESIZE
  252. %token        PARAMETER
  253. %token        PARAMETERASSIGN
  254. %token        PARAMETERDISPLAY
  255. %token        PATH
  256. %token        PATHDELAY
  257. %token        PATHWIDTH
  258. %token        PERMUTABLE
  259. %token        PHYSICALDESIGNRULE
  260. %token        PLUG
  261. %token        POINT
  262. %token        POINTDISPLAY
  263. %token        POINTLIST
  264. %token        POLYGON
  265. %token        PORT
  266. %token        PORTBACKANNOTATE
  267. %token        PORTBUNDLE
  268. %token        PORTDELAY
  269. %token        PORTGROUP
  270. %token        PORTIMPLEMENTATION
  271. %token        PORTINSTANCE
  272. %token        PORTLIST
  273. %token        PORTLISTALIAS
  274. %token        PORTMAP
  275. %token        PORTREF
  276. %token        PROGRAM
  277. %token        PROPERTY
  278. %token        PROPERTYDISPLAY
  279. %token        PROTECTIONFRAME
  280. %token        PT
  281. %token        RANGEVECTOR
  282. %token        RECTANGLE
  283. %token        RECTANGLESIZE
  284. %token        RENAME
  285. %token        RESOLVES
  286. %token        SCALE
  287. %token        SCALEX
  288. %token        SCALEY
  289. %token        SECTION
  290. %token        SHAPE
  291. %token        SIMULATE
  292. %token        SIMULATIONINFO
  293. %token        SINGLEVALUESET
  294. %token        SITE
  295. %token        SOCKET
  296. %token        SOCKETSET
  297. %token        STATUS
  298. %token        STEADY
  299. %token        STRING
  300. %token        STRINGDISPLAY
  301. %token        STRONG
  302. %token        SYMBOL
  303. %token        SYMMETRY
  304. %token        TABLE
  305. %token        TABLEDEFAULT
  306. %token        TECHNOLOGY
  307. %token        TEXTHEIGHT
  308. %token        TIMEINTERVAL
  309. %token        TIMESTAMP
  310. %token        TIMING
  311. %token        TRANSFORM
  312. %token        TRANSITION
  313. %token        TRIGGER
  314. %token        TRUE
  315. %token        UNCONSTRAINED
  316. %token        UNDEFINED
  317. %token        UNION
  318. %token        UNIT
  319. %token        UNUSED
  320. %token        USERDATA
  321. %token        VERSION
  322. %token        VIEW
  323. %token        VIEWLIST
  324. %token        VIEWMAP
  325. %token        VIEWREF
  326. %token        VIEWTYPE
  327. %token        VISIBLE
  328. %token        VOLTAGEMAP
  329. %token        WAVEVALUE
  330. %token        WEAK
  331. %token        WEAKJOINED
  332. %token        WHEN
  333. %token        WRITTEN
  334.  
  335. %start    Edif
  336.  
  337. %%
  338.  
  339. PopC :        ')' { PopC(); }
  340.      ;
  341.  
  342. Edif :        EDIF EdifFileName EdifVersion EdifLevel KeywordMap _Edif PopC
  343.      ;
  344.  
  345. _Edif :
  346.       |        _Edif Status
  347.       |        _Edif External
  348.       |        _Edif Library
  349.       |        _Edif Design
  350.       |        _Edif Comment
  351.       |        _Edif UserData
  352.       ;
  353.  
  354. EdifFileName :    NameDef
  355.          ;
  356.  
  357. EdifLevel :    EDIFLEVEL Int PopC
  358.       ;
  359.  
  360. EdifVersion :    EDIFVERSION Int Int Int PopC
  361.         ;
  362.  
  363. AcLoad :    ACLOAD _AcLoad PopC
  364.        ;
  365.  
  366. _AcLoad :    MiNoMaValue
  367.     |    MiNoMaDisp
  368.     ;
  369.  
  370. After :        AFTER _After PopC
  371.       ;
  372.  
  373. _After :    MiNoMaValue
  374.        |    _After Follow
  375.        |    _After Maintain
  376.        |    _After LogicAssn
  377.        |    _After Comment
  378.        |    _After UserData
  379.        ;
  380.  
  381. Annotate :    ANNOTATE _Annotate PopC
  382.      ;
  383.  
  384. _Annotate :    Str
  385.       |    StrDisplay
  386.       ;
  387.  
  388. Apply :        APPLY _Apply PopC
  389.       ;
  390.  
  391. _Apply :    Cycle
  392.        |    _Apply LogicIn
  393.        |    _Apply LogicOut
  394.        |    _Apply Comment
  395.        |    _Apply UserData
  396.        ;
  397.  
  398. Arc :        ARC PointValue PointValue PointValue PopC
  399.     ;
  400.  
  401. Array :        ARRAY NameDef Int _Array PopC
  402.       ;
  403.  
  404. _Array :
  405.        |    Int
  406.        ;
  407.  
  408. ArrayMacro :    ARRAYMACRO Plug PopC
  409.        ;
  410.  
  411. ArrayRelInfo :    ARRAYRELATEDINFO _ArrayRelInfo PopC
  412.          ;
  413.  
  414. _ArrayRelInfo :    BaseArray
  415.           |    ArraySite
  416.           |    ArrayMacro
  417.           |    _ArrayRelInfo Comment
  418.           |    _ArrayRelInfo UserData
  419.           ;
  420.  
  421. ArraySite :    ARRAYSITE Socket PopC
  422.       ;
  423.  
  424. AtLeast :    ATLEAST ScaledInt PopC
  425.     ;
  426.  
  427. AtMost :    ATMOST ScaledInt PopC
  428.        ;
  429.  
  430. Author :    AUTHOR Str PopC
  431.        ;
  432.  
  433. BaseArray :    BASEARRAY PopC
  434.       ;
  435.  
  436. Becomes :    BECOMES _Becomes PopC
  437.     ;
  438.  
  439. _Becomes :    LogicNameRef
  440.      |    LogicList
  441.      |    LogicOneOf
  442.      ;
  443.  
  444. Between :    BETWEEN __Between _Between PopC
  445.     ;
  446.  
  447. __Between :    AtLeast
  448.       |    GreaterThan
  449.       ;
  450.  
  451. _Between :    AtMost
  452.      |    LessThan
  453.      ;
  454.  
  455. Boolean :    BOOLEAN _Boolean PopC
  456.     ;
  457.  
  458. _Boolean :
  459.      |    _Boolean BooleanValue
  460.      |    _Boolean BooleanDisp
  461.      |    _Boolean Boolean
  462.      ;
  463.  
  464. BooleanDisp :    BOOLEANDISPLAY _BooleanDisp PopC
  465.         ;
  466.  
  467. _BooleanDisp :    BooleanValue
  468.          |    _BooleanDisp Display
  469.          ;
  470.  
  471. BooleanMap :    BOOLEANMAP BooleanValue PopC
  472.        ;
  473.  
  474. BooleanValue :    True
  475.          |    False
  476.          ;
  477.  
  478. BorderPat :    BORDERPATTERN Int Int Boolean PopC
  479.       ;
  480.  
  481. BorderWidth :    BORDERWIDTH Int PopC
  482.         ;
  483.  
  484. BoundBox :    BOUNDINGBOX Rectangle PopC
  485.      ;
  486.  
  487. Cell :        CELL CellNameDef _Cell PopC
  488.      ;
  489.  
  490. _Cell :        CellType
  491.       |        _Cell Status
  492.       |        _Cell ViewMap
  493.       |        _Cell View
  494.       |        _Cell Comment
  495.       |        _Cell UserData
  496.       |        _Cell Property
  497.       ;
  498.  
  499. CellNameDef :    NameDef
  500.         ;
  501.  
  502. CellRef :    CELLREF CellNameRef _CellRef PopC
  503.     ;
  504.  
  505. _CellRef :
  506.      |    LibraryRef
  507.      ;
  508.  
  509. CellNameRef :    NameRef
  510.         ;
  511.  
  512. CellType :    CELLTYPE _CellType PopC
  513.      ;
  514.  
  515. _CellType :    TIE
  516.       |    RIPPER
  517.       |    GENERIC
  518.       ;
  519.  
  520. Change :    CHANGE __Change _Change PopC
  521.        ;
  522.  
  523. __Change :    PortNameRef
  524.      |    PortRef
  525.      |    PortList
  526.      ;
  527.  
  528. _Change :
  529.     |    Becomes
  530.     |    Transition
  531.     ;
  532.  
  533. Circle :    CIRCLE PointValue PointValue _Circle PopC
  534.        ;
  535.  
  536. _Circle :
  537.     |    _Circle Property
  538.     ;
  539.  
  540. Color :        COLOR ScaledInt ScaledInt ScaledInt PopC
  541.       ;
  542.  
  543. Comment :    COMMENT _Comment PopC
  544.     ;
  545.  
  546. _Comment :
  547.      |    _Comment Str
  548.      ;
  549.  
  550. CommGraph :    COMMENTGRAPHICS _CommGraph PopC
  551.           ;
  552.  
  553. _CommGraph :
  554.        |    _CommGraph Annotate
  555.        |    _CommGraph Figure
  556.        |    _CommGraph Instance
  557.        |    _CommGraph BoundBox
  558.        |    _CommGraph Property
  559.        |    _CommGraph Comment
  560.        |    _CommGraph UserData
  561.        ;
  562.  
  563. Compound :    COMPOUND LogicNameRef PopC
  564.      ;
  565.  
  566. Contents :    CONTENTS _Contents PopC
  567.      ;
  568.  
  569. _Contents :
  570.       |    _Contents Instance
  571.       |    _Contents OffPageConn
  572.       |    _Contents Figure
  573.       |    _Contents Section
  574.       |    _Contents Net
  575.       |    _Contents NetBundle
  576.       |    _Contents Page
  577.       |    _Contents CommGraph
  578.       |    _Contents PortImpl
  579.       |    _Contents Timing
  580.       |    _Contents Simulate
  581.       |    _Contents When
  582.       |    _Contents Follow
  583.       |    _Contents LogicPort
  584.       |    _Contents BoundBox
  585.       |    _Contents Comment
  586.       |    _Contents UserData
  587.       ;
  588.  
  589. ConnectLoc :    CONNECTLOCATION _ConnectLoc PopC
  590.        ;
  591.  
  592. _ConnectLoc :
  593.         |    Figure
  594.         ;
  595.  
  596. CornerType :    CORNERTYPE _CornerType PopC
  597.        ;
  598.  
  599. _CornerType :    EXTEND
  600.         |    ROUND
  601.         |    TRUNCATE
  602.         ;
  603.  
  604. Criticality :    CRITICALITY _Criticality PopC
  605.         ;
  606.  
  607. _Criticality :    Int
  608.          |    IntDisplay
  609.          ;
  610.  
  611. CurrentMap :    CURRENTMAP MiNoMaValue PopC
  612.        ;
  613.  
  614. Curve :        CURVE _Curve PopC
  615.       ;
  616.  
  617. _Curve :
  618.        |    _Curve Arc
  619.        |    _Curve PointValue
  620.        ;
  621.  
  622. Cycle :        CYCLE Int _Cycle PopC
  623.       ;
  624.  
  625. _Cycle :
  626.        |    Duration
  627.        ;
  628.  
  629. DataOrigin :    DATAORIGIN Str _DataOrigin PopC
  630.        ;
  631.  
  632. _DataOrigin :
  633.         |    Version
  634.         ;
  635.  
  636. DcFanInLoad :    DCFANINLOAD _DcFanInLoad PopC
  637.         ;
  638.  
  639. _DcFanInLoad :    ScaledInt
  640.          |    NumbDisplay
  641.          ;
  642.  
  643. DcFanOutLoad :    DCFANOUTLOAD _DcFanOutLoad PopC
  644.          ;
  645.  
  646. _DcFanOutLoad :    ScaledInt
  647.           |    NumbDisplay
  648.           ;
  649.  
  650. DcMaxFanIn :    DCMAXFANIN _DcMaxFanIn PopC
  651.        ;
  652.  
  653. _DcMaxFanIn :    ScaledInt
  654.         |    NumbDisplay
  655.         ;
  656.  
  657. DcMaxFanOut :    DCMAXFANOUT _DcMaxFanOut PopC
  658.         ;
  659.  
  660. _DcMaxFanOut :    ScaledInt
  661.          |    NumbDisplay
  662.          ;
  663.  
  664. Delay :        DELAY _Delay PopC
  665.       ;
  666.  
  667. _Delay :    MiNoMaValue
  668.        |    MiNoMaDisp
  669.        ;
  670.  
  671. Delta :        DELTA _Delta PopC
  672.       ;
  673.  
  674. _Delta :
  675.        |    _Delta PointValue
  676.        ;
  677.  
  678. Derivation :    DERIVATION _Derivation PopC
  679.        ;
  680.  
  681. _Derivation :    CALCULATED
  682.         |    MEASURED
  683.         |    REQUIRED
  684.         ;
  685.  
  686. Design :    DESIGN DesignNameDef _Design PopC
  687.        ;
  688.  
  689. _Design :    CellRef
  690.     |    _Design Status
  691.     |    _Design Comment
  692.     |    _Design Property
  693.     |    _Design UserData
  694.     ;
  695.  
  696. Designator :    DESIGNATOR _Designator PopC
  697.        ;
  698.  
  699. _Designator :    Str
  700.         |    StrDisplay
  701.         ;
  702.  
  703. DesignNameDef :    NameDef
  704.           ;
  705.  
  706. DesignRule :    PHYSICALDESIGNRULE _DesignRule PopC
  707.        ;
  708.  
  709. _DesignRule :
  710.         |    _DesignRule FigureWidth
  711.         |    _DesignRule FigureArea
  712.         |    _DesignRule RectSize
  713.         |    _DesignRule FigurePerim
  714.         |    _DesignRule OverlapDist
  715.         |    _DesignRule OverhngDist
  716.         |    _DesignRule EncloseDist
  717.         |    _DesignRule InterFigGrp
  718.         |    _DesignRule IntraFigGrp
  719.         |    _DesignRule NotchSpace
  720.         |    _DesignRule NotAllowed
  721.         |    _DesignRule FigGrp
  722.         |    _DesignRule Comment
  723.         |    _DesignRule UserData
  724.         ;
  725.  
  726. Difference :    DIFFERENCE _Difference PopC
  727.        ;
  728.  
  729. _Difference :    FigGrpRef
  730.         |    FigureOp
  731.         |    _Difference FigGrpRef
  732.         |    _Difference FigureOp
  733.         ;
  734.  
  735. Direction :    DIRECTION _Direction PopC
  736.       ;
  737.  
  738. _Direction :    INOUT
  739.        |    INPUT
  740.        |    OUTPUT
  741.        ;
  742.  
  743. Display :    DISPLAY _Display _DisplayJust _DisplayOrien _DisplayOrg PopC
  744.     ;
  745.  
  746. _Display :    FigGrpNameRef
  747.      |    FigGrpOver
  748.      ;
  749.  
  750. _DisplayJust :
  751.          |    Justify
  752.          ;
  753.  
  754. _DisplayOrien :
  755.           |    Orientation
  756.           ;
  757.  
  758. _DisplayOrg :
  759.         |    Origin
  760.         ;
  761.  
  762. Dominates :    DOMINATES _Dominates PopC
  763.       ;
  764.  
  765. _Dominates :
  766.        |    _Dominates LogicNameRef
  767.        ;
  768.  
  769. Dot :        DOT _Dot PopC
  770.     ;
  771.  
  772. _Dot :        PointValue
  773.      |        _Dot Property
  774.      ;
  775.  
  776. Duration :    DURATION ScaledInt PopC
  777.      ;
  778.  
  779. EncloseDist :    ENCLOSUREDISTANCE RuleNameDef FigGrpObj FigGrpObj _EncloseDist
  780.         PopC
  781.         ;
  782.  
  783. _EncloseDist :    Range
  784.          |    SingleValSet
  785.          |    _EncloseDist Comment
  786.          |    _EncloseDist UserData
  787.          ;
  788.  
  789. EndType :    ENDTYPE _EndType PopC
  790.     ;
  791.  
  792. _EndType :    EXTEND
  793.      |    ROUND
  794.      |    TRUNCATE
  795.      ;
  796.  
  797. Entry :        ENTRY ___Entry __Entry _Entry
  798.         PopC
  799.       ;
  800.  
  801. ___Entry :    Match
  802.      |    Change
  803.      |    Steady
  804.      ;
  805.  
  806. __Entry :    LogicRef
  807.     |    PortRef
  808.     |    NoChange
  809.     |    Table
  810.     ;
  811.  
  812. _Entry :
  813.        |    Delay
  814.        |    LoadDelay
  815.        ;
  816.  
  817. Event :        EVENT _Event PopC
  818.       ;
  819.  
  820. _Event :    PortRef
  821.        |    PortList
  822.        |    PortGroup
  823.        |    NetRef
  824.        |    NetGroup
  825.        |    _Event Transition
  826.        |    _Event Becomes
  827.        ;
  828.  
  829. Exactly :    EXACTLY ScaledInt PopC
  830.     ;
  831.  
  832. External :    EXTERNAL LibNameDef EdifLevel _External PopC
  833.      ;
  834.  
  835. _External :    Technology
  836.       |    _External Status
  837.       |    _External Cell
  838.       |    _External Comment
  839.       |    _External UserData
  840.       ;
  841.  
  842. Fabricate :    FABRICATE LayerNameDef FigGrpNameRef PopC
  843.       ;
  844.  
  845. False :        FALSE PopC
  846.       ;
  847.  
  848. FigGrp :    FIGUREGROUP _FigGrp PopC
  849.        ;
  850.  
  851. _FigGrp :    FigGrpNameDef
  852.     |    _FigGrp CornerType
  853.     |    _FigGrp EndType
  854.     |    _FigGrp PathWidth
  855.     |    _FigGrp BorderWidth
  856.     |    _FigGrp Color
  857.     |    _FigGrp FillPattern
  858.     |    _FigGrp BorderPat
  859.     |    _FigGrp TextHeight
  860.     |    _FigGrp Visible
  861.     |    _FigGrp Comment
  862.     |    _FigGrp Property
  863.     |    _FigGrp UserData
  864.     |    _FigGrp IncFigGrp
  865.     ;
  866.  
  867. FigGrpNameDef :    NameDef
  868.           ;
  869.  
  870. FigGrpNameRef :    NameRef
  871.           ;
  872.  
  873. FigGrpObj :    FIGUREGROUPOBJECT _FigGrpObj PopC
  874.       ;
  875.  
  876. _FigGrpObj :    FigGrpNameRef
  877.        |    FigGrpRef
  878.        |    FigureOp
  879.        ;
  880.  
  881. FigGrpOver :    FIGUREGROUPOVERRIDE _FigGrpOver PopC
  882.        ;
  883.  
  884. _FigGrpOver :    FigGrpNameRef
  885.         |    _FigGrpOver CornerType
  886.         |    _FigGrpOver EndType
  887.         |    _FigGrpOver PathWidth
  888.         |    _FigGrpOver BorderWidth
  889.         |    _FigGrpOver Color
  890.         |    _FigGrpOver FillPattern
  891.         |    _FigGrpOver BorderPat
  892.         |    _FigGrpOver TextHeight
  893.         |    _FigGrpOver Visible
  894.         |    _FigGrpOver Comment
  895.         |    _FigGrpOver Property
  896.         |    _FigGrpOver UserData
  897.         ;
  898.  
  899. FigGrpRef :    FIGUREGROUPREF FigGrpNameRef _FigGrpRef PopC
  900.       ;
  901.  
  902. _FigGrpRef :
  903.        |    LibraryRef
  904.        ;
  905.  
  906. Figure :    FIGURE _Figure PopC
  907.        ;
  908.  
  909. _Figure :    FigGrpNameDef
  910.     |    FigGrpOver
  911.     |    _Figure Circle
  912.     |    _Figure Dot
  913.     |    _Figure OpenShape
  914.     |    _Figure Path
  915.     |    _Figure Polygon
  916.     |    _Figure Rectangle
  917.     |    _Figure Shape
  918.     |    _Figure Comment
  919.     |    _Figure UserData
  920.     ;
  921.  
  922. FigureArea :    FIGUREAREA RuleNameDef FigGrpObj _FigureArea PopC
  923.        ;
  924.  
  925. _FigureArea :    Range
  926.         |    SingleValSet
  927.         |    _FigureArea Comment
  928.         |    _FigureArea UserData
  929.         ;
  930.  
  931. FigureOp :    Intersection
  932.      |    Union
  933.      |    Difference
  934.      |    Inverse
  935.      |    Oversize
  936.      ;
  937.  
  938. FigurePerim :    FIGUREPERIMETER RuleNameDef FigGrpObj _FigurePerim PopC
  939.         ;
  940.  
  941. _FigurePerim :    Range
  942.          |    SingleValSet
  943.          |    _FigurePerim Comment
  944.          |    _FigurePerim UserData
  945.          ;
  946.  
  947. FigureWidth :    FIGUREWIDTH RuleNameDef FigGrpObj _FigureWidth PopC
  948.         ;
  949.  
  950. _FigureWidth :    Range
  951.          |    SingleValSet
  952.          |    _FigureWidth Comment
  953.          |    _FigureWidth UserData
  954.          ;
  955.  
  956. FillPattern :    FILLPATTERN Int Int Boolean PopC
  957.         ;
  958.  
  959. Follow :    FOLLOW __Follow _Follow PopC
  960.        ;
  961.  
  962. __Follow :    PortNameRef
  963.      |    PortRef
  964.      ;
  965.  
  966. _Follow :    PortRef
  967.     |    Table
  968.     |    _Follow Delay
  969.     |    _Follow LoadDelay
  970.     ;
  971.  
  972. Forbidden :    FORBIDDENEVENT _Forbidden PopC
  973.       ;
  974.  
  975. _Forbidden :    TimeIntval
  976.        |    _Forbidden Event
  977.        ;
  978.  
  979. Form :        Keyword _Form ')'
  980.      ;
  981.  
  982. _Form :
  983.       |        _Form Int
  984.       |        _Form Str
  985.       |        _Form Ident
  986.       |        _Form Form
  987.       ;
  988.  
  989. GlobPortRef :    GLOBALPORTREF PortNameRef PopC
  990.         ;
  991.  
  992. GreaterThan :    GREATERTHAN ScaledInt PopC
  993.         ;
  994.  
  995. GridMap :    GRIDMAP ScaledInt ScaledInt PopC
  996.     ;
  997.  
  998. Ignore :    IGNORE PopC
  999.        ;
  1000.  
  1001. IncFigGrp :    INCLUDEFIGUREGROUP _IncFigGrp PopC
  1002.       ;
  1003.  
  1004. _IncFigGrp :    FigGrpRef
  1005.        |    FigureOp
  1006.        ;
  1007.  
  1008. Initial :    INITIAL PopC
  1009.     ;
  1010.  
  1011. Instance :    INSTANCE InstNameDef _Instance PopC
  1012.      ;
  1013.  
  1014. _Instance :    ViewRef
  1015.       |    ViewList
  1016.       |    _Instance Transform
  1017.       |    _Instance ParamAssign
  1018.       |    _Instance PortInst
  1019.       |    _Instance Timing
  1020.       |    _Instance Designator
  1021.       |    _Instance Property
  1022.       |    _Instance Comment
  1023.       |    _Instance UserData
  1024.       ;
  1025.  
  1026. InstanceRef :    INSTANCEREF InstNameRef _InstanceRef PopC
  1027.         ;
  1028.  
  1029. _InstanceRef :
  1030.          |    InstanceRef
  1031.          |    ViewRef
  1032.          ;
  1033.  
  1034. InstBackAn :    INSTANCEBACKANNOTATE _InstBackAn PopC
  1035.        ;
  1036.  
  1037. _InstBackAn :    InstanceRef
  1038.         |    _InstBackAn Designator
  1039.         |    _InstBackAn Timing
  1040.         |    _InstBackAn Property
  1041.         |    _InstBackAn Comment
  1042.         ;
  1043.  
  1044. InstGroup :    INSTANCEGROUP _InstGroup PopC
  1045.       ;
  1046.  
  1047. _InstGroup :
  1048.        |    _InstGroup InstanceRef
  1049.        ;
  1050.  
  1051. InstMap :    INSTANCEMAP _InstMap PopC
  1052.     ;
  1053.  
  1054. _InstMap :
  1055.      |    _InstMap InstanceRef
  1056.      |    _InstMap InstGroup
  1057.      |    _InstMap Comment
  1058.      |    _InstMap UserData
  1059.      ;
  1060.  
  1061. InstNameDef :    NameDef
  1062.         |    Array
  1063.         ;
  1064.  
  1065. InstNameRef :    NameRef
  1066.         |    Member
  1067.         ;
  1068.  
  1069. IntDisplay :    INTEGERDISPLAY _IntDisplay PopC
  1070.        ;
  1071.  
  1072. _IntDisplay :    Int
  1073.         |    _IntDisplay Display
  1074.         ;
  1075.  
  1076. Integer :    INTEGER _Integer PopC
  1077.     ;
  1078.  
  1079. _Integer :
  1080.      |    _Integer Int
  1081.      |    _Integer IntDisplay
  1082.      |    _Integer Integer
  1083.      ;
  1084.  
  1085. Interface :    INTERFACE _Interface PopC
  1086.       ;
  1087.  
  1088. _Interface :
  1089.        |    _Interface Port
  1090.        |    _Interface PortBundle
  1091.        |    _Interface Symbol
  1092.        |    _Interface ProtectFrame
  1093.        |    _Interface ArrayRelInfo
  1094.        |    _Interface Parameter
  1095.        |    _Interface Joined
  1096.        |    _Interface MustJoin
  1097.        |    _Interface WeakJoined
  1098.        |    _Interface Permutable
  1099.        |    _Interface Timing
  1100.        |    _Interface Simulate
  1101.        |    _Interface Designator
  1102.        |    _Interface Property
  1103.        |    _Interface Comment
  1104.        |    _Interface UserData
  1105.        ;
  1106.  
  1107. InterFigGrp :    INTERFIGUREGROUPSPACING RuleNameDef FigGrpObj FigGrpObj
  1108.         _InterFigGrp PopC
  1109.         ;
  1110.  
  1111. _InterFigGrp :    Range
  1112.          |    SingleValSet
  1113.          |    _InterFigGrp Comment
  1114.          |    _InterFigGrp UserData
  1115.          ;
  1116.  
  1117. Intersection :    INTERSECTION _Intersection PopC
  1118.          ;
  1119.  
  1120. _Intersection :    FigGrpRef
  1121.           |    FigureOp
  1122.           |    _Intersection FigGrpRef
  1123.           |    _Intersection FigureOp
  1124.           ;
  1125.  
  1126. IntraFigGrp :    INTRAFIGUREGROUPSPACING RuleNameDef FigGrpObj _IntraFigGrp PopC
  1127.         ;
  1128.  
  1129. _IntraFigGrp :    Range
  1130.          |    SingleValSet
  1131.          |    _IntraFigGrp Comment
  1132.          |    _IntraFigGrp UserData
  1133.          ;
  1134.  
  1135. Inverse :    INVERSE _Inverse PopC
  1136.     ;
  1137.  
  1138. _Inverse :    FigGrpRef
  1139.      |    FigureOp
  1140.      ;
  1141.  
  1142. Isolated :    ISOLATED PopC
  1143.      ;
  1144.  
  1145. Joined :    JOINED _Joined PopC
  1146.        ;
  1147.  
  1148. _Joined :
  1149.     |    _Joined PortRef
  1150.     |    _Joined PortList
  1151.     |    _Joined GlobPortRef
  1152.     ;
  1153.  
  1154. Justify :    JUSTIFY _Justify PopC
  1155.     ;
  1156.  
  1157. _Justify :    CENTERCENTER
  1158.      |    CENTERLEFT
  1159.      |    CENTERRIGHT
  1160.      |    LOWERCENTER
  1161.      |    LOWERLEFT
  1162.      |    LOWERRIGHT
  1163.      |    UPPERCENTER
  1164.      |    UPPERLEFT
  1165.      |    UPPERRIGHT
  1166.      ;
  1167.  
  1168. KeywordDisp :    KEYWORDDISPLAY _KeywordDisp PopC
  1169.         ;
  1170.  
  1171. _KeywordDisp :    KeywordName
  1172.          |    _KeywordDisp Display
  1173.          ;
  1174.  
  1175. KeywordLevel :    KEYWORDLEVEL Int PopC
  1176.          ;
  1177.  
  1178. KeywordMap :    KEYWORDMAP _KeywordMap PopC
  1179.        ;
  1180.  
  1181. _KeywordMap :    KeywordLevel
  1182.         |    _KeywordMap Comment
  1183.         ;
  1184.  
  1185. KeywordName :    Ident
  1186.         ;
  1187.  
  1188. LayerNameDef :    NameDef
  1189.          ;
  1190.  
  1191. LessThan :    LESSTHAN ScaledInt PopC
  1192.      ;
  1193.  
  1194. LibNameDef :    NameDef
  1195.        ;
  1196.  
  1197. LibNameRef :    NameRef
  1198.        ;
  1199.  
  1200. Library :    LIBRARY LibNameDef EdifLevel _Library PopC
  1201.     ;
  1202.  
  1203. _Library :    Technology
  1204.      |    _Library Status
  1205.      |    _Library Cell
  1206.      |    _Library Comment
  1207.      |    _Library UserData
  1208.      ;
  1209.  
  1210. LibraryRef :    LIBRARYREF LibNameRef PopC
  1211.        ;
  1212.  
  1213. ListOfNets :    LISTOFNETS _ListOfNets PopC
  1214.        ;
  1215.  
  1216. _ListOfNets :
  1217.         |    _ListOfNets Net
  1218.         ;
  1219.  
  1220. ListOfPorts :    LISTOFPORTS _ListOfPorts PopC
  1221.         ;
  1222.  
  1223. _ListOfPorts :
  1224.          |    _ListOfPorts Port
  1225.          |    _ListOfPorts PortBundle
  1226.          ;
  1227.  
  1228. LoadDelay :    LOADDELAY _LoadDelay _LoadDelay PopC
  1229.       ;
  1230.  
  1231. _LoadDelay :    MiNoMaValue
  1232.        |    MiNoMaDisp
  1233.        ;
  1234.  
  1235. LogicAssn :    LOGICASSIGN ___LogicAssn __LogicAssn _LogicAssn PopC
  1236.       ;
  1237.  
  1238. ___LogicAssn :    PortNameRef
  1239.          |    PortRef
  1240.          ;
  1241.  
  1242. __LogicAssn :    PortRef
  1243.         |    LogicRef
  1244.         |    Table
  1245.         ;
  1246.  
  1247. _LogicAssn :
  1248.        |    Delay
  1249.        |    LoadDelay
  1250.        ;
  1251.  
  1252. LogicIn :    LOGICINPUT _LogicIn PopC
  1253.     ;
  1254.  
  1255. _LogicIn :    PortList
  1256.      |    PortRef
  1257.      |    PortNameRef
  1258.      |    _LogicIn LogicWave
  1259.      ;
  1260.  
  1261. LogicList :    LOGICLIST _LogicList PopC
  1262.       ;
  1263.  
  1264. _LogicList :
  1265.        |    _LogicList LogicNameRef
  1266.        |    _LogicList LogicOneOf
  1267.        |    _LogicList Ignore
  1268.        ;
  1269.  
  1270. LogicMapIn :    LOGICMAPINPUT _LogicMapIn PopC
  1271.        ;
  1272.  
  1273. _LogicMapIn :
  1274.         |    _LogicMapIn LogicNameRef
  1275.         ;
  1276.  
  1277. LogicMapOut :    LOGICMAPOUTPUT _LogicMapOut PopC
  1278.         ;
  1279.  
  1280. _LogicMapOut :
  1281.          |    _LogicMapOut LogicNameRef
  1282.          ;
  1283.  
  1284. LogicNameDef :    NameDef
  1285.          ;
  1286.  
  1287. LogicNameRef :    NameRef
  1288.          ;
  1289.  
  1290. LogicOneOf :    LOGICONEOF _LogicOneOf PopC
  1291.        ;
  1292.  
  1293. _LogicOneOf :
  1294.         |    _LogicOneOf LogicNameRef
  1295.         |    _LogicOneOf LogicList
  1296.         ;
  1297.  
  1298. LogicOut :    LOGICOUTPUT _LogicOut PopC
  1299.      ;
  1300.  
  1301. _LogicOut :    PortList
  1302.       |    PortRef
  1303.       |    PortNameRef
  1304.       |    _LogicOut LogicWave
  1305.       ;
  1306.  
  1307. LogicPort :    LOGICPORT _LogicPort PopC
  1308.       ;
  1309.  
  1310. _LogicPort :    PortNameDef
  1311.        |    _LogicPort Property
  1312.        |    _LogicPort Comment
  1313.        |    _LogicPort UserData
  1314.        ;
  1315.  
  1316. LogicRef :    LOGICREF LogicNameRef _LogicRef PopC
  1317.      ;
  1318.  
  1319. _LogicRef :
  1320.       |    LibraryRef
  1321.       ;
  1322.  
  1323. LogicValue :    LOGICVALUE _LogicValue PopC
  1324.        ;
  1325.  
  1326. _LogicValue :    LogicNameDef
  1327.         |    _LogicValue VoltageMap
  1328.         |    _LogicValue CurrentMap
  1329.         |    _LogicValue BooleanMap
  1330.         |    _LogicValue Compound
  1331.         |    _LogicValue Weak
  1332.         |    _LogicValue Strong
  1333.         |    _LogicValue Dominates
  1334.         |    _LogicValue LogicMapOut
  1335.         |    _LogicValue LogicMapIn
  1336.         |    _LogicValue Isolated
  1337.         |    _LogicValue Resolves
  1338.         |    _LogicValue Property
  1339.         |    _LogicValue Comment
  1340.         |    _LogicValue UserData
  1341.         ;
  1342.  
  1343. LogicWave :    LOGICWAVEFORM _LogicWave PopC
  1344.       ;
  1345.  
  1346. _LogicWave :
  1347.        |    _LogicWave LogicNameRef
  1348.        |    _LogicWave LogicList
  1349.        |    _LogicWave LogicOneOf
  1350.        |    _LogicWave Ignore
  1351.        ;
  1352.  
  1353. Maintain :    MAINTAIN __Maintain _Maintain PopC
  1354.      ;
  1355.  
  1356. __Maintain :    PortNameRef
  1357.        |    PortRef
  1358.        ;
  1359.  
  1360. _Maintain :
  1361.       |    Delay
  1362.       |    LoadDelay
  1363.       ;
  1364.  
  1365. Match :        MATCH __Match _Match PopC
  1366.       ;
  1367.  
  1368. __Match :    PortNameRef
  1369.     |    PortRef
  1370.     |    PortList
  1371.     ;
  1372.  
  1373. _Match :    LogicNameRef
  1374.        |    LogicList
  1375.        |    LogicOneOf
  1376.        ;
  1377.  
  1378. Member :    MEMBER NameRef _Member PopC
  1379.        ;
  1380.  
  1381. _Member :    Int
  1382.     |    _Member Int
  1383.     ;
  1384.  
  1385. MiNoMa :    MINOMAX _MiNoMa PopC
  1386.        ;
  1387.  
  1388. _MiNoMa :
  1389.     |    _MiNoMa MiNoMaValue
  1390.     |    _MiNoMa MiNoMaDisp
  1391.     |    _MiNoMa MiNoMa
  1392.     ;
  1393.  
  1394. MiNoMaDisp :    MINOMAXDISPLAY _MiNoMaDisp PopC
  1395.        ;
  1396.  
  1397. _MiNoMaDisp :    MiNoMaValue
  1398.         |    _MiNoMaDisp Display
  1399.         ;
  1400.  
  1401. MiNoMaValue :    Mnm
  1402.         |    ScaledInt
  1403.         ;
  1404.  
  1405. Mnm :        MNM _Mnm _Mnm _Mnm PopC
  1406.     ;
  1407.  
  1408. _Mnm :        ScaledInt
  1409.      |        Undefined
  1410.      |        Unconstrained
  1411.      ;
  1412.  
  1413. MultValSet :    MULTIPLEVALUESET _MultValSet PopC
  1414.        ;
  1415.  
  1416. _MultValSet :
  1417.         |    _MultValSet RangeVector
  1418.         ;
  1419.  
  1420. MustJoin :    MUSTJOIN _MustJoin PopC
  1421.      ;
  1422.  
  1423. _MustJoin :
  1424.       |    _MustJoin PortRef
  1425.       |    _MustJoin PortList
  1426.       |    _MustJoin WeakJoined
  1427.       |    _MustJoin Joined
  1428.       ;
  1429.  
  1430. Name :        NAME _Name PopC
  1431.      ;
  1432.  
  1433. _Name :        Ident
  1434.       |        _Name Display
  1435.       ;
  1436.  
  1437. NameDef :    Ident
  1438.     |    Name
  1439.     |    Rename
  1440.     ;
  1441.  
  1442. NameRef :    Ident
  1443.     |    Name
  1444.     ;
  1445.  
  1446. Net :        NET NetNameDef _Net PopC
  1447.     ;
  1448.  
  1449. _Net :        Joined
  1450.      |        _Net Criticality
  1451.      |        _Net NetDelay
  1452.      |        _Net Figure
  1453.      |        _Net Net
  1454.      |        _Net Instance
  1455.      |        _Net CommGraph
  1456.      |        _Net Property
  1457.      |        _Net Comment
  1458.      |        _Net UserData
  1459.      ;
  1460.  
  1461. NetBackAn :    NETBACKANNOTATE _NetBackAn PopC
  1462.       ;
  1463.  
  1464. _NetBackAn :    NetRef
  1465.        |    _NetBackAn NetDelay
  1466.        |    _NetBackAn Criticality
  1467.        |    _NetBackAn Property
  1468.        |    _NetBackAn Comment
  1469.        ;
  1470.  
  1471. NetBundle :    NETBUNDLE NetNameDef _NetBundle PopC
  1472.       ;
  1473.  
  1474. _NetBundle :    ListOfNets
  1475.        |    _NetBundle Figure
  1476.        |    _NetBundle CommGraph
  1477.        |    _NetBundle Property
  1478.        |    _NetBundle Comment
  1479.        |    _NetBundle UserData
  1480.        ;
  1481.  
  1482. NetDelay :    NETDELAY Derivation _NetDelay PopC
  1483.      ;
  1484.  
  1485. _NetDelay :    Delay
  1486.       |    _NetDelay Transition
  1487.       |    _NetDelay Becomes
  1488.       ;
  1489.  
  1490. NetGroup :    NETGROUP _NetGroup PopC
  1491.      ;
  1492.  
  1493. _NetGroup :
  1494.       |    _NetGroup NetNameRef
  1495.       |    _NetGroup NetRef
  1496.       ;
  1497.  
  1498. NetMap :    NETMAP _NetMap PopC
  1499.        ;
  1500.  
  1501. _NetMap :
  1502.     |    _NetMap NetRef
  1503.     |    _NetMap NetGroup
  1504.     |    _NetMap Comment
  1505.     |    _NetMap UserData
  1506.     ;
  1507.  
  1508. NetNameDef :    NameDef
  1509.        |    Array
  1510.        ;
  1511.  
  1512. NetNameRef :    NameRef
  1513.        |    Member
  1514.        ;
  1515.  
  1516. NetRef :    NETREF NetNameRef _NetRef PopC
  1517.        ;
  1518.  
  1519. _NetRef :
  1520.     |    NetRef
  1521.     |    InstanceRef
  1522.     |    ViewRef
  1523.     ;
  1524.  
  1525. NoChange :    NOCHANGE PopC
  1526.      ;
  1527.  
  1528. NonPermut :    NONPERMUTABLE _NonPermut PopC
  1529.       ;
  1530.  
  1531. _NonPermut :
  1532.        |    _NonPermut PortRef
  1533.        |    _NonPermut Permutable
  1534.        ;
  1535.  
  1536. NotAllowed :    NOTALLOWED RuleNameDef _NotAllowed PopC
  1537.        ;
  1538.  
  1539. _NotAllowed :    FigGrpObj
  1540.         |    _NotAllowed Comment
  1541.         |    _NotAllowed UserData
  1542.         ;
  1543.  
  1544. NotchSpace :    NOTCHSPACING RuleNameDef FigGrpObj _NotchSpace PopC
  1545.        ;
  1546.  
  1547. _NotchSpace :    Range
  1548.         |    SingleValSet
  1549.         |    _NotchSpace Comment
  1550.         |    _NotchSpace UserData
  1551.         ;
  1552.  
  1553. Number :    NUMBER _Number PopC
  1554.        ;
  1555.  
  1556. _Number :
  1557.     |    _Number ScaledInt
  1558.     |    _Number NumbDisplay
  1559.     |    _Number Number
  1560.     ;
  1561.  
  1562. NumbDisplay :    NUMBERDISPLAY _NumbDisplay PopC
  1563.         ;
  1564.  
  1565. _NumbDisplay :    ScaledInt
  1566.          |    _NumbDisplay Display
  1567.          ;
  1568.  
  1569. NumberDefn :    NUMBERDEFINITION _NumberDefn PopC
  1570.        ;
  1571.  
  1572. _NumberDefn :
  1573.         |    _NumberDefn Scale
  1574.         |    _NumberDefn GridMap
  1575.         |    _NumberDefn Comment
  1576.         ;
  1577.  
  1578. OffPageConn :    OFFPAGECONNECTOR _OffPageConn PopC
  1579.         ;
  1580.  
  1581. _OffPageConn :    PortNameDef
  1582.          |    _OffPageConn Unused
  1583.          |    _OffPageConn Property
  1584.          |    _OffPageConn Comment
  1585.          |    _OffPageConn UserData
  1586.          ;
  1587.  
  1588. OffsetEvent :    OFFSETEVENT Event ScaledInt PopC
  1589.         ;
  1590.  
  1591. OpenShape :    OPENSHAPE _OpenShape PopC
  1592.       ;
  1593.  
  1594. _OpenShape :    Curve
  1595.        |    _OpenShape Property
  1596.        ;
  1597.  
  1598. Orientation :    ORIENTATION _Orientation PopC
  1599.         ;
  1600.  
  1601. _Orientation :    R0
  1602.          |    R90
  1603.          |    R180
  1604.          |    R270
  1605.          |    MX
  1606.          |    MY
  1607.          |    MYR90
  1608.          |    MXR90
  1609.          ;
  1610.  
  1611. Origin :    ORIGIN PointValue PopC
  1612.        ;
  1613.  
  1614. OverhngDist :    OVERHANGDISTANCE RuleNameDef FigGrpObj FigGrpObj _OverhngDist
  1615.         PopC
  1616.         ;
  1617.  
  1618. _OverhngDist :    Range
  1619.          |    SingleValSet
  1620.          |    _OverhngDist Comment
  1621.          |    _OverhngDist UserData
  1622.          ;
  1623.  
  1624. OverlapDist :    OVERLAPDISTANCE RuleNameDef FigGrpObj FigGrpObj _OverlapDist
  1625.         PopC
  1626.         ;
  1627.  
  1628. _OverlapDist :    Range
  1629.          |    SingleValSet
  1630.          |    _OverlapDist Comment
  1631.          |    _OverlapDist UserData
  1632.          ;
  1633.  
  1634. Oversize :    OVERSIZE Int _Oversize CornerType PopC
  1635.      ;
  1636.  
  1637. _Oversize :    FigGrpRef
  1638.       |    FigureOp
  1639.       ;
  1640.  
  1641. Owner :        OWNER Str PopC
  1642.       ;
  1643.  
  1644. Page :        PAGE _Page PopC
  1645.      ;
  1646.  
  1647. _Page :        InstNameDef
  1648.       |        _Page Instance
  1649.       |        _Page Net
  1650.       |        _Page NetBundle
  1651.       |        _Page CommGraph
  1652.       |        _Page PortImpl
  1653.       |        _Page PageSize
  1654.       |        _Page BoundBox
  1655.       |        _Page Comment
  1656.       |        _Page UserData
  1657.       ;
  1658.  
  1659. PageSize :    PAGESIZE Rectangle PopC
  1660.      ;
  1661.  
  1662. ParamDisp :    PARAMETERDISPLAY _ParamDisp PopC
  1663.       ;
  1664.  
  1665. _ParamDisp :    ValueNameRef
  1666.        |    _ParamDisp Display
  1667.        ;
  1668.  
  1669. Parameter :    PARAMETER ValueNameDef TypedValue _Parameter PopC
  1670.       ;
  1671.  
  1672. _Parameter :
  1673.        |    Unit
  1674.        ;
  1675.  
  1676. ParamAssign :    PARAMETERASSIGN ValueNameRef TypedValue PopC
  1677.         ;
  1678.  
  1679. Path :        PATH _Path PopC
  1680.      ;
  1681.  
  1682. _Path :        PointList
  1683.       |        _Path Property
  1684.       ;
  1685.  
  1686. PathDelay :    PATHDELAY _PathDelay PopC
  1687.       ;
  1688.  
  1689. _PathDelay :    Delay
  1690.        |    _PathDelay Event
  1691.        ;
  1692.  
  1693. PathWidth :    PATHWIDTH Int PopC
  1694.       ;
  1695.  
  1696. Permutable :    PERMUTABLE _Permutable PopC
  1697.        ;
  1698.  
  1699. _Permutable :
  1700.         |    _Permutable PortRef
  1701.         |    _Permutable Permutable
  1702.         |    _Permutable NonPermut
  1703.         ;
  1704.  
  1705. Plug :        PLUG _Plug PopC
  1706.      ;
  1707.  
  1708. _Plug :
  1709.       |        _Plug SocketSet
  1710.       ;
  1711.  
  1712. Point :        POINT _Point PopC
  1713.       ;
  1714.  
  1715. _Point :
  1716.        |    _Point PointValue
  1717.        |    _Point PointDisp
  1718.        |    _Point Point
  1719.        ;
  1720.  
  1721. PointDisp :    POINTDISPLAY _PointDisp PopC
  1722.       ;
  1723.  
  1724. _PointDisp :    PointValue
  1725.        |    _PointDisp Display
  1726.        ;
  1727.  
  1728. PointList :    POINTLIST _PointList PopC
  1729.       ;
  1730.  
  1731. _PointList :
  1732.        |    _PointList PointValue
  1733.        ;
  1734.  
  1735. PointValue :     PT Int Int PopC
  1736.        ;
  1737.  
  1738. Polygon :    POLYGON _Polygon PopC
  1739.     ;
  1740.  
  1741. _Polygon :    PointList
  1742.      |    _Polygon Property
  1743.      ;
  1744.  
  1745. Port :        PORT _Port PopC
  1746.      ;
  1747.  
  1748. _Port :        PortNameDef
  1749.       |        _Port Direction
  1750.       |        _Port Unused
  1751.       |        _Port PortDelay
  1752.       |        _Port Designator
  1753.       |        _Port DcFanInLoad
  1754.       |        _Port DcFanOutLoad
  1755.       |        _Port DcMaxFanIn
  1756.       |        _Port DcMaxFanOut
  1757.       |        _Port AcLoad
  1758.       |        _Port Property
  1759.       |        _Port Comment
  1760.       |        _Port UserData
  1761.       ;
  1762.  
  1763. PortBackAn :    PORTBACKANNOTATE _PortBackAn PopC
  1764.        ;
  1765.  
  1766. _PortBackAn :    PortRef
  1767.         |    _PortBackAn Designator
  1768.         |    _PortBackAn PortDelay
  1769.         |    _PortBackAn DcFanInLoad
  1770.         |    _PortBackAn DcFanOutLoad
  1771.         |    _PortBackAn DcMaxFanIn
  1772.         |    _PortBackAn DcMaxFanOut
  1773.         |    _PortBackAn AcLoad
  1774.         |    _PortBackAn Property
  1775.         |    _PortBackAn Comment
  1776.         ;
  1777.  
  1778. PortBundle :    PORTBUNDLE PortNameDef _PortBundle PopC
  1779.        ;
  1780.  
  1781. _PortBundle :    ListOfPorts
  1782.         |    _PortBundle Property
  1783.         |    _PortBundle Comment
  1784.         |    _PortBundle UserData
  1785.         ;
  1786.  
  1787. PortDelay :    PORTDELAY Derivation _PortDelay PopC
  1788.       ;
  1789.  
  1790. _PortDelay :    Delay
  1791.        |    LoadDelay
  1792.        |    _PortDelay Transition
  1793.        |    _PortDelay Becomes
  1794.        ;
  1795.  
  1796. PortGroup :    PORTGROUP _PortGroup PopC
  1797.       ;
  1798.  
  1799. _PortGroup :
  1800.        |    _PortGroup PortNameRef
  1801.        |    _PortGroup PortRef
  1802.        ;
  1803.  
  1804. PortImpl :    PORTIMPLEMENTATION _PortImpl PopC
  1805.      ;
  1806.  
  1807. _PortImpl :    PortRef
  1808.       |    PortNameRef
  1809.       |    _PortImpl ConnectLoc
  1810.       |    _PortImpl Figure
  1811.       |    _PortImpl Instance
  1812.       |    _PortImpl CommGraph
  1813.       |    _PortImpl PropDisplay
  1814.       |    _PortImpl KeywordDisp
  1815.       |    _PortImpl Property
  1816.       |    _PortImpl UserData
  1817.       |    _PortImpl Comment
  1818.       ;
  1819.  
  1820. PortInst :    PORTINSTANCE _PortInst PopC
  1821.      ;
  1822.  
  1823. _PortInst :    PortRef
  1824.       |    PortNameRef
  1825.       |    _PortInst Unused
  1826.       |    _PortInst PortDelay
  1827.       |    _PortInst Designator
  1828.       |    _PortInst DcFanInLoad
  1829.       |    _PortInst DcFanOutLoad
  1830.       |    _PortInst DcMaxFanIn
  1831.       |    _PortInst DcMaxFanOut
  1832.       |    _PortInst AcLoad
  1833.       |    _PortInst Property
  1834.       |    _PortInst Comment
  1835.       |    _PortInst UserData
  1836.       ;
  1837.  
  1838. PortList :    PORTLIST _PortList PopC
  1839.      ;
  1840.  
  1841. _PortList :
  1842.       |    _PortList PortRef
  1843.       |    _PortList PortNameRef
  1844.       ;
  1845.  
  1846. PortListAls :    PORTLISTALIAS PortNameDef PortList PopC
  1847.         ;
  1848.  
  1849. PortMap :    PORTMAP _PortMap PopC
  1850.     ;
  1851.  
  1852. _PortMap :
  1853.      |    _PortMap PortRef
  1854.      |    _PortMap PortGroup
  1855.      |    _PortMap Comment
  1856.      |    _PortMap UserData
  1857.      ;
  1858.  
  1859. PortNameDef :    NameDef
  1860.         |    Array
  1861.         ;
  1862.  
  1863. PortNameRef :    NameRef
  1864.         |    Member
  1865.         ;
  1866.  
  1867. PortRef :    PORTREF PortNameRef _PortRef PopC
  1868.     ;
  1869.  
  1870. _PortRef :
  1871.      |    PortRef
  1872.      |    InstanceRef
  1873.      |    ViewRef
  1874.      ;
  1875.  
  1876. Program :    PROGRAM Str _Program PopC
  1877.     ;
  1878.  
  1879. _Program :
  1880.      |    Version
  1881.      ;
  1882.  
  1883. PropDisplay :    PROPERTYDISPLAY _PropDisplay PopC
  1884.         ;
  1885.  
  1886. _PropDisplay :    PropNameRef
  1887.          |    _PropDisplay Display
  1888.          ;
  1889.  
  1890. Property :    PROPERTY PropNameDef _Property PopC
  1891.      ;
  1892.  
  1893. _Property :    TypedValue
  1894.       |    _Property Owner
  1895.       |    _Property Unit
  1896.       |    _Property Property
  1897.       |    _Property Comment
  1898.       ;
  1899.  
  1900. PropNameDef :    NameDef
  1901.         ;
  1902.  
  1903. PropNameRef :    NameRef
  1904.         ;
  1905.  
  1906. ProtectFrame :    PROTECTIONFRAME _ProtectFrame PopC
  1907.          ;
  1908.  
  1909. _ProtectFrame :
  1910.           |    _ProtectFrame PortImpl
  1911.           |    _ProtectFrame Figure
  1912.           |    _ProtectFrame Instance
  1913.           |    _ProtectFrame CommGraph
  1914.           |    _ProtectFrame BoundBox
  1915.           |    _ProtectFrame PropDisplay
  1916.           |    _ProtectFrame KeywordDisp
  1917.           |    _ProtectFrame ParamDisp
  1918.           |    _ProtectFrame Property
  1919.           |    _ProtectFrame Comment
  1920.           |    _ProtectFrame UserData
  1921.           ;
  1922.  
  1923. Range :        LessThan
  1924.       |        GreaterThan
  1925.       |        AtMost
  1926.       |        AtLeast
  1927.       |        Exactly
  1928.       |        Between
  1929.       ;
  1930.  
  1931. RangeVector :    RANGEVECTOR _RangeVector PopC
  1932.         ;
  1933.  
  1934. _RangeVector :
  1935.          |    _RangeVector Range
  1936.          |    _RangeVector SingleValSet
  1937.          ;
  1938.  
  1939. Rectangle :    RECTANGLE PointValue _Rectangle PopC
  1940.       ;
  1941.  
  1942. _Rectangle :    PointValue
  1943.        |    _Rectangle Property
  1944.        ;
  1945.  
  1946. RectSize :    RECTANGLESIZE RuleNameDef FigGrpObj _RectSize PopC
  1947.      ;
  1948.  
  1949. _RectSize :    RangeVector
  1950.       |    MultValSet
  1951.       |    _RectSize Comment
  1952.       |    _RectSize UserData
  1953.       ;
  1954.  
  1955. Rename :    RENAME __Rename _Rename PopC
  1956.        ;
  1957.  
  1958. __Rename :    Ident
  1959.      |    Name
  1960.      ;
  1961.  
  1962. _Rename :    Str
  1963.     |    StrDisplay
  1964.     ;
  1965.  
  1966. Resolves :    RESOLVES _Resolves PopC
  1967.      ;
  1968.  
  1969. _Resolves :
  1970.       |    _Resolves LogicNameRef
  1971.       ;
  1972.  
  1973. RuleNameDef :    NameDef
  1974.         ;
  1975.  
  1976. Scale :        SCALE ScaledInt ScaledInt Unit PopC
  1977.       ;
  1978.  
  1979. ScaledInt :    Int
  1980.       |    E Int Int PopC
  1981.       ;
  1982.  
  1983. ScaleX :    SCALEX Int Int PopC
  1984.        ;
  1985.  
  1986. ScaleY :    SCALEY Int Int PopC
  1987.        ;
  1988.  
  1989. Section :    SECTION _Section PopC
  1990.     ;
  1991.  
  1992. _Section :    Str
  1993.      |    _Section Section
  1994.      |    _Section Str
  1995.      |    _Section Instance
  1996.      ;
  1997.  
  1998. Shape :        SHAPE _Shape PopC
  1999.       ;
  2000.  
  2001. _Shape :    Curve
  2002.        |    _Shape Property
  2003.        ;
  2004.  
  2005. SimNameDef :    NameDef
  2006.        ;
  2007.  
  2008. Simulate :    SIMULATE _Simulate PopC
  2009.      ;
  2010.  
  2011. _Simulate :    SimNameDef
  2012.       |    _Simulate PortListAls
  2013.       |    _Simulate WaveValue
  2014.       |    _Simulate Apply
  2015.       |    _Simulate Comment
  2016.       |    _Simulate UserData
  2017.       ;
  2018.  
  2019. SimulInfo :    SIMULATIONINFO _SimulInfo PopC
  2020.       ;
  2021.  
  2022. _SimulInfo :
  2023.        |    _SimulInfo LogicValue
  2024.        |    _SimulInfo Comment
  2025.        |    _SimulInfo UserData
  2026.        ;
  2027.  
  2028. SingleValSet :    SINGLEVALUESET _SingleValSet PopC
  2029.          ;
  2030.  
  2031. _SingleValSet :
  2032.           |    Range
  2033.           ;
  2034.  
  2035. Site :        SITE ViewRef _Site PopC
  2036.      ;
  2037.  
  2038. _Site :
  2039.       |        Transform
  2040.       ;
  2041.  
  2042. Socket :    SOCKET _Socket PopC
  2043.        ;
  2044.  
  2045. _Socket :
  2046.     |    Symmetry
  2047.     ;
  2048.  
  2049. SocketSet :    SOCKETSET _SocketSet PopC
  2050.       ;
  2051.  
  2052. _SocketSet :    Symmetry
  2053.        |    _SocketSet Site
  2054.        ;
  2055.  
  2056. Status :    STATUS _Status PopC
  2057.        ;
  2058.  
  2059. _Status :
  2060.     |    _Status Written
  2061.     |    _Status Comment
  2062.     |    _Status UserData
  2063.     ;
  2064.  
  2065. Steady :    STEADY __Steady _Steady PopC
  2066.        ;
  2067.  
  2068. __Steady :    PortNameRef
  2069.      |    PortRef
  2070.      |    PortList
  2071.      ;
  2072.  
  2073. _Steady :    Duration
  2074.     |    _Steady Transition
  2075.     |    _Steady Becomes
  2076.     ;
  2077.  
  2078. StrDisplay :    STRINGDISPLAY _StrDisplay PopC
  2079.        ;
  2080.  
  2081. String :    STRING _String PopC
  2082.        ;
  2083.  
  2084. _String :
  2085.     |    _String Str
  2086.     |    _String StrDisplay
  2087.     |    _String String
  2088.     ;
  2089.  
  2090. _StrDisplay :    Str
  2091.         |    _StrDisplay Display
  2092.         ;
  2093.  
  2094. Strong :    STRONG LogicNameRef PopC
  2095.        ;
  2096.  
  2097. Symbol :    SYMBOL _Symbol PopC
  2098.        ;
  2099.  
  2100. _Symbol :
  2101.     |    _Symbol PortImpl
  2102.     |    _Symbol Figure
  2103.     |    _Symbol Instance
  2104.     |    _Symbol CommGraph
  2105.     |    _Symbol Annotate
  2106.     |    _Symbol PageSize
  2107.     |    _Symbol BoundBox
  2108.     |    _Symbol PropDisplay
  2109.     |    _Symbol KeywordDisp
  2110.     |    _Symbol ParamDisp
  2111.     |    _Symbol Property
  2112.     |    _Symbol Comment
  2113.     |    _Symbol UserData
  2114.     ;
  2115.  
  2116. Symmetry :    SYMMETRY _Symmetry PopC
  2117.      ;
  2118.  
  2119. _Symmetry :
  2120.       |    _Symmetry Transform
  2121.       ;
  2122.  
  2123. Table :        TABLE _Table PopC
  2124.       ;
  2125.  
  2126. _Table :
  2127.        |    _Table Entry
  2128.        |    _Table TableDeflt
  2129.        ;
  2130.  
  2131. TableDeflt :    TABLEDEFAULT __TableDeflt _TableDeflt PopC
  2132.        ;
  2133.  
  2134. __TableDeflt :    LogicRef
  2135.          |    PortRef
  2136.          |    NoChange
  2137.          |    Table
  2138.          ;
  2139.  
  2140. _TableDeflt :
  2141.         |    Delay
  2142.         |    LoadDelay
  2143.         ;
  2144.  
  2145. Technology :    TECHNOLOGY _Technology PopC
  2146.        ;
  2147.  
  2148. _Technology :    NumberDefn
  2149.         |    _Technology FigGrp
  2150.         |    _Technology Fabricate
  2151.         |    _Technology SimulInfo
  2152.         |    _Technology DesignRule
  2153.         |    _Technology Comment
  2154.         |    _Technology UserData
  2155.         ;
  2156.  
  2157. TextHeight :    TEXTHEIGHT Int PopC
  2158.        ;
  2159.  
  2160. TimeIntval :    TIMEINTERVAL __TimeIntval _TimeIntval PopC
  2161.        ;
  2162.  
  2163. __TimeIntval :    Event
  2164.          |    OffsetEvent
  2165.          ;
  2166.  
  2167. _TimeIntval :    Event
  2168.         |    OffsetEvent
  2169.         |    Duration
  2170.         ;
  2171.  
  2172. TimeStamp :    TIMESTAMP Int Int Int Int Int Int PopC
  2173.       ;
  2174.  
  2175. Timing :    TIMING _Timing PopC
  2176.        ;
  2177.  
  2178. _Timing :    Derivation
  2179.     |    _Timing PathDelay
  2180.     |    _Timing Forbidden
  2181.     |    _Timing Comment
  2182.     |    _Timing UserData
  2183.     ;
  2184.  
  2185. Transform :    TRANSFORM _TransX _TransY _TransDelta _TransOrien _TransOrg
  2186.         PopC
  2187.       ;
  2188.  
  2189. _TransX :
  2190.     |    ScaleX
  2191.     ;
  2192.  
  2193. _TransY :
  2194.     |    ScaleY
  2195.     ;
  2196.  
  2197. _TransDelta :
  2198.         |    Delta
  2199.         ;
  2200.  
  2201. _TransOrien :
  2202.         |    Orientation
  2203.         ;
  2204.  
  2205. _TransOrg :
  2206.       |    Origin
  2207.       ;
  2208.  
  2209. Transition :    TRANSITION _Transition _Transition PopC
  2210.        ;
  2211.  
  2212. _Transition :    LogicNameRef
  2213.         |    LogicList
  2214.         |    LogicOneOf
  2215.         ;
  2216.  
  2217. Trigger :    TRIGGER _Trigger PopC
  2218.     ;
  2219.  
  2220. _Trigger :
  2221.      |    _Trigger Change
  2222.      |    _Trigger Steady
  2223.      |    _Trigger Initial
  2224.      ;
  2225.  
  2226. True :        TRUE PopC
  2227.      ;
  2228.  
  2229. TypedValue :    Boolean
  2230.        |    Integer
  2231.        |    MiNoMa
  2232.        |    Number
  2233.        |    Point
  2234.        |    String
  2235.        ;
  2236.  
  2237. Unconstrained :    UNCONSTRAINED PopC
  2238.           ;
  2239.  
  2240. Undefined :    UNDEFINED PopC
  2241.       ;
  2242.  
  2243. Union :        UNION _Union PopC
  2244.       ;
  2245.  
  2246. _Union :    FigGrpRef
  2247.        |    FigureOp
  2248.        |    _Union FigGrpRef
  2249.        |    _Union FigureOp
  2250.        ;
  2251.  
  2252. Unit :        UNIT _Unit PopC
  2253.      ;
  2254.  
  2255. _Unit :        DISTANCE
  2256.       |        CAPACITANCE
  2257.       |        CURRENT
  2258.       |        RESISTANCE
  2259.       |        TEMPERATURE
  2260.       |        TIME
  2261.       |        VOLTAGE
  2262.       |        MASS
  2263.       |        FREQUENCY
  2264.       |        INDUCTANCE
  2265.       |        ENERGY
  2266.       |        POWER
  2267.       |        CHARGE
  2268.       |        CONDUCTANCE
  2269.       |        FLUX
  2270.       |        ANGLE
  2271.       ;
  2272.  
  2273. Unused :    UNUSED PopC
  2274.        ;
  2275.  
  2276. UserData :    USERDATA _UserData PopC
  2277.      ;
  2278.  
  2279. _UserData :    Ident
  2280.       |    _UserData Int
  2281.       |    _UserData Str
  2282.       |    _UserData Ident
  2283.       |    _UserData Form
  2284.       ;
  2285.  
  2286. ValueNameDef :    NameDef
  2287.          |    Array
  2288.          ;
  2289.  
  2290. ValueNameRef :    NameRef
  2291.          |    Member
  2292.          ;
  2293.  
  2294. Version :    VERSION Str PopC
  2295.     ;
  2296.  
  2297. View :        VIEW ViewNameDef ViewType _View PopC
  2298.      ;
  2299.  
  2300. _View :        Interface
  2301.       |        _View Status
  2302.       |        _View Contents
  2303.       |        _View Comment
  2304.       |        _View Property
  2305.       |        _View UserData
  2306.       ;
  2307.  
  2308. ViewList :    VIEWLIST _ViewList PopC
  2309.      ;
  2310.  
  2311. _ViewList :
  2312.       |    _ViewList ViewRef
  2313.       |    _ViewList ViewList
  2314.       ;
  2315.  
  2316. ViewMap :    VIEWMAP _ViewMap PopC
  2317.     ;
  2318.  
  2319. _ViewMap :
  2320.      |    _ViewMap PortMap
  2321.      |    _ViewMap PortBackAn
  2322.      |    _ViewMap InstMap
  2323.      |    _ViewMap InstBackAn
  2324.      |    _ViewMap NetMap
  2325.      |    _ViewMap NetBackAn
  2326.      |    _ViewMap Comment
  2327.      |    _ViewMap UserData
  2328.      ;
  2329.  
  2330. ViewNameDef :    NameDef
  2331.         ;
  2332.  
  2333. ViewNameRef :    NameRef
  2334.         ;
  2335.  
  2336. ViewRef :    VIEWREF ViewNameRef _ViewRef PopC
  2337.     ;
  2338.  
  2339. _ViewRef :
  2340.      |    CellRef
  2341.      ;
  2342.  
  2343. ViewType :    VIEWTYPE _ViewType PopC
  2344.      ;
  2345.  
  2346. _ViewType :    MASKLAYOUT
  2347.       |    PCBLAYOUT
  2348.       |    NETLIST
  2349.       |    SCHEMATIC
  2350.       |    SYMBOLIC
  2351.       |    BEHAVIOR
  2352.       |    LOGICMODEL
  2353.       |    DOCUMENT
  2354.       |    GRAPHIC
  2355.       |    STRANGER
  2356.       ;
  2357.  
  2358. Visible :    VISIBLE BooleanValue PopC
  2359.     ;
  2360.  
  2361. VoltageMap :    VOLTAGEMAP MiNoMaValue PopC
  2362.        ;
  2363.  
  2364. WaveValue :    WAVEVALUE LogicNameDef ScaledInt LogicWave PopC
  2365.       ;
  2366.  
  2367. Weak :        WEAK LogicNameRef PopC
  2368.      ;
  2369.  
  2370. WeakJoined :    WEAKJOINED _WeakJoined PopC
  2371.        ;
  2372.  
  2373. _WeakJoined :
  2374.         |    _WeakJoined PortRef
  2375.         |    _WeakJoined PortList
  2376.         |    _WeakJoined Joined
  2377.         ;
  2378.  
  2379. When :        WHEN _When PopC
  2380.      ;
  2381.  
  2382. _When :        Trigger
  2383.       |        _When After
  2384.       |        _When Follow
  2385.       |        _When Maintain
  2386.       |        _When LogicAssn
  2387.       |        _When Comment
  2388.       |        _When UserData
  2389.       ;
  2390.  
  2391. Written :    WRITTEN _Written PopC
  2392.     ;
  2393.  
  2394. _Written :    TimeStamp
  2395.      |    _Written Author
  2396.      |    _Written Program
  2397.      |    _Written DataOrigin
  2398.      |    _Written Property
  2399.      |    _Written Comment
  2400.      |    _Written UserData
  2401.      ;
  2402.  
  2403. Ident :        IDENT
  2404.         { Free($1); }
  2405.       ;
  2406.  
  2407. Str :        STR
  2408.         { Free($1); }
  2409.     ;
  2410.  
  2411. Int :        INT
  2412.         { Free($1); }
  2413.     ;
  2414.  
  2415. Keyword :    KEYWORD
  2416.         { Free($1); }
  2417.     ;
  2418.  
  2419. %%
  2420. /*
  2421.  *    xmalloc:
  2422.  *
  2423.  *      Garbage function for 'alloca()'.
  2424.  */
  2425. char *xmalloc(siz)
  2426. int siz;
  2427. {
  2428.   return (Malloc(siz));
  2429. }
  2430. /*
  2431.  *    Token & context carriers:
  2432.  *
  2433.  *      These are the linkage pointers for threading this context garbage
  2434.  *    for converting identifiers into parser tokens.
  2435.  */
  2436. typedef struct TokenCar {
  2437.   struct TokenCar *Next;    /* pointer to next carrier */
  2438.   struct Token *Token;        /* associated token */
  2439. } TokenCar;
  2440. typedef struct UsedCar {
  2441.   struct UsedCar *Next;        /* pointer to next carrier */
  2442.   short Code;            /* used '%token' value */
  2443. } UsedCar;
  2444. typedef struct ContextCar {
  2445.   struct ContextCar *Next;    /* pointer to next carrier */
  2446.   struct Context *Context;    /* associated context */
  2447.   union {
  2448.     int Single;            /* single usage flag (context tree) */
  2449.     struct UsedCar *Used;    /* single used list (context stack) */
  2450.   } u;
  2451. } ContextCar;
  2452. /*
  2453.  *    Parser state variables.
  2454.  */
  2455. static FILE *Input = NULL;        /* input stream */
  2456. static FILE *Error = NULL;        /* error stream */
  2457. extern char *InFile;            /* file name on the input stream */
  2458. static long LineNumber;            /* current input line number */
  2459. static ContextCar *CSP = NULL;        /* top of context stack */
  2460. static char yytext[IDENT_LENGTH + 1];    /* token buffer */
  2461. static char CharBuf[IDENT_LENGTH + 1];    /* garbage buffer */
  2462. /*
  2463.  *    Token definitions:
  2464.  *
  2465.  *      This associates the '%token' codings with strings which are to
  2466.  *    be free standing tokens. Doesn't have to be in sorted order but the
  2467.  *    strings must be in lower case.
  2468.  */
  2469. typedef struct Token {
  2470.   char *Name;            /* token name */
  2471.   int Code;            /* '%token' value */
  2472.   struct Token *Next;        /* hash table linkage */
  2473. } Token;
  2474. static Token TokenDef[] = {
  2475.   {"angle",        ANGLE},
  2476.   {"behavior",        BEHAVIOR},
  2477.   {"calculated",    CALCULATED},
  2478.   {"capacitance",    CAPACITANCE},
  2479.   {"centercenter",    CENTERCENTER},
  2480.   {"centerleft",    CENTERLEFT},
  2481.   {"centerright",    CENTERRIGHT},
  2482.   {"charge",        CHARGE},
  2483.   {"conductance",    CONDUCTANCE},
  2484.   {"current",        CURRENT},
  2485.   {"distance",        DISTANCE},
  2486.   {"document",        DOCUMENT},
  2487.   {"energy",        ENERGY},
  2488.   {"extend",        EXTEND},
  2489.   {"flux",        FLUX},
  2490.   {"frequency",        FREQUENCY},
  2491.   {"generic",        GENERIC},
  2492.   {"graphic",        GRAPHIC},
  2493.   {"inductance",    INDUCTANCE},
  2494.   {"inout",        INOUT},
  2495.   {"input",        INPUT},
  2496.   {"logicmodel",    LOGICMODEL},
  2497.   {"lowercenter",    LOWERCENTER},
  2498.   {"lowerleft",        LOWERLEFT},
  2499.   {"lowerright",    LOWERRIGHT},
  2500.   {"masklayout",    MASKLAYOUT},
  2501.