[Cs-dev] new parser error
Date | 2011-01-28 14:56 |
From | menno |
Subject | [Cs-dev] new parser error |
Hello, i came across "fout_ftable.csd" from the manual. It works without problems with the old parser but with the new one i stays in a loop and never finishes: time resolution is 1000.000 ns PortAudio real-time audio module for Csound virtual_keyboard real time MIDI plugin for Csound PortMIDI real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 5.13 beta (double samples) Jan 23 2011 libsndfile-1.0.21 UnifiedCSD: /home/menno/CVS/manual/manual/examples/fout_ftable.csd STARTING FILE Creating options Creating orchestra Creating score orchname: /tmp/csound-SfUhaH.orc scorename: /tmp/csound-IXQtUd.sco Loading command-line libraries: /usr/local/lib/libloris.so rtmidi: PortMIDI module enabled RAWWAVE_PATH: /usr/local/share/csound/rawwaves/ rtaudio: JACK module enabled ******************** * USING NEW PARSER * ******************** END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT END OF INPUT .............. ................ here is the csd: |
Date | 2011-10-26 16:32 |
From | john ffitch |
Subject | Re: [Cs-dev] new parser error |
This bug is now fixed -- my fault entirely ==John ffitch >>>>> "menno" == menno |
Date | 2011-10-26 17:16 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] new parser error |
Is it possible with the new parser to distinguiish between variable and opcode names? e.g. fin pvsanal ... vs. fin On 26 Oct 2011, at 16:32, john ffitch wrote: > This bug is now fixed -- my fault entirely > ==John ffitch >>>>>> "menno" == menno |
Date | 2011-10-26 17:22 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] new parser error |
More detail needed here. Can you provide examples? > Is it possible with the new parser to distinguiish between variable > and opcode names? > e.g. > > fin pvsanal ... > > vs. > > fin > > ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-10-26 17:30 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] new parser error |
Attachments | None None |
With the old parser, we could not use variable names that were the same as existing opcodes, eg. fin, fout, adsr, ihold. These would give parsing errors. instr 1 ihold = 1 endin === instr 1 error: illegal character =, line 8: ihold = 1 ^ error: too many input args, line 8: ihold = 1 Victor On 26 Oct 2011, at 17:22, jpff@cs.bath.ac.uk wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2011-10-28 14:39 |
From | john ffitch |
Subject | Re: [Cs-dev] new parser error |
suppose we have two words, both possible opcodes. Word A takes one arg, word B has no args but 1 answer. What does A B mean? ==John ffitch ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-10-28 16:23 |
From | Steven Yi |
Subject | Re: [Cs-dev] new parser error |
Well I think what will happen is that the parsing will fail as it will have entered into a context where it is searching for the arg to A but finds B. If B is an opcode name, that always takes precedence over variable names, so that line will fail. With the parser, the table of opcode names is always consulted first when a text string is found, then if not found, it goes to look for a variable with that name. So it would not be possible to have a variable with the same name as an opcode. On Fri, Oct 28, 2011 at 2:39 PM, john ffitch |