LFCisafunctionallanguagebasedonrecursivefunctionsdefinedincontext-freelanguages.Inthispaper,anewpatternmatchingalgorithmforLFCispresented,whichcanrepresentasequenceofpatternsasanintegerbyanencodingmethod.Itisarathersimplemethodandproducesefficientcase-expressionsforpatternmatchingdefinitionsofLFC.Thealgorithmcanalsobeusedforotherfunctionallanguages,butfornestedpatternsitmaybecomecomplicatedandfurtherstudiesareneeded.