Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

AtomLexer.C File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "AtomParser.h"
#include "y.tab.h"
#include "Inform.h"
#include "SymbolTable.h"

Go to the source code of this file.


Compounds

struct yy_buffer_state

Defines

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_USE_PROTOS
#define YY_USE_CONST
#define yyconst const
#define YY_PROTO(proto) proto
#define YY_NULL 0
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
#define BEGIN yy_start = 1 + 2 *
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
#define YY_BUF_SIZE 16384
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define yyless(n)
#define unput(c) yyunput( c, yytext_ptr )
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
#define YY_BUFFER_EOF_PENDING 2
#define YY_CURRENT_BUFFER yy_current_buffer
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
#define yytext_ptr yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES 51
#define YY_END_OF_BUFFER 52
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL 0
#define YY_ALWAYS_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNPUT 1
#define YY_DECL extern "C" int yylex YY_PROTO(( void ))
#define YY_INPUT(buf, result, max)
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#define YY_READ_BUF_SIZE 8192
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#define yyterminate() return YY_NULL
#define YY_START_STACK_INCR 25
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#define YY_BREAK break;
#define YY_RULE_SETUP YY_USER_ACTION
#define YY_EXIT_FAILURE 2
#define yyless(n)

Typedefs

typedef yy_buffer_state * YY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
void yy_load_buffer_state YY_PROTO ((void))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))
YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size))
YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str))
YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len))
void *yy_flex_alloc YY_PROTO ((yy_size_t))
void *yy_flex_realloc YY_PROTO ((void *, yy_size_t))
void yy_flex_free YY_PROTO ((void *))
yy_state_type yy_try_NUL_trans YY_PROTO ((yy_state_type current_state))
void yy_fatal_error YY_PROTO ((yyconst char msg[]))

Variables

int yyleng
FILE * yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
YY_BUFFER_STATE yy_current_buffer = 0
char yy_hold_char
int yy_n_chars
char * yy_c_buf_p = (char *) 0
int yy_init = 1
int yy_start = 0
int yy_did_buffer_switch_on_eof
char * yytext
yyconst short int yy_accept [155]
yyconst int yy_ec [256]
yyconst int yy_meta [51]
yyconst short int yy_base [167]
yyconst short int yy_def [167]
yyconst short int yy_nxt [437]
yyconst short int yy_chk [437]
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
SymbolTable * atomparser_symbols
contains the list of the functions and keywords. More...


Define Documentation

#define BEGIN yy_start = 1 + 2 *

Definition at line 80 of file AtomLexer.C.

#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )

Definition at line 690 of file AtomLexer.C.

Referenced by enableRawMode.

#define EOB_ACT_CONTINUE_SCAN 0

Definition at line 105 of file AtomLexer.C.

#define EOB_ACT_END_OF_FILE 1

Definition at line 106 of file AtomLexer.C.

#define EOB_ACT_LAST_MATCH 2

Definition at line 107 of file AtomLexer.C.

#define FLEX_SCANNER

Definition at line 7 of file AtomLexer.C.

#define INITIAL 0

Definition at line 510 of file AtomLexer.C.

#define REJECT reject_used_but_not_detected

Definition at line 504 of file AtomLexer.C.

#define unput ( c ) yyunput( c, yytext_ptr )

Definition at line 136 of file AtomLexer.C.

#define YY_ALWAYS_INTERACTIVE 1

Definition at line 538 of file AtomLexer.C.

#define YY_AT_BOL ( ) (yy_current_buffer->yy_at_bol)

Definition at line 263 of file AtomLexer.C.

#define YY_BREAK break;

Definition at line 749 of file AtomLexer.C.

#define YY_BUF_SIZE 16384

Definition at line 98 of file AtomLexer.C.

#define YY_BUFFER_EOF_PENDING 2

Definition at line 199 of file AtomLexer.C.

#define YY_BUFFER_NEW 0

Definition at line 187 of file AtomLexer.C.

#define YY_BUFFER_NORMAL 1

Definition at line 188 of file AtomLexer.C.

#define YY_CURRENT_BUFFER yy_current_buffer

