📄 oaverilogscanner.inl
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogScanner.inl//// This file contains the implementation for inline and template member// functions of classes defined in oaVerilogScanner.h file.//// *****************************************************************************// Except as specified in the OpenAccess terms of use of Cadence or Silicon// Integration Initiative, this material may not be copied, modified,// re-published, uploaded, executed, or distributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.//// Copyright 2003-2005 Cadence Design Systems, Inc.// All Rights Reserved.//// $Author: sailajad $// $Revision: 1.1 $// $Date: 2005/08/05 21:48:55 $// $State: Exp $// *****************************************************************************// *****************************************************************************#ifndef oaVerilogScanner_I#define oaVerilogScanner_IBEGIN_VERILOG_NAMESPACE// *****************************************************************************// Scanner::Scanner//// This is the constructor for the Scanner class. It takes no// arguments.// *****************************************************************************inlineScanner::Scanner(): yyFlexLexer(){ clearStack();}// *****************************************************************************// Scanner::getCurrentFileName//// This function returns the name of the current file being scanned.// *****************************************************************************inline const char*Scanner::getCurrentFileName() const{ return (const char*) fileName[includeStackPtr];}// *****************************************************************************// Scanner::getCurrentLineNumber//// This function returns the line number of the current file being scanned.// *****************************************************************************inline oaUInt4Scanner::getCurrentLineNumber() const{ return fileLineNumber[includeStackPtr];}// *****************************************************************************// Scanner::yylex//// This is the main entry point for the scanner. It is called by the parser to// read a token from the input file. It returns a token id and may push an// associated value into lvalIn.// *****************************************************************************inline intScanner::yylex(ParserStypeWrapper *lvalIn){ yylval = lvalIn; return yylex();}END_VERILOG_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -