Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 426 results for
ast
- Page 1
AST node exception
Programming
Software Development
14 Years Ago
by sureshksk
… to a action class. org.springframework.orm.hibernate3.HibernateQueryException: unexpected
AST
node: diet near line 1, column 94 [select productCatNo from…=kitchen and diet]; nested exception is org.hibernate.hql.
ast
.QuerySyntaxException: unexpected
AST
node: diet near line 1, column 94 [select productCatNo…
Re: how to use ast with python 2.7
Programming
Software Development
10 Years Ago
by Gribouillis
…, division, print_function, unicode_literals) __doc__ = ''' ''' import
ast
from astpp import dump source = """ def…quot;"" if __name__ == '__main__': result =
ast
.parse(source) print(dump(result)) """ …
Re: how to use ast with python 2.7
Programming
Software Development
10 Years Ago
by Tcll
…-a-function-call) [n.targets[0].id for n in
ast
.walk(
ast
.parse("x = struct()")) if isinstance(n…,
ast
.Assign) and isinstance(n.value,
ast
.Call) and n.value.func.id == 'struct'] I…
Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
Hi friends, I need to make a simple parser for parsing PHP files (classes, functions et al) and I have read both Flex and Bison manual. I have read somewhere that I must build Abstract Syntax Tree (
AST
) and utilize that. But I cannot find any tutorial on how to make
AST
with Bison Please help me with a link or explanations. Thanks!
Re: Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
… pretty be a like), how are you going to build
AST
from that global variable? That is my question where I…
how to use ast with python 2.7
Programming
Software Development
10 Years Ago
by Tcll
I'm working on an IDE for a program I'm building, and just found out I need to use
ast
. I can't seem to find any decent examples to get me started on google... can someone help me out. :) thanks
Re: how to use ast with python 2.7
Programming
Software Development
10 Years Ago
by TrustyTony
Gribouillis surely can come out with something, ask more specifically. Here his earlier post containing importing
ast
, response to my code snippet: http://www.daniweb.com/software-development/python/code/389822/averaging-iterable-without-making-copy-of-values#post1680277
Re: AST node exception
Programming
Software Development
14 Years Ago
by BestJewSinceJC
Because the "and diet" portion of the query is invalid syntax. It must be getting appended to the end of your query from somewhere, so figure out where it gets appended to the query, and either remove it, or make it a properly formatted query (e.g. and diet=something).
Re: Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by nezachem
Define a generic node type; somewhat akin to [CODE]typedef struct node_s { enum node_type_t node_type; void * node_specific_data; node_s ** children; } node_t;[/CODE] You may need other fields as well. Define "node constructors" for each language entity (terminals and nonterminals alike). In the semantic action for each rule…
Re: Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
thanks for reply nezachem. I'm very newbee (actually just starting) with code analysis so take my words with grain of salt! that being said, let say I want to get a class from PHP file and all its Childrens (members as well as attributes) and thereby build a tree I can access. How do I go about? I have read that tutorial and it is funny to learn …
Re: Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by Stefano Mtangoo
Thanks for tutorial too, It was one of first things to read on the field and it did help me to understand some stuffs. I will check again!
Re: Buidling AST with Bison/Flex
Programming
Software Development
13 Years Ago
by nezachem
[QUOTE=evstevemd;1734699]thanks for reply nezachem. I'm very newbee (actually just starting) with code analysis so take my words with grain of salt! that being said, let say I want to get a class from PHP file and all its Childrens (members as well as attributes) and thereby build a tree I can access. How do I go about?[/QUOTE] Feed the PHP …
counting class objects
Programming
Software Development
11 Years Ago
by ??!!
…
ast
[4];
ast
[0].set(1,1);
ast
[0].set(10,20,30);
ast
[1].set(2,1);
ast
… i<4 ; i++){
ast
[i].displayGrade(); } bubble(
ast
,4); print(
ast
,4); cout << …"class average :" << classAverage(
ast
) << endl; system("pause"); …
learning C++ / Text RPG
Programming
Software Development
11 Years Ago
by willscarlet
… of Piritha)\n"; cout << " (E)
ast
--> \t East Raod (City of Piritha)\n"; cout… exits are:\n"; cout << " (E)
ast
--> \t East Woods (City of Piritha)\n"; cout… exits are:\n"; cout << " (E)
ast
--> \t Center of Town (City of Piritha)\n"…
Passing values of variables between functions not working
Programming
Web Development
14 Years Ago
by applemist
…quot; + document.fchartact.itm.value + "&
ast
=" + document.fchartact.
ast
.value + "&idn=" + document.… ''; this.document.fchartact.itm.value = 'no'; this.document.fchartact.
ast
.value = 'no'; this.document.fchartact.idn.value = 'no';…
Re: Help!!! need query for latest record
Programming
Databases
15 Years Ago
by cgyrob
…individualid)) as 'Account Manager' ,(Select top 1
ast
.application_status_description from application_status
ast
where
ast
.application_status_idd = asl.status order by entered_date desc) as… a.application_id = asl.application_id inner join application_status
ast
on asl.status =
ast
.application_status_id WHERE C.name not like 'URAC%' …
help me - An Hibernate error
Programming
Software Development
18 Years Ago
by rahul_sharma
… [COLOR=#000000] at org.hibernate.hql.
ast
.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)[/COLOR] [COLOR… [COLOR=#000000] at org.hibernate.hql.
ast
.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)[/COLOR] [COLOR… [COLOR=#000000] at org.hibernate.hql.
ast
.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)[/COLOR] […
adding characters.
Programming
Software Development
13 Years Ago
by sandman64
…;pause"); return 0; } string round (double pop) { string
ast
; double count = 0;
ast
= "*"; while (count != pop){ count = count + 1000…
Java Code for Calculator
Programming
Software Development
12 Years Ago
by aabbccbryanmark
…int total = 0; JButton numLock, zero, dot, enter, plus,
ast
, min, div; Calc() { setTitle("Bryan Mark's Calculator (c…= txtArea.getText(); txtArea.setText(""); } else if (e.getSource() ==
ast
) { ctr = 3; a1 = txtArea.getText(); txtArea.setText(""); …
problem implementing BFS using string vector
Programming
Software Development
17 Years Ago
by CrazyCoder
… to read in a text file which is something like:
ASt
BSt BSt WSt BSt YeSt BSt KrSt MSt KrSt they… are possible street intersections from
ASt
to MSt. I have to output the list of streets… in order to reach MSt from
ASt
like:
ASt
BSt KrSt MSt This is to be done using…
Insert Operation LinkedList
Programming
Software Development
18 Years Ago
by shsh_shah
… = new node(); linklistImp llist = new linklistImp(); ArrayList
ast
= new ArrayList(); obj = Console.ReadLine(); llist.Insert(
ast
); } // to Insert the data public void…
Help!!! need query for latest record
Programming
Databases
15 Years Ago
by KRichardson1127
… aag.am_id_mysql = i.individualid)) as 'Account Manager' [B][I][U],
ast
.application_status_description as 'Status'[/U][/I][/B] ,convert(varchar(10), a… asl on a.application_id = asl.application_id inner join application_status
ast
on asl.status =
ast
.application_status_id WHERE C.name not like 'URAC%' order…
How to make a hidden asterisk visible using java script?
Programming
Web Development
14 Years Ago
by Whilliam
…="text/javascript"> function aster(fn,
ast
) { if(fn.value.length==0)
ast
.style.visibility="visible"; } </script…; value="Submit" onclick="aster(document.getElementById('fn', '
ast
'))"/> </td> </table> </form…
Drawing Tree with stars in java
Programming
Software Development
12 Years Ago
by GeekTool
… = 5; int spaces = n-1; int
ast
; for(int i = 0; i < n; i++) {
ast
= 2*i+1; for(int j… = 1; j <= spaces+
ast
; j++) { if(j <= spaces) System.out.print(' '); else System.…
Re: Drawing Tree with stars in java
Programming
Software Development
12 Years Ago
by NormR1
… = 5; > int spaces = n-1; //spaces=4 > int
ast
; > for(int i = 0; i < n; i++) // i…=0 | 1 | 2 | 3 > { >
ast
= 2*i+1; //
ast
=1 | 3 | 5 | 7 The | separate the values for…
Re: Help!!! need query for latest record
Programming
Databases
15 Years Ago
by KRichardson1127
… asl on a.application_id = asl.application_id inner join application_status
ast
on asl.status =
ast
.application_status_id WHERE C.name not like 'URAC%' order…
Compiler Construction Homework
Community Center
Geeks' Lounge
20 Years Ago
by beltrric3680
… * c[/B] 2. What is the postorder traversal of the
AST
for the expression: [B]b * b - 4 * a * c[/B…] 3. What is the inorder traversal of the
AST
graph for the expression: [B]D := b * b -(4[a…
Run-time Error when printing Array Contents.
Programming
Software Development
20 Years Ago
by Layla_2401
… the tree to check a number of constraints //******************************************************** void traverse_sem(
Ast
a){
Ast
*t; int i; int n; int sflag; int rflag…
Re: Run-time Error when printing Array Contents.
Programming
Software Development
20 Years Ago
by Dave Sinkula
… that may need closer scrutiny is this.[code]void traverse_sem(
Ast
a){
Ast
*t; // ... switch(NKIND(a)) { case PROTOCOL: t = PROTOCOL_PRINCIPALS(a…
boot up problem
Hardware and Software
Microsoft Windows
19 Years Ago
by NOBBY
I Have a serious problem with my
AST
computer loaded with windows 95 when I switch on .The …screen comes up with this: FIRST SCREEN
AST
BIOS Version1.00.5.CW0Q 0016384 KB PLEASE WAIT PRESS…
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC