lexical-analysis
Recognize Identifiers in Chinese characters by using Lex/Yacc
How can I use Lex/Yacc to recognize identifiers in Chin开发者_运维百科ese characters?I think you mean Lex (the lexer generator). Yacc is the parser generator.[详细]
2023-01-05 10:31 分类:问答Regular expressions versus lexical analyzers in Haskell
I\'m getting started with Haskell and I\'m trying to use the Alex tool to create regular expressions and I\'m a little bit lost; my first inconvenience was the compile part. How I have to do to compil[详细]
2023-01-04 10:58 分类:问答Bison input analyzer - basic question on optional grammar and input interpretation
I am very new to Flex/Bison, So it is very navie question. Pardon me if so.May look like homework question - but I need to implement project based on below concept.[详细]
2023-01-01 10:22 分类:问答What functions a lexer needs to provide?
I am making a lexer, don\'t tell me to not do because I already did most of it. Currently it makes an array of tokens and that\'s it.[详细]
2023-01-01 08:23 分类:问答How to write a Python lexical analyser?
I\'m开发者_开发技巧 trying to write a C module to lexically analyse Python code. How can I do it?The complete, detailed specification for doing lexical analysis of Python code is here.[详细]
2022-12-30 04:13 分类:问答Syntactical analysis with Flex/Bison part 2
Hallo, I need help in Lex/Yacc Programming. I wrote a compiler for a syntactical analysis for inputs of many statements. Now i have a special problem.[详细]
2022-12-29 14:18 分类:问答How do I lex this input?
I currently have a working, simple language implemented in Java using ANTLR. What I want to do is embed it in plain text, in a similar fashion to PHP.[详细]
2022-12-29 12:48 分类:问答How do you implement syntax highlighting?
I am embarking on some learning and I want to write my own syntax highlighting for files in C++. Can anyone give me ideas on ho开发者_开发百科w to go about doing this?[详细]
2022-12-27 00:00 分类:问答Writing re-entrant lexer with Flex
I\'m newbie to flex. I\'m trying to write a simple re-entrant lexer/scanner with flex. The lexer definition goes below. I get stuck with compilation errors as shown below (yyg issue):[详细]
2022-12-26 14:06 分类:问答Is it possible to call C# lexical/syntactic analyzers without compilation?
Considering this quest开发者_JAVA百科ion of SO, where whole C# in-memory compiler is being called. When only lexical and syntactic analyzing is required: parse text as a stream of lexemes, check them[详细]
2022-12-26 01:54 分类:问答