[Factor-talk] Is it possible to access line/column informations in EBNF: ?

2020-06-20 Thread Luca Di Sera
Quick question as the tile says. I'm looking at being able to do something like adding a semantic action that stores line/columns information in the resulting ast, for example: rule = "a" => [[ line starting-column 2array suffix ]] I couldn't find anything in the documentation, I'm not sure

Re: [Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-27 Thread Luca Di Sera
I'm sorry, it seems my message from yesterday was blocked as it was too long. To make a summary, I got the same impression as what is being said in Mr. llin post. If we are able to produce the k-partitions of n we can find the k-compositions by finding their (unique)-permutations ( If we'd find

Re: [Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-25 Thread Luca Di Sera
or your time up till now. I hope that I'm not abusing your kindness with this last message. Il giorno dom 26 apr 2020 alle ore 04:04 John Benediktsson ha scritto: > In your example, the inputs are an ordered set and null sets aren’t > allowed? > > I think would have expected to se

Re: [Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-25 Thread Luca Di Sera
ations__gt__,math.combinatorics.html > > > > On Apr 25, 2020, at 6:46 PM, Luca Di Sera > wrote: > >  > I was studying Unger's Parsers and was in need of a way to generate the > k-partitions of the input string. > > I wasn't able to find it neither in math.combinatorics,splitt

[Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-25 Thread Luca Di Sera
I was studying Unger's Parsers and was in need of a way to generate the k-partitions of the input string. I wasn't able to find it neither in math.combinatorics,splitting, grouping or by a general search. I'm currently working on implementing one myself from the integer partitioning in this paper

[Factor-talk] How would automatic testing for a furnace-based application be handled?

2020-03-10 Thread Luca Di Sera
Hello everyone, I'm working on a coding test for a company which consists on building a really simple web application. As Factor is my favorite programming language ( and since I never work on web-based programming since it is not of my interest ) I've decided to attempt the test with it.

Re: [Factor-talk] How to describe variable stack effects for a call( ?

2019-06-01 Thread Luca Di Sera
k ; > > IN: scratchpad { 2 } "sq" foo . > { 4 } > > IN: scratchpad { 2 3 } "add" foo . > { 5 } > > There are a few other ways / approaches but basically that's an idea for > you... > > Hope it helps! > > > > On Fri, May 31, 2019 at 8

[Factor-talk] How to describe variable stack effects for a call( ?

2019-05-31 Thread Luca Di Sera
I'm working on an implementation of the lc3 -vm ( https://justinmeiners.github.io/lc3-vm/ ). This a basic didactical architecture. In the code, I have a TUPLE: that is used to keep the state of the vm. TUPLE: lc3 { ram array } { registers array } { pc integer } { cond > bit-array } ; > An

Re: [Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Luca Di Sera
for the help, which was almost instantaneous. Thanks again, Luca Di Sera Il giorno dom 7 ott 2018 alle ore 14:26 Alexander Ilin ha scritto: > A shorter way to write `other-quote`: > > : other-quote ( quote -- quote' ) >"''" = "``" "''"

[Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Luca Di Sera
Hello to all, I'm a beginner factor programming. I learned about factor in the "Seven More Languages in Seven Weeks" book and could not avoid falling in love with it. I'm trying to learn it at work in my lunch-breaks and one of