Re: [Factor-talk] Deploying application

2014-12-12 Thread John Benediktsson
Nice! We love contributions, so if you feel like making anything available to the main repository, let us know. EBNF parsing makes a lot of things pretty convenient! > On Dec 12, 2014, at 12:19 AM, Roberto López wrote: > > Hi Folks, > > Removed the 'reader-word' use and the deployment with

Re: [Factor-talk] Deploying application

2014-12-12 Thread Roberto López
Hi Folks, Removed the 'reader-word' use and the deployment with no reflection is now ok. Thank you all for your help. I would like to share some code I worked on [1] to parse mailbox as defined in RFC 5322 [1]. Any comment will be welcome! [1] http://paste.factorcode.org/paste?id=3411 [2] http:/

Re: [Factor-talk] Deploying application

2014-12-11 Thread John Benediktsson
You could also keep them like this: { name>> version>> ... } and use execute( x -- x ) to call them On Thu, Dec 11, 2014 at 4:06 AM, Roberto López wrote: > Hi Andrea, > > Yes, I'm already working on it. Reflection is always a risky practice. > > Anyway, the deployment process (leve

Re: [Factor-talk] Deploying application

2014-12-11 Thread Roberto López
Hi Andrea, Yes, I'm already working on it. Reflection is always a risky practice. Anyway, the deployment process (level 1) should have failed or warned the programmer. Regards, Roberto Andrea Ferretti writes: > The `reader-word` word does indeed use reflection to set word > properties dynamic

Re: [Factor-talk] Deploying application

2014-12-11 Thread Andrea Ferretti
The `reader-word` word does indeed use reflection to set word properties dynamically, see here http://docs.factorcode.org/content/word-reader-word,slots.html If I understand correctly, I think you could simply replace the list { "deb:name" "deb:version" "deb:priority" "deb:section" "deb:maintai

Re: [Factor-talk] Deploying application

2014-12-11 Thread Roberto López
Hi John, I've just shared a reduced version of my code. No PEG, no sense but it doesn't need any input data. http://paste.factorcode.org/paste?id=3410 I've detected the die word is called when reading-word is executed. I hope it helps. Regards, Roberto. John Benediktsson writes: > Hi Rober

Re: [Factor-talk] Deploying application

2014-12-10 Thread John Benediktsson
Hi Robert, It's unlikely this is due to PEGs, for example this example I just now made from an old blog post works using Level 1 and deploy as console application: http://paste.factorcode.org/paste?id=3408 It is more likely that you are trying to use a feature like prettyprint (used by the "

[Factor-talk] Deploying application

2014-12-10 Thread Roberto López
Hi, I am trying to deploy a console application using the awesome PEG vocabulary. If I choose to deploy using "Level 1 - No reflection" the application fails when I run it with. The message is... | The die word was called by the library. Unless you called it yourself, | you have triggered a bug i