Icon program task
$30-5000 USD
着払い
Implement a subset of Icon and write a test program in Icon which will accept text as input and produce an alphabetical list of words in the text with a count of the frequency of each word.
## Deliverables
Icon is a string processing language based on an older language Snobol.
A string value is assigned to a variable by an assignment statement.
mystring := "next hour buy flour for our cake"
The generator "find" returns a sequence of integers giving the position of the first character in which a matching substring occurs.
example
mystring := "next hour buy flour for our cake"
n := find("our",mystring)
write(n)
output
7
example
mystring := "next hour buy flour for our cake"
every n:= find("our",mystring) do write(n)
output
7
17
25
example
mystring := "next hour buy flour for our cake"
if find("our",mystring) then write("yes") else write("no")
output
yes
example
mystring := "next hour buy flour for our cake"
if find("your",mystring) then write("yes") else write("no")
output
no
Implement a subset of Icon including read, write, find, every, the integer operators +, -, *, and /, and the relational operators =, <, and <=.
Write a test program in Icon which will accept text as input and produce an alphabetical list of words in the text with a count of the frequency of each word.
## Platform
Linux
プロジェクトID: #3453751