Definition at line 208 of file AtomLexer.C.

#define YY_DECL extern "C" int yylex YY_PROTO(( void ))

Definition at line 559 of file AtomLexer.C.

#define YY_DO_BEFORE_ACTION

Value:

yytext_ptr = yy_bp; \
 yyleng = (int) (yy_cp - yy_bp); \
 yy_hold_char = *yy_cp; \
 *yy_cp = '0円'; \
 yy_c_buf_p = yy_cp;

Definition at line 279 of file AtomLexer.C.

#define YY_END_OF_BUFFER 52

Definition at line 287 of file AtomLexer.C.

#define YY_END_OF_BUFFER_CHAR 0

Definition at line 95 of file AtomLexer.C.

#define YY_EXIT_FAILURE 2

#define YY_FATAL_ERROR ( msg ) yy_fatal_error( msg )

Definition at line 730 of file AtomLexer.C.

#define YY_FLEX_MAJOR_VERSION 2

Definition at line 8 of file AtomLexer.C.

#define YY_FLEX_MINOR_VERSION 5

Definition at line 9 of file AtomLexer.C.

#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

Definition at line 237 of file AtomLexer.C.

#define YY_INPUT ( buf,
result,
max )

Value:

{ \
 int c = *atomparser_yystring; \
 result = (c == 0) ? YY_NULL : \
 (buf[0] = c, atomparser_yystring++, 1); \
}

Definition at line 563 of file AtomLexer.C.

#define YY_MORE_ADJ 0

Definition at line 506 of file AtomLexer.C.

#define yy_new_buffer yy_create_buffer

Definition at line 247 of file AtomLexer.C.

#define YY_NEW_FILE yyrestart( yyin )

Definition at line 93 of file AtomLexer.C.

#define YY_NO_INPUT 1

Definition at line 557 of file AtomLexer.C.

#define YY_NO_POP_STATE 1

Definition at line 660 of file AtomLexer.C.

#define YY_NO_PUSH_STATE 1

Definition at line 659 of file AtomLexer.C.

#define YY_NO_TOP_STATE 1

Definition at line 661 of file AtomLexer.C.

#define YY_NO_UNPUT 1

Definition at line 558 of file AtomLexer.C.

#define YY_NULL 0

Definition at line 67 of file AtomLexer.C.

#define YY_NUM_RULES 51

Definition at line 286 of file AtomLexer.C.

#define YY_PROTO ( proto ) proto

Definition at line 61 of file AtomLexer.C.

#define YY_READ_BUF_SIZE 8192

Definition at line 681 of file AtomLexer.C.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 507 of file AtomLexer.C.

#define YY_RULE_SETUP YY_USER_ACTION

Definition at line 752 of file AtomLexer.C.

#define YY_SC_TO_UI ( c ) ((unsigned int) (unsigned char) c)

Definition at line 74 of file AtomLexer.C.

#define yy_set_bol ( at_bol )

Value:

{ \
 if ( ! yy_current_buffer ) \
 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
 yy_current_buffer->yy_at_bol = at_bol; \
 }

Definition at line 256 of file AtomLexer.C.

#define yy_set_interactive ( is_interactive )

Value:

{ \
 if ( ! yy_current_buffer ) \
 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
 yy_current_buffer->yy_is_interactive = is_interactive; \
 }

Definition at line 249 of file AtomLexer.C.

#define YY_START ((yy_start - 1) / 2)

Definition at line 86 of file AtomLexer.C.

#define YY_START_STACK_INCR 25

Definition at line 725 of file AtomLexer.C.

#define YY_STATE_EOF ( state ) (YY_END_OF_BUFFER + state + 1)

Definition at line 90 of file AtomLexer.C.

#define YY_USE_CONST

Definition at line 39 of file AtomLexer.C.

#define YY_USE_PROTOS

Definition at line 38 of file AtomLexer.C.

#define yyconst const

Definition at line 54 of file AtomLexer.C.

#define yyless ( n )

Value:

do \
 { \
 \
 yytext[yyleng] = yy_hold_char; \
 yy_c_buf_p = yytext + n; \
 yy_hold_char = *yy_c_buf_p; \
 *yy_c_buf_p = '0円'; \
 yyleng = n; \
 } \
 while ( 0 )

