Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of 0
9 answers
5912 views

code for identifying header files As you can see in the image, the scanner function is the main function which starts from the first character in the input till the end. if the identified character is ...
Score of 1
1 answer
72 views

This is a homework assignment so I'm only looking to get unstuck. We are tasked with filling out a parser and lexical analyzer. This was going fine until I ran into an issue reading ";". As ...
Score of 0
1 answer
83 views

I created my own. It works fine. However, I want to use the default yyerror() function provided by flex/bison. I am using GNU C on Windows 11.
Score of 0
0 answers
90 views

I'm writing a flex lexer to recognize specific keywords only when they appear as standalone words (not as part of larger words). For example, if I'm looking for the keyword "in", it should ...
Score of 0
1 answer
99 views

I need help with a flex program. The program must analyze a string entered by the user and define if they are constants, identifiers, numerals or if there are no errors, these results need to be ...
Score of 0
0 answers
88 views

I have a search index in Azure AI Search using the newest version of the API (2024-07-01). I have added searchable text fields with analyzer and synonymMaps. I am using the "en.microsoft" ...
Score of 0
1 answer
103 views

I am working on a lexical analyser but i am struggling on how to identify the comments as below: A comment is a sequence of characters (even space) between /* and */; it may not contain the sub-...
Score of 0
1 answer
85 views

I am trying to parse the contents of my test case files to output files to where the token type and the production rules are displayed. My test case is this: [* operator test *] = != > < <= =&...
Score of 0
0 answers
95 views

For a school project I have to write an interpret in C for programming languge similar to Swift. I'm encountering an issue in my code, and I'm not sure if it's a syntactic or lexical error. In the ...
Score of 0
1 answer
88 views

I am currently working on a compiler. Recently, I stumbled upon an issue concerning the parsing of operators in an expression. Obviously I have not found this to be an issue in other languages, which ...
Score of 0
0 answers
30 views

Description of the Problem I am working on implementing a lexical analyzer in C, and I have encountered an issue with a pointer variable (pos) that seems to be behaving unexpectedly. The problem ...
Score of 1
1 answer
476 views

I'm writing a front-end for a compiler and currently working on implementing punctuator scanning functionality. I've got a Punctuator class that I'd like to use to represent punctuators from the input ...
Score of 0
1 answer
61 views

WS : [ \t]+ -> skip ; // skip spaces, tabs Works well to ignore white space by preventing those characters from reaching the parser. I want to do the same thing with character pair of '/' and ...
Score of 0
2 answers
243 views

I have a JSON like below: {"queueNumber": "123","field":"name",UserId":[12,12,34],"cur":[{"objectName":"test","...
Score of 2
1 answer
429 views

I am reading Bob Nystrom Crafting Compiler's and in the chapter 5 it says this In the last chapter, the formalism we used for defining the lexical grammar— the rules for how characters get grouped ...

15 30 50 per page
1
2 3 4 5
…
57