Most voted "lexical-analysis" questions
Lexical analysis is the process of analyzing the input of character lines (e.g., the source code of a computer program) and producing a sequence of symbols called "lexical symbols" (lexical tokens), or only "symbols" (tokens)which can be manipulated by a parser (parser).
Learn more…7 questions
Sort by count of
-
40
votes6
answers4038
viewsWhat is lexical analysis?
I was taking a look at the source code of a well-known php library, called Twig (is a template engine, with its own syntax), and I came across classes, interfaces and methods, such as Lexical, Lex…
-
17
votes2
answers1365
viewsShould I use a parser generator or should I develop my own code to do "parse" and "lex"?
Obviously the question should not be interpreted "to the letter". I do not want anyone to decide for me, I need to know the perks and disadvantages to use one method or the other. When should I wear…
parser compiler-project lexical-analysis language-designasked 10 years, 10 months ago Maniero 444,682 -
5
votes1
answer128
viewsRead tokens in infinite loop
I have a code that reads tokens a text. I’m using Visual Studio 2013 in an extensibility project. When reading the text through scanner and collect the tokens, the program enters an infinite loop:…
-
4
votes0
answers40
viewsWhat are parser combinators?
Recently, studying on techniques of Parsing, found out about parser combinators, which seems to be a more functional approach to realize the parse of a sequence of characters. What is a parser…
-
4
votes1
answer733
viewsLexical Analyzer using LEX
I am using the LEX generator to do a lexical analysis of a simple C++ code. The following code is from the generator: %{ #include<stdio.h> %} extern FILE *yyin; %% "<" {printf("(Identifier,…
-
1
votes2
answers57
viewsRedirect Flex input to a string
Good, I have a flex file and a C routine to check the writing of texts. I’ve been testing at command-prompt using test < inputFile What I wanted now was to be able to indicate in my C file a…
-
1
votes0
answers266
viewsCustom Sonarqube Rule Construction
hello! I am creating a plugin in Sonarqube with custom Rules and as my first Rule, I want to do a validation in If declarations where an alarm is triggered every time a literal String enters as…