lexer
Performance of tokenizing CSS in PHP
This is a noob question from someone who hasn\'t written a parser/lexer ever before. I\'m writing a tokenizer/parser for CSS in PHP (please don\'t repeat with \'OMG, why in PHP?\'). The syntax is wri[详细]
2022-12-26 01:35 分类:问答ANTLR lexer mismatches tokens
I have a simple ANTLR grammar, which I have stripped down to its bare essentials to demonstrate this problem I\'m having. I am using ANTLRworks 1.3.1.[详细]
2022-12-25 23:36 分类:问答Ruby regex match specific string with special conditions
I\'m currently trying to parse a document into开发者_开发技巧 tokens with the help of regex. Currently I\'m trying to match the keywords in the document. For example I have the following document:[详细]
2022-12-25 23:10 分类:问答Island grammar antlr3
What are a开发者_JS百科nd how to use the \"island grammar\" in antlr3?An island grammar is one that treats most of a language as a blob of text (\"water\") and picks out the part of the langauge of in[详细]
2022-12-25 15:01 分类:问答Lexer antlr3 token problem
Can I construct a token ENDPLUS: \'+\' (options (greedy = false;):.) * \'+\' ; being considered by the lexer only if it is 开发者_开发问答preceded by a token PREwithout including in ENDPLUS?[详细]
2022-12-25 13:44 分类:问答string recursion antlr lexer token
How do I build a token in lexer that can handle recurs开发者_如何学Goion inside as this string:[详细]
2022-12-25 01:50 分类:问答ANTLR grammar: parser- and lexer literals
What\'s the difference between this grammar: ... if_statement : \'if\' condition \'then\' statement \'else\' statement \'end_if\';[详细]
2022-12-24 01:15 分类:问答Is there a working C++ grammar file for ANTLR?
Are there any existing C++ grammar files for ANTLR? I\'m looking to lex, not parse some C++ source code files.[详细]
2022-12-21 16:48 分类:问答Best way to tokenize and parse programming languages in my application [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2022-12-20 04:19 分类:问答why do some languages require function to be declared in code before calling?
Suppose you have this pseudo-code do_something(); function do_something(){ print \"I am saying hello.\";[详细]
2022-12-18 21:03 分类:问答