|
libqasm
library for handling cQASM files
|
Go to the source code of this file.
Classes | |
| struct | yy_buffer_state |
Macros | |
| #define | cqasm_versionIN_HEADER 1 |
| #define | YY_INT_ALIGNED short int |
| #define | FLEX_SCANNER |
| #define | YY_FLEX_MAJOR_VERSION 2 |
| #define | YY_FLEX_MINOR_VERSION 6 |
| #define | YY_FLEX_SUBMINOR_VERSION 1 |
| #define | FLEX_BETA |
| #define | FLEXINT_H |
| #define | INT8_MIN (-128) |
| #define | INT16_MIN (-32767-1) |
| #define | INT32_MIN (-2147483647-1) |
| #define | INT8_MAX (127) |
| #define | INT16_MAX (32767) |
| #define | INT32_MAX (2147483647) |
| #define | UINT8_MAX (255U) |
| #define | UINT16_MAX (65535U) |
| #define | UINT32_MAX (4294967295U) |
| #define | yyconst const |
| #define | yynoreturn |
| #define | YY_TYPEDEF_YY_SCANNER_T |
| #define | yyin yyg->yyin_r |
| #define | yyout yyg->yyout_r |
| #define | yyextra yyg->yyextra_r |
| #define | yyleng yyg->yyleng_r |
| #define | yytext yyg->yytext_r |
| #define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
| #define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
| #define | yy_flex_debug yyg->yy_flex_debug_r |
| #define | YY_BUF_SIZE 16384 |
| #define | YY_TYPEDEF_YY_BUFFER_STATE |
| #define | YY_TYPEDEF_YY_SIZE_T |
| #define | YY_STRUCT_YY_BUFFER_STATE |
| #define | cqasm_versionwrap(yyscanner) (/*CONSTCOND*/1) |
| #define | YY_SKIP_YYWRAP |
| #define | yytext_ptr yytext_r |
| #define | YY_EXTRA_TYPE void * |
| #define | YY_READ_BUF_SIZE 8192 |
| #define | YY_START_STACK_INCR 25 |
| #define | YY_DECL_IS_OURS 1 |
| #define | YY_DECL |
Typedefs | |
| typedef signed char | flex_int8_t |
| typedef short int | flex_int16_t |
| typedef int | flex_int32_t |
| typedef unsigned char | flex_uint8_t |
| typedef unsigned short int | flex_uint16_t |
| typedef unsigned int | flex_uint32_t |
| typedef void * | yyscan_t |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef size_t | yy_size_t |
Functions | |
| void | cqasm_versionrestart (FILE *input_file, yyscan_t yyscanner) |
| Immediately switch to a different input stream. More... | |
| void | cqasm_version_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
| Switch to a different input buffer. More... | |
| YY_BUFFER_STATE | cqasm_version_create_buffer (FILE *file, int size, yyscan_t yyscanner) |
| Allocate and initialize an input buffer state. More... | |
| void | cqasm_version_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
| Destroy the buffer. More... | |
| void | cqasm_version_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
| Discard all buffered characters. More... | |
| void | cqasm_versionpush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
| Pushes the new state onto the stack. More... | |
| void | cqasm_versionpop_buffer_state (yyscan_t yyscanner) |
| Removes and deletes the top of the stack, if present. More... | |
| YY_BUFFER_STATE | cqasm_version_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner) |
| Setup the input buffer state to scan directly from a user-specified character buffer. More... | |
| YY_BUFFER_STATE | cqasm_version_scan_string (yyconst char *yy_str, yyscan_t yyscanner) |
| Setup the input buffer state to scan a string. More... | |
| YY_BUFFER_STATE | cqasm_version_scan_bytes (yyconst char *bytes, int len, yyscan_t yyscanner) |
| Setup the input buffer state to scan the given bytes. More... | |
| void * | cqasm_versionalloc (yy_size_t, yyscan_t yyscanner) |
| void * | cqasm_versionrealloc (void *, yy_size_t, yyscan_t yyscanner) |
| void | cqasm_versionfree (void *, yyscan_t yyscanner) |
| int | cqasm_versionlex_init (yyscan_t *scanner) |
| int | cqasm_versionlex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner) |
| int | cqasm_versionlex_destroy (yyscan_t yyscanner) |
| int | cqasm_versionget_debug (yyscan_t yyscanner) |
| void | cqasm_versionset_debug (int debug_flag, yyscan_t yyscanner) |
| YY_EXTRA_TYPE | cqasm_versionget_extra (yyscan_t yyscanner) |
| Get the user-defined data for this scanner. More... | |
| void | cqasm_versionset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) |
| Set the user-defined data. More... | |
| FILE * | cqasm_versionget_in (yyscan_t yyscanner) |
| Get the input stream. More... | |
| void | cqasm_versionset_in (FILE *_in_str, yyscan_t yyscanner) |
| Set the input stream. More... | |
| FILE * | cqasm_versionget_out (yyscan_t yyscanner) |
| Get the output stream. More... | |
| void | cqasm_versionset_out (FILE *_out_str, yyscan_t yyscanner) |
| int | cqasm_versionget_leng (yyscan_t yyscanner) |
| Get the length of the current token. More... | |
| char * | cqasm_versionget_text (yyscan_t yyscanner) |
| Get the current token. More... | |
| int | cqasm_versionget_lineno (yyscan_t yyscanner) |
| Get the current line number. More... | |
| void | cqasm_versionset_lineno (int _line_number, yyscan_t yyscanner) |
| Set the current line number. More... | |
| int | cqasm_versionget_column (yyscan_t yyscanner) |
| Get the current column number. More... | |
| void | cqasm_versionset_column (int _column_no, yyscan_t yyscanner) |
| Set the current column. More... | |
| YYSTYPE * | cqasm_versionget_lval (yyscan_t yyscanner) |
| void | cqasm_versionset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner) |
| YYLTYPE * | cqasm_versionget_lloc (yyscan_t yyscanner) |
| void | cqasm_versionset_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner) |
| int | cqasm_versionlex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner) |
#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include <unistd.h>

