lexical-analysis
Installing flex (lexical analyzer) on Mac
Can someone tell me how I can install flex (lexical analyze开发者_运维百科r) on my Mac? I searched everywhere on google and I can\'t find it. I have the universal binary and I extracted it to my deskt[详细]
2023-02-15 08:41 分类:问答How to properly scan for identifiers using Ragel
I\'m trying to write a scanner for my C/C++/C#/Java/D-like programming language that I\'m designing for personal reasons. For this task I\'m using Ragel to generate my scanner. I\'m having trouble und[详细]
2023-02-15 07:09 分类:问答Regex to catch that there's no white space at the start of a line (flex)
I\'m working on a lexer for the Python grammar (written in Flex) for a compiler construction class and I\'m having trouble getting a properly working regular expression to catch when there is no white[详细]
2023-02-15 05:33 分类:问答How can I have a function that returns different types in F#?
I\'ve made a scanner in F#.Currently it returns a list of bunch of tuples with type (Token, string). Ideally I\'d like to return a list of tuples that might contain different types.For example:[详细]
2023-02-10 01:39 分类:问答Excluding certain elements from a specified set in Parsing Expressive Grammar (PEG.js)?
I am writing a lexer for Haskell using JavaScript and Parsing Expression Grammar, the implementation I use being PEG.js.[详细]
2023-02-09 19:56 分类:问答How to tokenize the sample string using Regular Expression in Python?
I am new to regular expression.On top of finding out the pat开发者_高级运维tern to match the following string, please also point out references and/or samples web sites.[详细]
2023-02-07 17:08 分类:问答Javascript string scanner?
I\'m wondering, is there any way to scan a string in javascript. e.g, I\'ve got a string abcdefdfdfssdfdssdffdq=\"HELLO\"fdndkjdsnkjdnlkdfns I\'d like to scan that string and delete the characters be[详细]
2023-02-07 08:27 分类:问答What stages would be involved in compiling Assembly language to Machine Code
I\'m trying to write a compiler to take an assembler file which will output raw machine code instructions.[详细]
2023-02-05 12:55 分类:问答How to implement Lexical Analysis in Javascript
Hey folks, thanks for reading I am currently attempting to do a Google-style calculator. You input a string, it determines if it can be calculated and returns the result.[详细]
2023-02-05 03:14 分类:问答How to parse a formula to build up a tree in C#? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-02-04 11:49 分类:问答