mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Internal: Rename tokenPipeScanTypeEq. No functional change.
This commit is contained in:
parent
4660806c8f
commit
eb3f10399a
@ -421,7 +421,7 @@ size_t V3ParseImp::tokenPipeScanParam(size_t depth) {
|
|||||||
return depth;
|
return depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t V3ParseImp::tokenPipeScanType(size_t depth) {
|
size_t V3ParseImp::tokenPipeScanTypeEq(size_t depth) {
|
||||||
// Search around IEEE type_reference to see if is expression
|
// Search around IEEE type_reference to see if is expression
|
||||||
// Return location of following token, or input if not found
|
// Return location of following token, or input if not found
|
||||||
// yTYPE__ETC '(' ... ')' ['==' '===' '!=' '!===']
|
// yTYPE__ETC '(' ... ')' ['==' '===' '!=' '!===']
|
||||||
@ -431,7 +431,7 @@ size_t V3ParseImp::tokenPipeScanType(size_t depth) {
|
|||||||
while (true) {
|
while (true) {
|
||||||
const int tok = tokenPeekp(depth)->token;
|
const int tok = tokenPeekp(depth)->token;
|
||||||
if (tok == 0) { // LCOV_EXCL_BR_LINE
|
if (tok == 0) { // LCOV_EXCL_BR_LINE
|
||||||
UINFO(9, "tokenPipeScanType hit EOF; probably syntax error to come");
|
UINFO(9, "tokenPipeScanTypeEq hit EOF; probably syntax error to come");
|
||||||
break; // LCOV_EXCL_LINE
|
break; // LCOV_EXCL_LINE
|
||||||
} else if (tok == '(') {
|
} else if (tok == '(') {
|
||||||
++parens;
|
++parens;
|
||||||
@ -519,7 +519,7 @@ void V3ParseImp::tokenPipeline() {
|
|||||||
}
|
}
|
||||||
} else if (token == yTYPE__LEX) {
|
} else if (token == yTYPE__LEX) {
|
||||||
VL_RESTORER(yylval); // Remember value, as about to read ahead
|
VL_RESTORER(yylval); // Remember value, as about to read ahead
|
||||||
const size_t depth = tokenPipeScanType(0);
|
const size_t depth = tokenPipeScanTypeEq(0);
|
||||||
const int postToken = tokenPeekp(depth)->token;
|
const int postToken = tokenPeekp(depth)->token;
|
||||||
if ( // v-- token v-- postToken
|
if ( // v-- token v-- postToken
|
||||||
// yTYPE__EQ '(' .... ')' EQ_OPERATOR yTYPE_ETC '(' ... ')'
|
// yTYPE__EQ '(' .... ')' EQ_OPERATOR yTYPE_ETC '(' ... ')'
|
||||||
|
@ -305,7 +305,7 @@ private:
|
|||||||
void tokenPipeline() VL_MT_DISABLED; // Internal; called from tokenToBison
|
void tokenPipeline() VL_MT_DISABLED; // Internal; called from tokenToBison
|
||||||
void tokenPipelineSym() VL_MT_DISABLED;
|
void tokenPipelineSym() VL_MT_DISABLED;
|
||||||
size_t tokenPipeScanParam(size_t depth) VL_MT_DISABLED;
|
size_t tokenPipeScanParam(size_t depth) VL_MT_DISABLED;
|
||||||
size_t tokenPipeScanType(size_t depth) VL_MT_DISABLED;
|
size_t tokenPipeScanTypeEq(size_t depth) VL_MT_DISABLED;
|
||||||
const V3ParseBisonYYSType* tokenPeekp(size_t depth) VL_MT_DISABLED;
|
const V3ParseBisonYYSType* tokenPeekp(size_t depth) VL_MT_DISABLED;
|
||||||
void preprocDumps(std::ostream& os, bool forInputs) VL_MT_DISABLED;
|
void preprocDumps(std::ostream& os, bool forInputs) VL_MT_DISABLED;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user