lexical-analysis
How to write simple parser for if and while statements? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-02 09:45 分类:问答What is Object Oriented Scanner (Lexical Analysis)?
R开发者_如何转开发ecently I came across the concept of Lexical Analysis called \"Object Oriented Scanner\", but I wasn\'t able to distinguish it from the normal scanning technique. What can be the ext[详细]
2023-04-02 00:53 分类:问答How to implement simple parser tree?
I\'ve posted similar question here, but it was closed because I didn\'t explained myself properly. I\'ll try to explain my problem again.[详细]
2023-04-02 00:48 分类:问答Profiling Regex Lexer
I\'ve created a router in PHP which takes a DSL (based on the Rails 3 route) and converts it to Regex.It has optional segments (denoted by (nested) parenthesis).The following is the current lexing alg[详细]
2023-03-29 17:42 分类:问答Does the recognition of numbers belong in the scanner or in the parser?
When you look at the EBNF description of a language, you often see a definition for integers and real numb开发者_开发技巧ers:[详细]
2023-03-29 15:54 分类:问答T-SQL language specification and lexing rules
I\'m thinking about writing a templating tool for generating T-SQL code, which will include delimited sections like below;[详细]
2023-03-21 06:55 分类:问答Order of precedence for token matching in Flex
My apologies if the title of this thread is a little confusing.What I\'m asking about is how does Flex (the lexical analyzer) handle issues of precedence?[详细]
2023-03-20 22:22 分类:问答Flex C++ VTable Error
I am using Flex and Bison to create a compiler.As I am trying to create an AST (Abstract Syntax Tree) for my program, I need to port it to C++.So far I have been successful, until a encountered a rath[详细]
2023-03-19 19:04 分类:问答gppg/gplex equivalent in D?
When I was working in C#, I found the gppg and gplex parser/lexer generators to be perfect for my needs. I\'m wondering if there\'s so开发者_JAVA技巧mething similar for the D programming language (i.e[详细]
2023-03-18 01:27 分类:问答FsLex - Differ between 2 strings
I\'ve a couple of tokens: PNAME and ENAME - both are strings. Now I want to setup 2 rules in my lexer, in order to match those tokens.[详细]
2023-03-16 07:10 分类:问答