Definition at line 125 of file AtomLexer.C.

#define yyless ( n )

Value:

do \
 { \
 \
 *yy_cp = yy_hold_char; \
 YY_RESTORE_YY_MORE_OFFSET \
 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
 YY_DO_BEFORE_ACTION; \
 } \
 while ( 0 )

Definition at line 125 of file AtomLexer.C.

#define yymore ( ) yymore_used_but_not_detected

Definition at line 505 of file AtomLexer.C.

#define YYSTATE YY_START

Definition at line 87 of file AtomLexer.C.

#define yyterminate ( ) return YY_NULL

Definition at line 720 of file AtomLexer.C.

#define yytext_ptr yytext

Definition at line 269 of file AtomLexer.C.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 100 of file AtomLexer.C.

typedef unsigned char YY_CHAR

Definition at line 265 of file AtomLexer.C.

typedef unsigned int yy_size_t

Definition at line 142 of file AtomLexer.C.

typedef int yy_state_type

Definition at line 267 of file AtomLexer.C.


Function Documentation

void yy_fatal_error YY_PROTO ( (yyconst char msg[]) ) [static]

yy_state_type yy_try_NUL_trans YY_PROTO ( (yy_state_type current_state) ) [static]

void yy_flex_free YY_PROTO ( (void *) ) [static]

void* yy_flex_realloc YY_PROTO ( (void *, yy_size_t) ) [static]

void* yy_flex_alloc YY_PROTO ( (yy_size_t) ) [static]

YY_BUFFER_STATE yy_scan_bytes YY_PROTO ( (yyconst char *bytes, int len) )

YY_BUFFER_STATE yy_scan_string YY_PROTO ( (yyconst char *yy_str) )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO ( (char *base, yy_size_t size) )

void yy_init_buffer YY_PROTO ( (YY_BUFFER_STATE b, FILE *file) )

void yy_flush_buffer YY_PROTO ( (YY_BUFFER_STATE b) )

YY_BUFFER_STATE yy_create_buffer YY_PROTO ( (FILE *file, int size) )

int yywrap YY_PROTO ( (void) )

void yy_switch_to_buffer YY_PROTO ( (YY_BUFFER_STATE new_buffer) )

void yyrestart YY_PROTO ( (FILE *input_file) )


Variable Documentation

SymbolTable* atomparser_symbols

contains the list of the functions and keywords.

Definition at line 2076 of file AtomLexer.C.

yyconst short int yy_accept[155] [static]

Initial value:

 { 0,
 0, 0, 52, 50, 46, 46, 50, 23, 49, 43,
 50, 24, 2, 3, 42, 39, 40, 50, 41, 48,
 20, 25, 28, 30, 49, 49, 44, 49, 49, 49,
 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
 50, 31, 23, 21, 23, 49, 4, 24, 22, 24,
 45, 0, 1, 47, 1, 48, 26, 27, 38, 29,
 49, 47, 49, 49, 49, 16, 34, 49, 49, 35,
 36, 33, 32, 49, 37, 49, 13, 5, 49, 49,
 49, 17, 49, 49, 5, 21, 23, 22, 24, 17,
 0, 47, 47, 47, 47, 4, 49, 49, 49, 49,
 6, 49, 49, 49, 49, 49, 0, 0, 0, 0,
 0, 1, 49, 14, 49, 49, 49, 49, 15, 49,
 49, 0, 0, 49, 49, 49, 49, 49, 18, 49,
 49, 49, 49, 49, 49, 7, 49, 49, 19, 49,
 49, 49, 8, 49, 9, 12, 49, 49, 49, 49,
 49, 11, 10, 0
 }

Definition at line 288 of file AtomLexer.C.

yyconst short int yy_base[167] [static]

