lexical-analysis
Big problem with regular expression in Lex (lexical analyzer)
I have some content like this: author = \"Marjan Mernikand Viljem Zumer\", title = \"Implementation of multiple attribute grammar inheritance in the tool LISA\",[详细]
2022-12-25 00:38 分类:问答Error compiling flex (the lexical analyzer)
I\'m trying to install flex (the lexical analyzer, not the Adobe program) on my Windows computer. I have MSYS installed. I untar flex, ./configure it, but when I try to make it, I get th开发者_StackOv[详细]
2022-12-24 07:56 分类:问答丑的人撩妹需要套路,而我只需要套......(做新手任务)?
順應改變 开发者_运维问答 2022-04-27 15:01 别傻了,你没点套路除非帅的一笔,不然只能撩丑逼...你以为女的喜欢不会聊天的木头?亿宝宝_346[详细]
2022-12-23 14:22 分类:问答Are back references possible in flex (lexical analyser)?
I\'m used to play with regexp in languages where I can use parenthesis to capture references. The only thing near that in flex that I\'m seeing is the yytext variable. But it\'s contents are the full[详细]
2022-12-22 16:14 分类:问答Best way to implement a meta language compiling down to PHP
I\'ve been working on the specification / kitchensink for a meta language that can compile down to PHP for som开发者_如何学运维e time now. Now I want to begin building the thing. Before I have impleme[详细]
2022-12-22 02:01 分类:问答How to write a text transformer?
Suppose I have a text that I can easily parse. It consists of text and special identifiers. After parsing I get a list of tokens that correspond to text and spec开发者_JAVA技巧ial identifiers in the t[详细]
2022-12-21 13:32 分类:问答In the programming languages specifications, why is it that lexical analysis not translatable?
In all of the standard specificati开发者_高级运维ons for programming languages, why is it that you cannot directly translate the lexical analysis/layout to a grammar that is ready to be plugged into a[详细]
2022-12-20 09:00 分类:问答Lexers/tokenizers and character sets
When constructing a lexer/tokenizer is it a mistake to rely on functions (in C) such as isdigit/isalpha/...? They are dependent on locale as far as I know. Should I pick a character set and concentrat[详细]
2022-12-20 08:01 分类:问答Character position in scanner using Lex/Flex
In Lex/Flex is there a way to get the position i开发者_开发技巧n the character stream (from the start of the file) that a token appears at? Kind of like yylineno except that it returns the character p[详细]
2022-12-19 22:46 分类:问答scanUpToCharactersFromSet stops after one loop
I\'m trying to get the contents of a CSV file into an array. When I\'ve done this before I had one record per line, and used the newline character with scanUpToCharactersFromSet:intoString:, passing n[详细]
2022-12-17 13:44 分类:问答