Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silly-j parser #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do some refactors
  • Loading branch information
hylisd committed Apr 1, 2019
commit 47289afd747b037718422d6add1b8fd3037fd6d5
7 changes: 2 additions & 5 deletions src/hopen/syntax/silly_j.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
(->> (ebnf msg)
(insta/transform
{:STR str
;; :FCTX 'hopen/ctx
:APPLY str
:FNNAME str
:ATTR str
Expand All @@ -44,11 +43,9 @@
:SPC identity
:FN (fn [first-elm & applies]
(cons (symbol first-elm)
(filter #(not= " " %) applies)
))
(remove #{" "} applies)))
:APPLIES identity
:SILLY identity
:SILLYSTR (fn [obrk silly cbrk]
silly)
:SILLYSTR (fn [obrk silly cbrk] silly)
:S list
})))