Initial value:

 { 0,
 0, 0, 323, 386, 386, 386, 286, 46, 0, 386,
 286, 43, 386, 386, 279, 386, 386, 38, 386, 39,
 386, 253, 37, 246, 0, 53, 386, 55, 36, 24,
 37, 47, 56, 58, 68, 66, 70, 64, 76, 82,
 162, 386, 77, 386, 106, 0, 386, 50, 386, 60,
 386, 184, 103, 178, 153, 106, 386, 386, 386, 386,
 0, 117, 120, 93, 99, 95, 97, 101, 109, 107,
 111, 113, 115, 117, 129, 121, 123, 130, 131, 132,
 140, 141, 149, 147, 386, 156, 175, 176, 178, 386,
 179, 125, 0, 189, 0, 160, 170, 169, 172, 178,
 179, 188, 186, 187, 190, 200, 183, 221, 225, 226,
 123, 100, 201, 199, 211, 210, 212, 219, 220, 228,
 226, 234, 255, 234, 232, 235, 242, 244, 245, 246,
 255, 253, 256, 266, 259, 274, 267, 270, 273, 276,
 284, 282, 280, 291, 290, 292, 293, 294, 308, 309,
 301, 305, 307, 386, 351, 82, 355, 358, 59, 361,
 364, 367, 370, 374, 378, 381
 }

Definition at line 350 of file AtomLexer.C.

char* yy_c_buf_p = (char *) 0 [static]

Definition at line 220 of file AtomLexer.C.

yyconst short int yy_chk[437] [static]

Definition at line 446 of file AtomLexer.C.

YY_BUFFER_STATE yy_current_buffer = 0 [static]

Definition at line 202 of file AtomLexer.C.

yyconst short int yy_def[167] [static]

Initial value:

 { 0,
 154, 1, 154, 154, 154, 154, 154, 155, 156, 154,
 154, 157, 154, 154, 154, 154, 154, 154, 154, 158,
 154, 154, 154, 154, 159, 160, 154, 160, 28, 28,
 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
 154, 154, 155, 154, 155, 156, 154, 157, 154, 157,
 154, 154, 154, 161, 154, 158, 154, 154, 154, 154,
 159, 162, 163, 28, 28, 28, 28, 28, 28, 28,
 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
 28, 28, 28, 28, 154, 164, 155, 165, 157, 154,
 154, 161, 166, 162, 162, 28, 28, 28, 28, 28,
 28, 28, 28, 28, 28, 28, 164, 164, 165, 165,
 154, 154, 28, 28, 28, 28, 28, 28, 28, 28,
 28, 164, 165, 28, 28, 28, 28, 28, 28, 28,
 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
 28, 28, 28, 0, 154, 154, 154, 154, 154, 154,
 154, 154, 154, 154, 154, 154
 }

Definition at line 372 of file AtomLexer.C.

int yy_did_buffer_switch_on_eof [static]

Definition at line 227 of file AtomLexer.C.

yyconst int yy_ec[256] [static]

Definition at line 309 of file AtomLexer.C.

char yy_hold_char [static]

Definition at line 212 of file AtomLexer.C.

int yy_init = 1 [static]

Definition at line 221 of file AtomLexer.C.

char* yy_last_accepting_cpos [static]

Definition at line 499 of file AtomLexer.C.

yy_state_type yy_last_accepting_state [static]

Definition at line 498 of file AtomLexer.C.

yyconst int yy_meta[51] [static]

Initial value:

 { 0,
 1, 1, 1, 1, 2, 1, 1, 1, 2, 1,
 1, 1, 1, 1, 3, 1, 4, 1, 1, 1,
 1, 1, 4, 4, 1, 1, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 1, 1, 1, 1
 }

Definition at line 341 of file AtomLexer.C.

int yy_n_chars [static]

Definition at line 214 of file AtomLexer.C.

yyconst short int yy_nxt[437] [static]

Definition at line 394 of file AtomLexer.C.

int yy_start = 0 [static]

Definition at line 222 of file AtomLexer.C.

FILE * yyin = (FILE *) 0

Definition at line 266 of file AtomLexer.C.

int yyleng

Definition at line 217 of file AtomLexer.C.

FILE * yyout = (FILE *) 0

Definition at line 266 of file AtomLexer.C.

char * yytext

Definition at line 508 of file AtomLexer.C.


Generated on Mon Nov 17 02:47:31 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /