[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban] A fast way to check whether a given text parses?
I'm looking for a fast test to say whether a text parses in Lojban.
I've tried jbofihe and camxes. For jbofihe I was using
$ if echo "$text" | jbofihe &2> /dev/null; then echo good; fi
which mostly works, but fails on some inputs, eg. accepts {la'o}:
$ if echo "la'o" | jbofihe; then echo good; fi
(0[])0
good
For camxes I was using
$ if [ "`echo "$text" | camxes -t | tail -n1`" = "$text" ]; then echo
good; fi
which worked better for me, but was much slower.
I'm sure there's a simple way, but I didn't find it.
mu'o mi'e ianek
--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.