I have a lexer and parser implemented in FsLexYacc. To debug the lexer, I would like to print all of the tokens for a given string. Here is what I ha ...
I have a lexer and parser implemented in FsLexYacc. To debug the lexer, I would like to print all of the tokens for a given string. Here is what I ha ...
I'm trying to setup a new project in F#. I'm using FsLexYacc as a tool, and last time i used it was when the Fsharp powerpack was 'in'. The documenta ...
I am using F#'s FsLex to generate a lexer. I have difficulties to understand the following two lines from a textbook. Why is the newline (\n) treated ...
I do not find documents on the command line for compiling a F# source and then run it on a Mac OS. Here is what I tried, which did not work. First, I ...
What is that "arg00" in the type of Fsharp.Text.Lexing's LexBuffer<char>.LexemeString? ...
My Lexer is supposed to distinguish brackets and maintain a stack of opened brackets during lexing. For this I specified a helper function in my fsl f ...
I am playing around with FsLex and FsYacc, which is based off of ocamllex and ocamlyacc. What is the best way to define a comment in a language? Do I ...
On github, FsLexYacc project has a test dir. I try to set up the simplest one ("LexAndYaccMiniProject"). I follow these steps : 1/ Create an F# con ...
I am trying to parse a simple script language using FsLex and FsYacc, and I have a problem with distinguishing the minus operator from negative number ...
I am currently learning about lexing and parsing (based on the F# toolset) based on a parsing a simple calculation and I am stuck in that my lexer is ...
I'm trying to write a small DSL parser using fslex and fsyacc. The input is composed of interleaving chunks of two different languages which require d ...
I'm implementing a scripting language with fslex / fsyacc and have a problem with large user inputs (i.e. >1k scripts), specifically this error occ ...
I've been using fslex and fsyacc, and the F# source files (.fs they generate from the lexer (.fsl) and parser (.fsp) rules refer to the original .fsl ...
Using fslex I would like to return multiple tokens for one pattern but I don't see a way how to accomplish that. Even to use another rule function tha ...
I am having trouble running FsLex from F# PowerPack 2.0.0.0 on Mac. When I simply run the program I see: The steps I followed were: Install MDK ...
I know that it is possible to pass parameters to a lexer: but I'm not able to define my parser start symbol in a similar fashion. I tried to defin ...
Is there an easy way to get lexing and parsing to run concurrently when using fslex and fsyacc? ...
In a fsyacc based project, I have this line: This is the full error description I'm getting: CALast.fs(117,9): error FS0035: This construct is ...
I'm trying to capture quoted strings without the quotes. I have this terminal and this production along with these lexer rules It seems to be ...
I have a very simple DSL I need to parse on a .Net platform. Not being very experienced with parsers, I have been looking at examples using F# (fsLex, ...