|
OsfV3Declarations.grm
|
// FILE. . . . . /home/hak/hlt/src/hlt/osf/apps/v3/sources/OsfV3Declarations.grm // EDIT BY . . . Hassan Ait-Kaci // ON MACHINE. . Hak-Laptop // STARTED ON. . Sun Mar 29 16:07:36 2015
This is part of the OSF V3 language grammar
and contains its declarations.
|
/* ************************************************************************ */ /* ************************ START OF DECLARATIONS ********************** */ /* ************************************************************************ */ %import hlt.language.tools.Misc; %import hlt.language.tools.Debug; %import hlt.language.util.Stack; %import hlt.language.util.ArrayList; %import hlt.language.util.IntIterator; %import hlt.language.util.Error; %import hlt.language.util.Span; %import hlt.language.util.Locatable; %import hlt.osf.io.*; %import hlt.osf.base.*; %import hlt.osf.util.*; %import hlt.osf.exec.*; %import hlt.language.io.CircularInclusionException; %import java.util.HashMap; %import java.util.HashSet; %import java.io.PrintStream; %import java.io.FileNotFoundException; /* ************************************************************************ */ %package hlt.osf.v3; %access public %start OsfV3Program %root SortExpression %root OsfExpression %nodeprefix "OsfV3" %nodesuffix "" /* ************************************************************************ */ // Tokens in order of increasing precedence: %token EOS // End of statement marker (.) %token IDENTIFIER STRING TOP BOTTOM TAG INTEGER CHAR FLOAT BOOLEAN %token EXIT_PRAGMA HELP_PRAGMA INCLUDE_PRAGMA ENCODE_PRAGMA EVAL_PRAGMA SORTS_PRAGMA DEFINED_PRAGMA SYMBOLS_PRAGMA MUTE_PRAGMA SIZE_PRAGMA HEIGHT_PRAGMA WIDTH_PRAGMA CHILDREN_PRAGMA DESCENDANTS_PRAGMA PARENTS_PRAGMA ANCESTORS_PRAGMA ENUMSIZE_PRAGMA ISA_PRAGMA REFRESH_PRAGMA TREE_PRAGMA TIMING_PRAGMA GC_PRAGMA SYNTAX_PRAGMA TRACE_PRAGMA UNKNOWN_PRAGMA // %right PROJECT // feature projection (/) %token ARROW // feature association (=>) %token ISA // 'is-a' declaration (<|) // %left JOIN // lub (\/) // %left MEET // glb (/\) %right BUTNOT // sort complementation (\) %left OR // sort union (|) %left AND // sort intersection (&) %right NOT // sort negation (!) /* ************************************************************************ */
| This declares this application XML's namespace to be "osf" as an abbreviation for the URI "http://www.hak-lt.com/ns/osf". This is just a fake URI for now. |
%xmlns "osf" "http://www.hak-lt.com/ns/osf"
| Define the XML tree root element to be osf:OsfExpression. |
%xmlroot "osf" "OsfExpression"
| Tokens' XML serialization declarations: |
%xmlinfo TOP [ n:"osf" l:"sort" a:{symbol="*TOP*"} ] %xmlinfo BOTTOM [ n:"osf" l:"sort" a:{symbol="*BOTTOM*"} ] %xmlinfo TAG [ n:"osf" l:"tag" a:{value=$value} ] %xmlinfo IDENTIFIER [ n:"osf" l:"identifier" a:{value=$value} ] %xmlinfo INTEGER [ n:"osf" l:"constant" a:{sort="integer" value=$value} ] %xmlinfo CHAR [ n:"osf" l:"constant" a:{sort="char" value=$value} ] %xmlinfo FLOAT [ n:"osf" l:"constant" a:{sort="float" value=$value} ] %xmlinfo STRING [ n:"osf" l:"constant" a:{sort="string" value=$value} ] %xmlinfo BOOLEAN [ n:"osf" l:"constant" a:{sort="boolean" value=$value} ] /* ************************************************************************ */ /* *********************** END OF DECLARATIONS ******************** */ /* ************************************************************************ */
This file was generated on Fri Aug 16 04:59:19 PDT 2019 from file OsfV3Declarations.grm
by the hlt.language.tools.Hilite Java tool written by Hassan Aït-Kaci