KiCad PCB EDA Suite
dsnlexer.h File Reference
#include <stdio.h>
#include <string>
#include <vector>
#include <hashtables.h>
#include <richio.h>

Go to the source code of this file.

Classes

struct  KEYWORD
 Struct KEYWORD holds a keyword string and its unique integer token. More...
 
class  DSNLEXER
 Class DSNLEXER implements a lexical analyzer for the SPECCTRA DSN file format. More...
 

Enumerations

enum  DSN_SYNTAX_T {
  DSN_NONE = -11, DSN_COMMENT = -10, DSN_STRING_QUOTE = -9, DSN_QUOTE_DEF = -8,
  DSN_DASH = -7, DSN_SYMBOL = -6, DSN_NUMBER = -5, DSN_RIGHT = -4,
  DSN_LEFT = -3, DSN_STRING = -2, DSN_EOF = -1
}
 Enum DSN_SYNTAX_T lists all the DSN lexer's tokens that are supported in lexing. More...
 

Enumeration Type Documentation

Enum DSN_SYNTAX_T lists all the DSN lexer's tokens that are supported in lexing.

It is up to the parser if it wants also to support them.

Enumerator
DSN_NONE 
DSN_COMMENT 
DSN_STRING_QUOTE 
DSN_QUOTE_DEF 
DSN_DASH 
DSN_SYMBOL 
DSN_NUMBER 
DSN_RIGHT 
DSN_LEFT 
DSN_STRING 
DSN_EOF 

Definition at line 58 of file dsnlexer.h.

58  {
59  DSN_NONE = -11,
60  DSN_COMMENT = -10,
61  DSN_STRING_QUOTE = -9,
62  DSN_QUOTE_DEF = -8,
63  DSN_DASH = -7,
64  DSN_SYMBOL = -6,
65  DSN_NUMBER = -5,
66  DSN_RIGHT = -4, // right bracket, ')'
67  DSN_LEFT = -3, // left bracket, '('
68  DSN_STRING = -2, // a quoted string, stripped of the quotes
69  DSN_EOF = -1 // special case for end of file
70 };