Ignore:
Timestamp:
Oct 19, 2009, 5:10:43 PM (15 years ago)
Author:
Tatsukawa, Akimichi
Message:

commit at the timing of leaving Pittsburgh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/adl_parser/lib/parser.y

    r321 r323  
    802802    result = - integer
    803803  }
    804 ###   | '+' V_INTEGER
    805 ###   | '-' V_INTEGER
    806804
    807805integer_list_value: integer_value Comma_code integer_value
     
    10121010  | SYM_FALSE
    10131011
    1014 arithmetic_node: arithmetic_expression '+' arithmetic_leaf
     1012arithmetic_node: arithmetic_expression Plus_code arithmetic_leaf
    10151013  | arithmetic_expression Minus_code arithmetic_leaf
    10161014  | arithmetic_expression Star_code arithmetic_leaf
     
    10991097
    11001098cardinality_spec: occurrence_spec
     1099  {
     1100    result = val[0]
     1101  }
    11011102  | occurrence_spec Semicolon_code SYM_ORDERED
    11021103  | occurrence_spec Semicolon_code SYM_UNORDERED
     
    13301331end
    13311332
    1332 
    1333 ###----------/* keywords */ ---------------------------------------------
    1334 ### @@adl_reserved = {
    1335 ###     'archetype' => :SYM_ARCHETYPE,
    1336 ###     'adl_version' => :SYM_ADL_VERSION,
    1337 ###     'controlled' => :SYM_IS_CONTROLLED,
    1338 ###     'specialize' => :SYM_SPECIALIZE,
    1339 ###     'concept' => :SYM_CONCEPT,
    1340 ###     'language' => :SYM_LANGUAGE,
    1341 ###     'description' => :SYM_DESCRIPTION,
    1342 ###     'definition' => :SYM_DEFINITION,
    1343 ###     'invariant' => :SYM_INVARIANT,
    1344 ###     'ontology' => :SYM_ONTOLOGY,
    1345 ###     'matches' => :SYM_MATCHES,
    1346 ###     'is_in' => :SYM_MATCHES,
    1347 ###     'occurrences' => :SYM_OCCURRENCES,
    1348 ###     'true' => :SYM_TRUE, #[Tt][Rr][Uu][Ee] -- -> SYM_TRUE
    1349 ###     'false' => :SYM_FALSE, # [Ff][Aa][Ll][Ss][Ee] -- -> SYM_FALSE
    1350 ###     'infinity' => :SYM_INFINITY # [Ii][Nn][Ff][Ii][Nn][Ii][Tt][Yy] -- -> SYM_INFINITY
    1351 ### }
    1352 
    1353 ### @@dadl_reserved = {
    1354 ###   'true' => :SYM_TRUE, #[Tt][Rr][Uu][Ee] -- -> SYM_TRUE
    1355 ###   'false' => :SYM_FALSE, # [Ff][Aa][Ll][Ss][Ee] -- -> SYM_FALSE
    1356 ###   'infinity' => :SYM_INFINITY # [Ii][Nn][Ff][Ii][Nn][Ii][Tt][Yy] -- -> SYM_INFINITY
    1357 ### }
    1358 
    1359 ### @@cadl_reserved = {
    1360 ###   'then' => :SYM_THEN, # [Tt][Hh][Ee][Nn]
    1361 ###   'else' => :SYM_ELSE, # [Ee][Ll][Ss][Ee]
    1362 ###   'and' => :SYM_AND, # [Aa][Nn][Dd]
    1363 ###   'or' => :SYM_OR, # [Oo][Rr]
    1364 ###   'xor' => :SYM_XOR, # [Xx][Oo][Rr]
    1365 ###   'not' => :SYM_NOT, # [Nn][Oo][Tt]
    1366 ###   'implies' => :SYM_IMPLIES, # [Ii][Mm][Pp][Ll][Ii][Ee][Ss]
    1367 ###   'true' => :SYM_TRUE, #[Tt][Rr][Uu][Ee] -- -> SYM_TRUE
    1368 ###   'false' => :SYM_FALSE, # [Ff][Aa][Ll][Ss][Ee] -- -> SYM_FALSE
    1369 ###   'forall' => :SYM_FORALL, # [Ff][Oo][Rr][_][Aa][Ll][Ll]
    1370 ###   'exists' => :SYM_EXISTS, # [Ee][Xx][Ii][Ss][Tt][Ss]
    1371 ###   'existence' => :SYM_EXISTENCE, # [Ee][Xx][Iu][Ss][Tt][Ee][Nn][Cc][Ee]
    1372 ###   'occurrences' => :SYM_OCCURRENCES, # [Oo][Cc][Cc][Uu][Rr][Rr][Ee][Nn][Cc][Ee][Ss]
    1373 ###   'cardinality' => :SYM_CARDINALITY, # [Cc][Aa][Rr][Dd][Ii][Nn][Aa][Ll][Ii][Tt][Yy]
    1374 ###   'ordered' => :SYM_ORDERED, # [Oo][Rr][Dd][Ee][Rr][Ee][Dd]
    1375 ###   'unordered' => :SYM_UNORDERED, # [Uu][Nn][Oo][Rr][Dd][Ee][Rr][Ee][Dd]
    1376 ###   'unique' => :SYM_UNIQUE, # [Uu][Nn][Ii][Qq][Uu][Ee]
    1377 ###   'matches' => :SYM_MATCHES, # [Mm][Aa][Tt][Cc][Hh][Ee][Ss]
    1378 ###   'is_in' => :SYM_MATCHES, # [Ii][Ss][_][Ii][Nn]
    1379 ###   'invariant' => :SYM_INVARIANT, # [Ii][Nn][Vv][Aa][Rr][Ii][Aa][Nn][Tt]
    1380 ###   'infinity' => :SYM_INFINITY, # [Ii][Nn][Ff][Ii][Nn][Ii][Tt][Yy] -- -> SYM_INFINITY
    1381 ###   'use_node' => :SYM_USE_NODE, # [Uu][Ss][Ee][_][Nn][Oo][Dd][Ee]
    1382 ###   'use_archetype' => :SYM_ALLOW_ARCHETYPE, # [Uu][Ss][Ee][_][Aa][Rr][Cc][Hh][Ee][Tt][Yy][Pp][Ee]
    1383 ###   'allow_archetype' => :SYM_ALLOW_ARCHETYPE, # [Aa][Ll][Ll][Oo][Ww][_][Aa][Rr][Cc][Hh][Ee][Tt][Yy][Pp][Ee]
    1384 ###   'include' => :SYM_INCLUDE, # [Ii][Nn][Cc][Ll][Uu][Dd][Ee]
    1385 ###   'exclude' => :SYM_EXCLUDE # [Ee][Xx][Cc][Ll][Uu][Dd][Ee]
    1386 ### }
    13871333
    13881334
Note: See TracChangeset for help on using the changeset viewer.