1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348 |
- /* These are parse tables for a Tektronix 4014, almost identical to the
- parse tables in the source to xterm(1), which are dated 86/12/01. They
- are used by tek2plot.
- The only difference between these tables and the 1986 version is the
- inclusion of a CASE_ANSI state, which is used for parsing the ANSI-style
- escape sequences which some Tektronix emulators support. */
-
- /* States here that correspond to the five basic Tektronix 4014 plotting
- modes are:
- ALPHA (ALP)
- PLOT (PLT)
- POINT (PT)
- SPECIAL POINT PLOT (SPT)
- INCREMENTAL PLOT (IPT)
- Other states corresponding to internal Tektronix states are:
- BES BYP ESC
- Additional states, namely (in alphabetical order)
- ANSI APL ASCII BEAM_VEC BEL BS CHAR_SIZE COPY CR CURSTATE GIN IGNORE
- IPL_POINT LF OSC PAGE PENDOWN PENUP PLT_VEC PRINT PT_POINT REPORT SP
- SPT_POINT TAB UP VT_MODE
- are simply advisory to the parser. */
- #include "Tekparse.h"
- /* States corresponding to the five basic Tektronix plotting modes */
- /* transition table for ALPHA mode (CASE_ALP_STATE) */
- int Talptable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_ESC_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_SP,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* $ % & ' */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* ( ) * + */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* , - . / */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* 0 1 2 3 */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* 4 5 6 7 */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* 8 9 : ; */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* < = > ? */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* @ A B C */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* D E F G */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* H I J K */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* L M N O */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* P Q R S */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* T U V W */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* X Y Z [ */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* \ ] ^ _ */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* ` a b c */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* d e f g */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* h i j k */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* l m n o */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* p q r s */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* t u v w */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* x y z { */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- /* | } ~ DEL */
- CASE_PRINT,
- CASE_PRINT,
- CASE_PRINT,
- CASE_IGNORE,
- };
- /* transition table for PLOT mode (CASE_PLT_STATE) */
- int Tplttable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_ESC_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* $ % & ' */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* ( ) * + */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* , - . / */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* 0 1 2 3 */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* 4 5 6 7 */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* 8 9 : ; */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* < = > ? */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* @ A B C */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* D E F G */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* H I J K */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* L M N O */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* P Q R S */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* T U V W */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* X Y Z [ */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* \ ] ^ _ */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* ` a b c */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* d e f g */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* h i j k */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* l m n o */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* p q r s */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* t u v w */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* x y z { */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- /* | } ~ DEL */
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- CASE_PLT_VEC,
- };
- /* transition table for POINT mode (CASE_PT_STATE) */
- int Tpttable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_ESC_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* $ % & ' */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* ( ) * + */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* , - . / */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* 0 1 2 3 */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* 4 5 6 7 */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* 8 9 : ; */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* < = > ? */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* @ A B C */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* D E F G */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* H I J K */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* L M N O */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* P Q R S */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* T U V W */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* X Y Z [ */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* \ ] ^ _ */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* ` a b c */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* d e f g */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* h i j k */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* l m n o */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* p q r s */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* t u v w */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* x y z { */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- /* | } ~ DEL */
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- CASE_PT_POINT,
- };
- /* transition table for SPECIAL POINT PLOT mode (CASE_SPT_STATE) */
- int Tspttable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_ESC_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* $ % & ' */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* ( ) * + */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* , - . / */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* 0 1 2 3 */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* 4 5 6 7 */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* 8 9 : ; */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* < = > ? */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* @ A B C */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* D E F G */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* H I J K */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* L M N O */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* P Q R S */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* T U V W */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* X Y Z [ */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* \ ] ^ _ */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* ` a b c */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* d e f g */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* h i j k */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* l m n o */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* p q r s */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* t u v w */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* x y z { */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- /* | } ~ DEL */
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- CASE_SPT_POINT,
- };
- /* transition table for INCREMENTAL PLOT mode (CASE_IPL_STATE) */
- int Tipltable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_ESC_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_PENUP,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* $ % & ' */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* ( ) * + */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* , - . / */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 0 1 2 3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 4 5 6 7 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 8 9 : ; */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* < = > ? */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* @ A B C */
- CASE_IGNORE,
- CASE_IPL_POINT,
- CASE_IPL_POINT,
- CASE_IGNORE,
- /* D E F G */
- CASE_IPL_POINT,
- CASE_IPL_POINT,
- CASE_IPL_POINT,
- CASE_IGNORE,
- /* H I J K */
- CASE_IPL_POINT,
- CASE_IPL_POINT,
- CASE_IPL_POINT,
- CASE_IGNORE,
- /* L M N O */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* P Q R S */
- CASE_PENDOWN,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* T U V W */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* X Y Z [ */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* \ ] ^ _ */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* ` a b c */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* d e f g */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* h i j k */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* l m n o */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* p q r s */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* t u v w */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* x y z { */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* | } ~ DEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- };
- /* Other states */
- /* transition table for CASE_BES_STATE */
- int Tbestable[] = {
- /* NUL SOH STX ETX */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_VT_MODE,
- /* EOT ENQ ACK BEL */
- CASE_BYP_STATE,
- CASE_REPORT,
- CASE_BYP_STATE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_IGNORE,
- CASE_UP,
- /* NP CR SO SI */
- CASE_PAGE,
- CASE_IGNORE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* DLE DC1 DC2 DC3 */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* DC4 NAK SYN ETB */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_COPY,
- /* CAN EM SUB ESC */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_GIN,
- CASE_IGNORE,
- /* FS GS RS US */
- CASE_SPT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* $ % & ' */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* ( ) * + */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* , - . / */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* 0 1 2 3 */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* 4 5 6 7 */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* 8 9 : ; */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* < = > ? */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* @ A B C */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* D E F G */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* H I J K */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* L M N O */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* P Q R S */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* T U V W */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* X Y Z [ */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* \ ] ^ _ */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* ` a b c */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* d e f g */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* h i j k */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* l m n o */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* p q r s */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* t u v w */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* x y z { */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- /* | } ~ DEL */
- CASE_BYP_STATE,
- CASE_BYP_STATE,
- CASE_IGNORE,
- CASE_BYP_STATE,
- };
- /* transition table for CASE_BYP_STATE */
- int Tbyptable[] = {
- /* NUL SOH STX ETX */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* EOT ENQ ACK BEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_LF,
- CASE_UP,
- /* NP CR SO SI */
- CASE_IGNORE,
- CASE_CR,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DLE DC1 DC2 DC3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* DC4 NAK SYN ETB */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* CAN EM SUB ESC */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_BES_STATE,
- /* FS GS RS US */
- CASE_PT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* $ % & ' */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* ( ) * + */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* , - . / */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 0 1 2 3 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 4 5 6 7 */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* 8 9 : ; */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* < = > ? */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* @ A B C */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* D E F G */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* H I J K */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* L M N O */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* P Q R S */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* T U V W */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* X Y Z [ */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* \ ] ^ _ */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* ` a b c */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* d e f g */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* h i j k */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* l m n o */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* p q r s */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* t u v w */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* x y z { */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- /* | } ~ DEL */
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- CASE_IGNORE,
- };
- /* transition table for CASE_ESC_STATE */
- int Tesctable[] = {
- /* NUL SOH STX ETX */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_VT_MODE,
- /* EOT ENQ ACK BEL */
- CASE_CURSTATE,
- CASE_REPORT,
- CASE_CURSTATE,
- CASE_BEL,
- /* BS HT NL VT */
- CASE_BS,
- CASE_TAB,
- CASE_IGNORE,
- CASE_UP,
- /* NP CR SO SI */
- CASE_PAGE,
- CASE_IGNORE,
- CASE_APL,
- CASE_ASCII,
- /* DLE DC1 DC2 DC3 */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* DC4 NAK SYN ETB */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_COPY,
- /* CAN EM SUB ESC */
- CASE_BYP_STATE,
- CASE_CURSTATE,
- CASE_GIN,
- CASE_IGNORE,
- /* FS GS RS US */
- CASE_SPT_STATE,
- CASE_PLT_STATE,
- CASE_IPL_STATE,
- CASE_ALP_STATE,
- /* SP ! " # */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* $ % & ' */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* ( ) * + */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* , - . / */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* 0 1 2 3 */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* 4 5 6 7 */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* 8 9 : ; */
- CASE_CHAR_SIZE,
- CASE_CHAR_SIZE,
- CASE_CHAR_SIZE,
- CASE_CHAR_SIZE,
- /* < = > ? */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* @ A B C */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* D E F G */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* H I J K */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* L M N O */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* P Q R S */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* T U V W */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* X Y Z [ */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_ANSI,
- /* \ ] ^ _ */
- CASE_CURSTATE,
- CASE_OSC,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* ` a b c */
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- /* d e f g */
- CASE_BEAM_VEC,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_BEAM_VEC,
- /* h i j k */
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- /* l m n o */
- CASE_BEAM_VEC,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_BEAM_VEC,
- /* p q r s */
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- CASE_BEAM_VEC,
- /* t u v w */
- CASE_BEAM_VEC,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_BEAM_VEC,
- /* x y z { */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_CURSTATE,
- /* | } ~ DEL */
- CASE_CURSTATE,
- CASE_CURSTATE,
- CASE_IGNORE,
- CASE_CURSTATE,
- };
|