libqasm
library for handling cQASM files
Classes | Macros | Typedefs | Enumerations | Functions
cqasm-version-parser.hpp File Reference

Parser, generated by Bison. More...

Go to the source code of this file.

Classes

union  CQASM_VERSIONSTYPE
 
struct  CQASM_VERSIONLTYPE
 

Macros

#define CQASM_VERSIONDEBUG   0
 
#define YYSTYPE   CQASM_VERSIONSTYPE
 
#define YYLTYPE   CQASM_VERSIONLTYPE
 
#define CQASM_VERSIONTOKENTYPE
 
#define CQASM_VERSIONSTYPE_IS_TRIVIAL   1
 
#define CQASM_VERSIONSTYPE_IS_DECLARED   1
 
#define CQASM_VERSIONLTYPE_IS_DECLARED   1
 
#define CQASM_VERSIONLTYPE_IS_TRIVIAL   1
 

Typedefs

typedef void * yyscan_t
 
typedef union CQASM_VERSIONSTYPE CQASM_VERSIONSTYPE
 
typedef struct CQASM_VERSIONLTYPE CQASM_VERSIONLTYPE
 

Enumerations

enum  cqasm_versiontokentype {
  VERSION = 258, INT_LITERAL = 259, UNKNOWN = 260, END_OF_FILE = 261,
  VERSION = 258, INT_LITERAL = 259, UNKNOWN = 260, END_OF_FILE = 261
}
 

Functions

int cqasm_versionparse (yyscan_t scanner, cqasm::version::ParseHelper &helper)
 

Detailed Description

Parser, generated by Bison.

Definition in file cqasm-version-parser.hpp.

#include <memory>
#include <cstdio>
#include <cstdint>
#include "cqasm-error.hpp"
#include "cqasm-version.hpp"
Include dependency graph for cqasm-version-parser.hpp:
This graph shows which files directly or indirectly include this file:

Macro Definition Documentation

◆ CQASM_VERSIONDEBUG

#define CQASM_VERSIONDEBUG   0

Definition at line 44 of file cqasm-version-parser.hpp.

◆ YYSTYPE

#define YYSTYPE   CQASM_VERSIONSTYPE

Definition at line 65 of file cqasm-version-parser.hpp.

◆ YYLTYPE

#define YYLTYPE   CQASM_VERSIONLTYPE

Definition at line 66 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONTOKENTYPE

#define CQASM_VERSIONTOKENTYPE

Definition at line 73 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONSTYPE_IS_TRIVIAL

#define CQASM_VERSIONSTYPE_IS_TRIVIAL   1

Definition at line 95 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONSTYPE_IS_DECLARED

#define CQASM_VERSIONSTYPE_IS_DECLARED   1

Definition at line 96 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONLTYPE_IS_DECLARED

#define CQASM_VERSIONLTYPE_IS_DECLARED   1

Definition at line 109 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONLTYPE_IS_TRIVIAL

#define CQASM_VERSIONLTYPE_IS_TRIVIAL   1

Definition at line 110 of file cqasm-version-parser.hpp.

Typedef Documentation

◆ yyscan_t

typedef void* yyscan_t

Definition at line 63 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONSTYPE

Definition at line 85 of file cqasm-version-parser.hpp.

◆ CQASM_VERSIONLTYPE

Definition at line 101 of file cqasm-version-parser.hpp.

Enumeration Type Documentation

◆ cqasm_versiontokentype

Enumerator
VERSION 
INT_LITERAL 
UNKNOWN 
END_OF_FILE 
VERSION 
INT_LITERAL 
UNKNOWN 
END_OF_FILE 

Definition at line 74 of file cqasm-version-parser.hpp.

Function Documentation

◆ cqasm_versionparse()

int cqasm_versionparse ( yyscan_t  scanner,
cqasm::version::ParseHelper helper 
)