<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>include/token.h</title> <meta name='robots' content='noindex,nofollow' /> <meta name='generator' content='GLOBAL-6.6.5' /> <meta http-equiv='Content-Style-Type' content='text/css' /> <link rel='stylesheet' type='text/css' href='../style.css' /> </head> <body> <a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2930.html'>include</a>/token.h</h2> <em class='comment'>/* [<][>][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> <hr /> <h2 class='header'><a href='../J/1316.html' title='Multiple included from 3 places.'>INCLUDED FROM</a></h2> <hr /> <pre> <a id='L1' name='L1'></a> 1 <em class='sharp'>#ifndef</em> <a href='../S/2422.html#L2' title='Defined at 2 in include/token.h.'>YACASL2_TOKEN_INCLUDE</a> <a id='L2' name='L2'></a> 2 <em class='sharp'>#define</em> <a href='../S/2422.html#L1' title='Referred from 1 in include/token.h.'>YACASL2_TOKEN_INCLUDE</a> <a id='L3' name='L3'></a> 3 <a id='L4' name='L4'></a> 4 <em class='sharp'>#include</em> <stdio.h> <a id='L5' name='L5'></a> 5 <em class='sharp'>#include</em> <stdlib.h> <a id='L6' name='L6'></a> 6 <em class='sharp'>#include</em> <string.h> <a id='L7' name='L7'></a> 7 <em class='sharp'>#include</em> <stdbool.h> <a id='L8' name='L8'></a> 8 <em class='sharp'>#include</em> <ctype.h> <a id='L9' name='L9'></a> 9 <em class='sharp'>#include</em> <assert.h> <a id='L10' name='L10'></a> 10 <em class='sharp'>#include</em> <errno.h> <a id='L11' name='L11'></a> 11 <em class='sharp'>#include</em> "<a href='2415.html'>cerr.h</a>" <a id='L12' name='L12'></a> 12 <em class='sharp'>#include</em> "<a href='2424.html'>cmem.h</a>" <a id='L13' name='L13'></a> 13 <a id='L14' name='L14'></a> 14 <em class='comment'>/**</em> <a id='L15' name='L15'></a> 15 <em class='comment'> * @brief CASL IIの仕様</em> <a id='L16' name='L16'></a> 16 <em class='comment'> */</em> <a id='L17' name='L17'></a> 17 <strong class='reserved'>enum</strong> <em class='brace'>{</em> <a id='L18' name='L18'></a> 18 <a href='../R/36.html' title='Multiple referred from 2 places.'>LABELSIZE</a> = 8, <em class='comment'>/**<ラベルの最大文字数 */</em> <a id='L19' name='L19'></a> 19 <a href='../R/52.html' title='Multiple referred from 4 places.'>OPDSIZE</a> = 40, <em class='comment'>/**<オペラントの最大数。CASL IIシミュレータの制限 */</em> <a id='L20' name='L20'></a> 20 <em class='brace'>}</em>; <a id='L21' name='L21'></a> 21 <a id='L22' name='L22'></a> 22 <em class='comment'>/**</em> <a id='L23' name='L23'></a> 23 <em class='comment'> * @brief YACASL2の制限</em> <a id='L24' name='L24'></a> 24 <em class='comment'> */</em> <a id='L25' name='L25'></a> 25 <strong class='reserved'>enum</strong> <em class='brace'>{</em> <a id='L26' name='L26'></a> 26 <a href='../R/39.html' title='Multiple referred from 5 places.'>LINESIZE</a> = 1024, <em class='comment'>/**<行の最大文字数 */</em> <a id='L27' name='L27'></a> 27 TOKENSIZE = 256, <em class='comment'>/**<トークンの最大文字数 */</em> <a id='L28' name='L28'></a> 28 <em class='brace'>}</em>; <a id='L29' name='L29'></a> 29 <a id='L30' name='L30'></a> 30 <em class='comment'>/**</em> <a id='L31' name='L31'></a> 31 <em class='comment'> * @brief オペランドを表すデータ型</em> <a id='L32' name='L32'></a> 32 <em class='comment'> */</em> <a id='L33' name='L33'></a> 33 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em> <a id='L34' name='L34'></a> 34 <strong class='reserved'>int</strong> <a href='../Y/163.html' title='Multiple used in 25 places.'>opdc</a>; <em class='comment'>/**<オペランド数 */</em> <a id='L35' name='L35'></a> 35 <strong class='reserved'>char</strong> *<a href='../Y/164.html' title='Multiple used in 20 places.'>opdv</a>[<a href='../S/2422.html#L19' title='Defined at 19 in include/token.h.'>OPDSIZE</a>]; <em class='comment'>/**<オペランド配列 */</em> <a id='L36' name='L36'></a> 36 <em class='brace'>}</em> <a href='../R/51.html' title='Multiple referred from 6 places.'>OPD</a>; <a id='L37' name='L37'></a> 37 <a id='L38' name='L38'></a> 38 <em class='comment'>/**</em> <a id='L39' name='L39'></a> 39 <em class='comment'> * @brief 命令行を表すデータ型</em> <a id='L40' name='L40'></a> 40 <em class='comment'> */</em> <a id='L41' name='L41'></a> 41 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em> <a id='L42' name='L42'></a> 42 <strong class='reserved'>char</strong> *<a href='../Y/127.html' title='Multiple used in 44 places.'>label</a>; <em class='comment'>/**<ラベル */</em> <a id='L43' name='L43'></a> 43 <strong class='reserved'>char</strong> *<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>; <em class='comment'>/**<コマンド */</em> <a id='L44' name='L44'></a> 44 <a href='../S/2422.html#L36' title='Defined at 36 in include/token.h.'>OPD</a> *<a href='../Y/162.html' title='Multiple used in 50 places.'>opd</a>; <em class='comment'>/**<オペランド */</em> <a id='L45' name='L45'></a> 45 <em class='brace'>}</em> <a href='../R/13.html' title='Multiple referred from 28 places.'>CMDLINE</a>; <a id='L46' name='L46'></a> 46 <a id='L47' name='L47'></a> 47 <em class='comment'>/**</em> <a id='L48' name='L48'></a> 48 <em class='comment'> * @brief トークン取得のエラーを追加する</em> <a id='L49' name='L49'></a> 49 <em class='comment'> *</em> <a id='L50' name='L50'></a> 50 <em class='comment'> * @return なし</em> <a id='L51' name='L51'></a> 51 <em class='comment'> */</em> <a id='L52' name='L52'></a> 52 <strong class='reserved'>void</strong> <a href='../S/2820.html#L91' title='Defined at 91 in src/token.c.'>addcerrlist_tok</a>(); <a id='L53' name='L53'></a> 53 <a id='L54' name='L54'></a> 54 <em class='comment'>/**</em> <a id='L55' name='L55'></a> 55 <em class='comment'> * @brief 行から、ラベル・コマンド・オペランドを取得する</em> <a id='L56' name='L56'></a> 56 <em class='comment'> *</em> <a id='L57' name='L57'></a> 57 <em class='comment'> * @return ラベル・コマンド・オペランド</em> <a id='L58' name='L58'></a> 58 <em class='comment'> *</em> <a id='L59' name='L59'></a> 59 <em class='comment'> * @param *line 行</em> <a id='L60' name='L60'></a> 60 <em class='comment'> */</em> <a id='L61' name='L61'></a> 61 <a href='../S/2422.html#L45' title='Defined at 45 in include/token.h.'>CMDLINE</a> *<a href='../S/2820.html#L97' title='Defined at 97 in src/token.c.'>linetok</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/132.html' title='Multiple used in 41 places.'>line</a>); <a id='L62' name='L62'></a> 62 <a id='L63' name='L63'></a> 63 <em class='sharp'>#endif</em> </pre> <hr /> <a id='BOTTOM' name='BOTTOM'></a> <em class='comment'>/* [<][>][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em> </body> </html>