///////////////////////////////////////////////////////////////////////////// // // This is the sample of input to the IC code generator. // // Format: // // Each definition type header must be prefixed by '$'. // All definition lines follow their definition type header without prefixed // by any special character. // A definition types must be ended with '%'. // A comment line must begin with '//'. // A space line is allowed. // // Supported definition types: // // 1. Header $MESSAGE --> message_name/message_id // 2. Header $INCLUDE_FILE --> file_name // 3. Header $ACTION/AUTO_GEN:YES|NO // --> action_name/action_id[/function_name[/file_name]] // 4. Header $IC_ID --> name/id // 5. Header $MUST_FUNC/AUTO_GEN:YES|NO // --> func_group_name[/file_name] // 6. Header $THRESHOLD --> ic_type/fuzzy_number // // Output of IC code generator: // // app.h, actions.c, ic_func2.c, ic_func3.c // ///////////////////////////////////////////////////////////////////////////// // define input and output messages of IC $MESSAGE SINGLECLICK/0 DOUBLECLICK/1 % // add including files into app.h, if any $INCLUDE_FILE % // define actions of IC // // AUTO_GEN:YES|NO // if YES, actions.c will be automatically generated by collecting // specified file_names; otherwise, the file_name // will be ignored and the user has to provide an actions.c by // himself. If AUTO_GEN equals YES but file_name is // not specified, a default template of the corresponding function will // inserted into the actions.c. // // If 'actions.c' exists, the old 'actions.c' will be moved to a backup // file 'actions.b*', for example, actions.b0, actions.b1.... // $ACTION/AUTO_GEN:YES SINGLECLICK/0/singleclick/sclick.c DOUBLECLICK/1/doubleclick/dclick.c % // define IDs of IC // Note: ic_id EXTERNAL has been defined as -1 in ic.h $IC_ID UNKNOWN/0 % $MUST_FUNC/AUTO_GEN:YES FILL_OUTPUT_MSG_GROUP/out_msg.c PREDICATE_GROUP/predicat.c INTERNAL_MM_GROUP/inter_mm.c FILL_OUTPUT_IC_GROUP/out_ic.c USER_DEFINE_FUNC_VAR_GROUP/func_var.c % // define thresholds for fuzzy computation $THRESHOLD DEFAULT/0.6 TEST/0.6 %