Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
103 views

I've been thinking and a question has arisen. Does this type of compiler really need the complete syntax tree in memory?
lzcmz's user avatar
  • 1
1 vote
1 answer
74 views

I have something like the following: ((x=2 or y=3 ) and (r=3 and c=3) or (x=5 and g=6)) I defined: Token : /\w \= \d/ operator or|and expression : token operator(s) quoted_expression : "("expression"...
jsor's user avatar
  • 667
1 vote
1 answer
118 views

I defined the following grammar using Parse::RecDescent my $grammar = q{ top : operand equal value { print $item{value} } operand: /\w+/ equal : /\=/ value : { my $value = extract_quotelike($...
jsor's user avatar
  • 667
4 votes
1 answer
314 views

I'm trying to remove an error from my sanity-checking [when I push code to my git repo, there's a hook that checks the code with perltidy & critic... using tidyall as the handler.] The specific ...
CodeGorilla's user avatar
1 vote
0 answers
98 views

I am using Parse::RecDescent(the below code) to parse something like this this x=2 and y=2 and z=3 why the below code only print x!=2 and not all the above line (i.e x!=2 and y!=2 and z!=3) even the ...
jsor's user avatar
  • 667
3 votes
2 answers
253 views

Currently I use this to parse Arithmetic expressions : expr : '(' expr ')' | number op expr | variable op expr | number | variable | <error> It works for ...
sten's user avatar
  • 7,546
2 votes
1 answer
185 views

I'm trying to parse HAML (haml.info) with Parse::RecDescent. If you don't know haml, the problem in question is the same as parsing Python - blocks of syntax are grouped by the indentation level. ...
Mark's user avatar
  • 1,304
2 votes
1 answer
220 views

I have a list of strings (30,000+) which are a collection of statements. Logically, Parse::RecDescent is the tool to use to parse the string to gather the data, but I just can't get my head round the ...
CodeGorilla's user avatar
1 vote
1 answer
456 views

Thanks for the inputs for question posted at link Parse::ABNF perl usage . I am still facing difficulty in resolving my problem. Request to check my problem below and provide pointers towards solution....
user3336154's user avatar
3 votes
1 answer
262 views

All I managed to get working is STRING, PARAMS, VARIABLE and FUNCNAME There seems to be a problem with FUNCTION, but I just can't see it. use strict; use Parse::RecDescent; $::RD_ERRORS = 1; # Make ...
AlfredoVR's user avatar
  • 4,367
3 votes
1 answer
1k views

I'm trying to use Parse::RecDescent make a parser which can parse parenthetical expressions and the unary operator ?. What I have so far is failing when I create the parser because the rule ...
Nate Glenn's user avatar
  • 6,784
1 vote
2 answers
1k views

In Parse::RecDescent, how do I effectively ignore C++/Java style comments? This includes single-line ('//' until the end of the line) and multi-line (/everything between here/).
Nate Glenn's user avatar
  • 6,784
1 vote
3 answers
481 views

I'm using Parse::RecDescent to parse lines in a Cisco IOS ACL. The ACL is used on the edge router of a large network, so it contains almost 8k lines which are set by the government. I'm looping ...
user avatar
0 votes
1 answer
139 views

I use module Parse::RecDescent and try to build grammar to catch perl sub name why in my code https://gist.github.com/1595532 not work gramma get_sub: NOWORD TEST NOWORD on '>test1$' ...
Николай Мишин's user avatar
3 votes
1 answer
402 views

I have lots of large plain text documents I wish to parse with perl. Each document has mostly English paragraphs in it, with a couple of plain text marked up tables in each document. I have created ...
Matthew Lock's user avatar
  • 13.6k
2 votes
2 answers
229 views

I've got a bunch of ACPI Source Language files and I want to calculate file to file similarities between them. I thought of using something like Perl's Parse::RecDescent but I am stuck at: 1) ...
719016's user avatar
  • 10.5k
1 vote
1 answer
177 views

I am testing the grammar from P::RD tutorial in order to develop my own grammar. I haven't figured out how to print a string declaration and append '$' to the front of it. For example "STRING sDir" ...
Dorian06's user avatar
3 votes
1 answer
157 views

I have a web application that uses a parser created with Parse::RecDescent. A parser object is needed in several parts of the application and since the parser takes quite a bit of memory I have up to ...
oyse's user avatar
  • 1,011
2 votes
1 answer
286 views

I'm working on a Parse::RecDescent grammar to read a given human-readable set of rules and then spit out a file that is much easier for a computer to read. One of the tokens is a list of "keywords"; ...
Paul Nathan's user avatar
  • 40.5k
1 vote
2 answers
502 views

I'm working with the Parse::RecDescent parser in Perl, and I seem to have the most terrible time getting information from it. The information readily available online does not seem to have non-trivial ...
Paul Nathan's user avatar
  • 40.5k
1 vote
1 answer
455 views

Having a lot of pain with the following Perl file parsing code [last reply on PM @http://www.perlmonks.org/index.pl?node_id=754947] below: #!/usr/bin/perl -w use strict; use warnings; #use ...
PoorLuzer's user avatar
  • 25.2k