| #define cqasm_versionIN_HEADER 1 |
Definition at line 3 of file cqasm-version-lexer.hpp.
| #define YY_INT_ALIGNED short int |
Definition at line 9 of file cqasm-version-lexer.hpp.
| #define FLEX_SCANNER |
Definition at line 13 of file cqasm-version-lexer.hpp.
| #define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 14 of file cqasm-version-lexer.hpp.
| #define YY_FLEX_MINOR_VERSION 6 |
Definition at line 15 of file cqasm-version-lexer.hpp.
| #define YY_FLEX_SUBMINOR_VERSION 1 |
Definition at line 16 of file cqasm-version-lexer.hpp.
| #define FLEX_BETA |
Definition at line 18 of file cqasm-version-lexer.hpp.
| #define FLEXINT_H |
Definition at line 34 of file cqasm-version-lexer.hpp.
| #define INT8_MIN (-128) |
Definition at line 64 of file cqasm-version-lexer.hpp.
| #define INT16_MIN (-32767-1) |
Definition at line 67 of file cqasm-version-lexer.hpp.
| #define INT32_MIN (-2147483647-1) |
Definition at line 70 of file cqasm-version-lexer.hpp.
| #define INT8_MAX (127) |
Definition at line 73 of file cqasm-version-lexer.hpp.
| #define INT16_MAX (32767) |
Definition at line 76 of file cqasm-version-lexer.hpp.
| #define INT32_MAX (2147483647) |
Definition at line 79 of file cqasm-version-lexer.hpp.
| #define UINT8_MAX (255U) |
Definition at line 82 of file cqasm-version-lexer.hpp.
| #define UINT16_MAX (65535U) |
Definition at line 85 of file cqasm-version-lexer.hpp.
| #define UINT32_MAX (4294967295U) |
Definition at line 88 of file cqasm-version-lexer.hpp.
| #define yyconst const |
Definition at line 96 of file cqasm-version-lexer.hpp.
| #define yynoreturn |
Definition at line 101 of file cqasm-version-lexer.hpp.
| #define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 106 of file cqasm-version-lexer.hpp.
| #define yyin yyg->yyin_r |
Definition at line 112 of file cqasm-version-lexer.hpp.
| #define yyout yyg->yyout_r |
Definition at line 113 of file cqasm-version-lexer.hpp.
| #define yyextra yyg->yyextra_r |
Definition at line 114 of file cqasm-version-lexer.hpp.
| #define yyleng yyg->yyleng_r |
Definition at line 115 of file cqasm-version-lexer.hpp.
| #define yytext yyg->yytext_r |
Definition at line 116 of file cqasm-version-lexer.hpp.
| #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 117 of file cqasm-version-lexer.hpp.
| #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 118 of file cqasm-version-lexer.hpp.
| #define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 119 of file cqasm-version-lexer.hpp.
| #define YY_BUF_SIZE 16384 |
Definition at line 130 of file cqasm-version-lexer.hpp.
| #define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 135 of file cqasm-version-lexer.hpp.
| #define YY_TYPEDEF_YY_SIZE_T |
Definition at line 140 of file cqasm-version-lexer.hpp.
| #define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 145 of file cqasm-version-lexer.hpp.
| #define cqasm_versionwrap | ( | yyscanner | ) | (/*CONSTCOND*/1) |
Definition at line 211 of file cqasm-version-lexer.hpp.
| #define YY_SKIP_YYWRAP |
Definition at line 212 of file cqasm-version-lexer.hpp.
| #define yytext_ptr yytext_r |
Definition at line 214 of file cqasm-version-lexer.hpp.
| #define YY_EXTRA_TYPE void * |
Definition at line 233 of file cqasm-version-lexer.hpp.
| #define YY_READ_BUF_SIZE 8192 |
Definition at line 311 of file cqasm-version-lexer.hpp.
| #define YY_START_STACK_INCR 25 |
Definition at line 317 of file cqasm-version-lexer.hpp.
| #define YY_DECL_IS_OURS 1 |
Definition at line 324 of file cqasm-version-lexer.hpp.
| #define YY_DECL |
Definition at line 329 of file cqasm-version-lexer.hpp.
| typedef signed char flex_int8_t |
Definition at line 55 of file cqasm-version-lexer.hpp.
| typedef short int flex_int16_t |
Definition at line 56 of file cqasm-version-lexer.hpp.
| typedef int flex_int32_t |
Definition at line 57 of file cqasm-version-lexer.hpp.
| typedef unsigned char flex_uint8_t |
Definition at line 58 of file cqasm-version-lexer.hpp.
| typedef unsigned short int flex_uint16_t |
Definition at line 59 of file cqasm-version-lexer.hpp.
| typedef unsigned int flex_uint32_t |
Definition at line 60 of file cqasm-version-lexer.hpp.
| typedef void* yyscan_t |
Definition at line 107 of file cqasm-version-lexer.hpp.
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 136 of file cqasm-version-lexer.hpp.
| typedef size_t yy_size_t |
Definition at line 141 of file cqasm-version-lexer.hpp.
| void cqasm_versionrestart | ( | FILE * | input_file, |
| yyscan_t | yyscanner | ||
| ) |
Immediately switch to a different input stream.
| input_file | A readable stream. |
| yyscanner | The scanner object. |
INITIAL . Definition at line 1424 of file cqasm-version-lexer.cpp.
| void cqasm_version_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
| yyscan_t | yyscanner | ||
| ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
| yyscanner | The scanner object. |
Definition at line 1442 of file cqasm-version-lexer.cpp.
| YY_BUFFER_STATE cqasm_version_create_buffer | ( | FILE * | file, |
| int | size, | ||
| yyscan_t | yyscanner | ||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
| yyscanner | The scanner object. |
Definition at line 1489 of file cqasm-version-lexer.cpp.
| void cqasm_version_delete_buffer | ( | YY_BUFFER_STATE | b, |
| yyscan_t | yyscanner | ||
| ) |
Destroy the buffer.
| b | a buffer created with cqasm_version_create_buffer() |
| yyscanner | The scanner object. |
Definition at line 1517 of file cqasm-version-lexer.cpp.
| void cqasm_version_flush_buffer | ( | YY_BUFFER_STATE | b, |
| yyscan_t | yyscanner | ||
| ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
| b | the buffer state to be flushed, usually YY_CURRENT_BUFFER. |
| yyscanner | The scanner object. |
Definition at line 1566 of file cqasm-version-lexer.cpp.
| void cqasm_versionpush_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
| yyscan_t | yyscanner | ||
| ) |
Pushes the new state onto the stack.
The new state becomes the current state. This function will allocate the stack if necessary.
| new_buffer | The new state. |
| yyscanner | The scanner object. |
Definition at line 1596 of file cqasm-version-lexer.cpp.
| void cqasm_versionpop_buffer_state | ( | yyscan_t | yyscanner | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
| yyscanner | The scanner object. |
Definition at line 1627 of file cqasm-version-lexer.cpp.
| YY_BUFFER_STATE cqasm_version_scan_buffer | ( | char * | base, |
| yy_size_t | size, | ||
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan directly from a user-specified character buffer.
| base | the character buffer |
| size | the size in bytes of the character buffer |
| yyscanner | The scanner object. |
Definition at line 1697 of file cqasm-version-lexer.cpp.
| YY_BUFFER_STATE cqasm_version_scan_string | ( | yyconst char * | yystr, |
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan a string.
The next call to cqasm_versionlex() will scan from a copy of str.
| yystr | a NUL-terminated string to scan |
| yyscanner | The scanner object. |
Definition at line 1734 of file cqasm-version-lexer.cpp.
| YY_BUFFER_STATE cqasm_version_scan_bytes | ( | yyconst char * | yybytes, |
| int | _yybytes_len, | ||
| yyscan_t | yyscanner | ||
| ) |
Setup the input buffer state to scan the given bytes.
The next call to cqasm_versionlex() will scan from a copy of bytes.
| yybytes | the byte buffer to scan |
| _yybytes_len | the number of bytes in the buffer pointed to by bytes. |
| yyscanner | The scanner object. |
Definition at line 1747 of file cqasm-version-lexer.cpp.
Definition at line 2130 of file cqasm-version-lexer.cpp.
Definition at line 2137 of file cqasm-version-lexer.cpp.
| void cqasm_versionfree | ( | void * | , |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 2152 of file cqasm-version-lexer.cpp.
| int cqasm_versionlex_init | ( | yyscan_t * | scanner | ) |
Definition at line 1983 of file cqasm-version-lexer.cpp.
| int cqasm_versionlex_init_extra | ( | YY_EXTRA_TYPE | user_defined, |
| yyscan_t * | scanner | ||
| ) |
Definition at line 2012 of file cqasm-version-lexer.cpp.
| int cqasm_versionlex_destroy | ( | yyscan_t | yyscanner | ) |
Definition at line 2074 of file cqasm-version-lexer.cpp.
| int cqasm_versionget_debug | ( | yyscan_t | yyscanner | ) |
Definition at line 1938 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_debug | ( | int | debug_flag, |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 1944 of file cqasm-version-lexer.cpp.
| YY_EXTRA_TYPE cqasm_versionget_extra | ( | yyscan_t | yyscanner | ) |
Get the user-defined data for this scanner.
| yyscanner | The scanner object. |
Definition at line 1811 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_extra | ( | YY_EXTRA_TYPE | user_defined, |
| yyscan_t | yyscanner | ||
| ) |
Set the user-defined data.
This data is never touched by the scanner.
| user_defined | The data to be associated with this scanner. |
| yyscanner | The scanner object. |
Definition at line 1884 of file cqasm-version-lexer.cpp.
| FILE* cqasm_versionget_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
| yyscanner | The scanner object. |
Definition at line 1846 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_in | ( | FILE * | _in_str, |
| yyscan_t | yyscanner | ||
| ) |
Set the input stream.
This does not discard the current input buffer.
| _in_str | A readable stream. |
| yyscanner | The scanner object. |
Definition at line 1926 of file cqasm-version-lexer.cpp.
| FILE* cqasm_versionget_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
| yyscanner | The scanner object. |
Definition at line 1855 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_out | ( | FILE * | _out_str, |
| yyscan_t | yyscanner | ||
| ) |
Definition at line 1932 of file cqasm-version-lexer.cpp.
| int cqasm_versionget_leng | ( | yyscan_t | yyscanner | ) |
Get the length of the current token.
| yyscanner | The scanner object. |
Definition at line 1864 of file cqasm-version-lexer.cpp.
| char* cqasm_versionget_text | ( | yyscan_t | yyscanner | ) |
Get the current token.
| yyscanner | The scanner object. |
Definition at line 1874 of file cqasm-version-lexer.cpp.
| int cqasm_versionget_lineno | ( | yyscan_t | yyscanner | ) |
Get the current line number.
| yyscanner | The scanner object. |
Definition at line 1820 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_lineno | ( | int | _line_number, |
| yyscan_t | yyscanner | ||
| ) |
Set the current line number.
| _line_number | line number |
| yyscanner | The scanner object. |
Definition at line 1894 of file cqasm-version-lexer.cpp.
| int cqasm_versionget_column | ( | yyscan_t | yyscanner | ) |
Get the current column number.
| yyscanner | The scanner object. |
Definition at line 1833 of file cqasm-version-lexer.cpp.
| void cqasm_versionset_column | ( | int | _column_no, |
| yyscan_t | yyscanner | ||
| ) |
Set the current column.
| _column_no | column number |
| yyscanner | The scanner object. |
Definition at line 1909 of file cqasm-version-lexer.cpp.
Definition at line 1952 of file cqasm-version-lexer.cpp.
Definition at line 1958 of file cqasm-version-lexer.cpp.
Definition at line 1964 of file cqasm-version-lexer.cpp.
Definition at line 1970 of file cqasm-version-lexer.cpp.
1.8.13