Lines Matching full:print
63 print " rbbicst: at line $line-num duplicate definition of state $state_name\n";
100 print " rbbicsts: at line $line_num, bad character literal or character class name.\n";
101 print " scanning $fields[0]\n";
121 print " rbbicsts: at line $line_num, destination state missing.\n";
133 print " rbbicsts: at line $line_num, expected state after ^ (no spaces).\n";
151 print " rbbicsts: at line $line_num, unexpected extra stuff on input line.\n";
152 print " scanning $fields[0]\n";
190 print "Error at line $state_line_num[$state]: target state \"$state_dest_state[$state]\" is not defined.\n";
194 print "Error at line $state_line_num[$state]: target state \"$state_push_state[$state]\" is not defined.\n";
232 print "/*\n";
233 print " *******************************************************************************\n";
234 print " * Copyright (C) 2003-$year,\n";
235 print " * International Business Machines Corporation and others. All Rights Reserved.\n";
236 print " *******************************************************************************\n";
237 print " */\n";
238 print " \n";
239 print "package com.ibm.icu.text;\n";
240 print " \n";
241 print "/**\n";
242 print " * Generated Java File. Do not edit by hand.\n";
243 print " * This file contains the state table for the ICU Rule Based Break Iterator\n";
244 print " * rule parser.\n";
245 print " * It is generated by the Perl script \"rbbicst.pl\" from\n";
246 print " * the rule parser state definitions file \"rbbirpt.txt\".\n";
247 print " * \@internal \n";
248 print " *\n";
249 print " */\n";
251 print "class RBBIRuleParseTable\n";
252 print "{\n";
259 print " static final short $act = $n;\n";
262 print " \n";
268 print " static final short kRuleSet_$setName = $charClasses{$setName};\n";
270 print "\n\n";
273 print " static class RBBIRuleTableElement { \n";
274 print " short fAction; \n";
275 print " short fCharClass; \n";
276 print " short fNextState; \n";
277 print " short fPushState; \n";
278 print " boolean fNextChar; \n";
279 print " String fStateName; \n";
280 print " RBBIRuleTableElement(short a, int cc, int ns, int ps, boolean nc, String sn) { \n";
281 print " fAction = a; \n";
282 print " fCharClass = (short)cc; \n";
283 print " fNextState = (short)ns; \n";
284 print " fPushState = (short)ps; \n";
285 print " fNextChar = nc; \n";
286 print " fStateName = sn; \n";
287 print " } \n";
288 print " }; \n";
289 print " \n";
292 print " static RBBIRuleTableElement[] gRuleParseStateTable = { \n ";
293 print " new RBBIRuleTableElement(doNOP, 0, 0,0, true, null ) // 0 \n"; #output the unused state 0.
295 print " , new RBBIRuleTableElement($state_func_name[$state],";
298 print("'$c', ");
300 print " $charClasses{$state_char_class[$state]},";
302 print " $states{$state_dest_state[$state]},";
307 print "0, ";
309 print " $states{$state_push_state[$state]},";
311 print " $state_flag[$state], ";
315 print " \"$stateNames[$state]\") ";
317 print " null ) ";
321 print " // $state ";
322 print "\n";
324 print " };\n";
326 print "}; \n";
336 print "//---------------------------------------------------------------------------------\n";
337 print "//\n";
338 print "// Generated Header File. Do not edit by hand.\n";
339 print "// This file contains the state table for the ICU Rule Based Break Iterator\n";
340 print "// rule parser.\n";
341 print "// It is generated by the Perl script \"rbbicst.pl\" from\n";
342 print "// the rule parser state definitions file \"rbbirpt.txt\".\n";
343 print "//\n";
344 print "// Copyright (C) 2002-$year International Business Machines Corporation \n";
345 print "// and others. All rights reserved. \n";
346 print "//\n";
347 print "//---------------------------------------------------------------------------------\n";
348 print "#ifndef RBBIRPT_H\n";
349 print "#define RBBIRPT_H\n";
350 print "\n";
351 print "U_NAMESPACE_BEGIN\n";
358 print "//\n";
359 print "// Character classes for RBBI rule scanning.\n";
360 print "//\n";
364 print " static const uint8_t kRuleSet_$setName = $charClasses{$setName};\n";
367 print "\n\n";
372 print "enum RBBI_RuleParseAction {\n";
374 print " $act,\n";
376 print " rbbiLastAction};\n\n";
381 print "//-------------------------------------------------------------------------------\n";
382 print "//\n";
383 print "// RBBIRuleTableEl represents the structure of a row in the transition table\n";
384 print "// for the rule parser state machine.\n";
385 print "//-------------------------------------------------------------------------------\n";
386 print "struct RBBIRuleTableEl {\n";
387 print " RBBI_RuleParseAction fAction;\n";
388 print " uint8_t fCharClass; // 0-127: an individual ASCII character\n";
389 print " // 128-255: character class index\n";
390 print " uint8_t fNextState; // 0-250: normal next-stat numbers\n";
391 print " // 255: pop next-state from stack.\n";
392 print " uint8_t fPushState;\n";
393 print " UBool fNextChar;\n";
394 print "};\n\n";
399 print "static const struct RBBIRuleTableEl gRuleParseStateTable[] = {\n";
400 print " {doNOP, 0, 0, 0, TRUE}\n"; # State 0 is a dummy. Real states start with index = 1.
402 print " , {$state_func_name[$state],";
407 print " $charClasses{$state_char_class[$state]},";
409 print " $states{$state_dest_state[$state]},";
414 print "0, ";
416 print " $states{$state_push_state[$state]},";
418 print " $state_flag[$state]} ";
422 print " // $state ";
424 print " $stateNames[$state]";
426 print "\n";
428 print " };\n";
436 print "#ifdef RBBI_DEBUG\n";
437 print "static const char * const RBBIRuleStateNames[] = {";
440 print " \"$stateNames[$state]\",\n";
442 print " 0,\n";
445 print " 0};\n";
446 print "#endif\n\n";
448 print "U_NAMESPACE_END\n";
449 print "#endif\n";