Re: clojure code routine

2018-09-27 Thread venkata sai
hii  i have attached wrong files.. i have a csv file as input i want to 
write a code to autogenerate output file as .clj file by using macros..

On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey 
wrote:
>
> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code. What 
> are you trying to do here?  Is this homework?
>
> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>>
>> i have attached csv file and my output file here.. could anyone help me 
>> autogenerate code  by using macros  that should be in the output file
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Concept
HOSPICE_ENC
HOSPICE_ENV
HOSPICE_FACILITY_ENV
null
ACUTE_INPATIENT_ENC
ACUTE_INPATIENT_ENV
HIGH_RISK_CONDITION_CLIN
OUTPATIENT_ENV
OUTPATIENT_ENC
SSI_SURGICAL_PROCEDURE_PROC
SSI_SURGICAL_SITE_INFECTION_CLIN
PROPHYLACTIC_ANTIMICROBIAL_PROC
ORDER_FOR_ANTIMICROBIAL_PROPHYLAXIS_PROC
ORDER_FOR_ANTIMICROBIAL_PROPHYLAXIS_PROC
MEDICAL_REASON_PROPHYLACTIC_ANTIMICROBIAL_NOT_ORDERED_PROC
VTE_PROC
VTE_PROPHYLAXIS_ORDERED_OR_GIVEN_PROC
VTE_PROPHYLAXIS_ORDERED_OR_GIVEN_PROC
CVC_PROC
MAXIMAL_STERILE_BARRIER_TECHNIQUE_PROC
MAXIMAL_STERILE_BARRIER_TECHNIQUE_PROC
MSSA_INPATIENT_ENC
SEPSIS_DUE_TO_MSSA_CLIN
SEPSIS_DUE_TO_MSSA_CLIN
BETA_LACTAM_ANTIBIOTIC_NOT_PRESCRIBED_MEDICAL_REASON_PROC
ISCHEMIC_STROKE_CLIN
INPATIENT_STAY_ENV
COMFORT_CARE_PROC
CLINICAL_TRIAL_PARTICIPANT_CLIN
CAROTID_INTERVENTION_PROC
LEFT_AMA_DCDIS
ACUTE_INPATIENT_ENC
NONACUTE_INPATIENT_ENC
ANTIPLATELET_THERAPY_MED
ANTICOAGULANT_MED
MEDICAL_REASON_CLIN
CARDIAC_STRESS_IMAGING_PROC
CARDIAC_STRESS_IMAGING_LOW_RISK_SURGERY_PATIENT_PROC
ED_ENC
ED_ENV
MINOR_BLUNT_HEAD_TRAUMA_CLIN
GLASGOW_COMA_SCORE_OBSTYPE
ADULT_HEAD_CT_FOR_TRAUMA_PROC
CT_LESS_THAN_24_HOURS_AFTER_MINOR_HEAD_TRAUMA_ADULT_PROC
MINOR_BLUNT_HEAD_TRAUMA_EXCLUSION_INDICATIONS_ADULT_CLIN
Null
SEVERE_HEADACHE_CLIN
VOMITING_CLIN
PHYSICAL_FINDINGS_OF_A_BASILAR_SKULL_FRACTURE_CLIN
FOCAL_NEUROLOGICAL_DEFICIT_CLIN
COAGULOPATHY_CLIN
THROMBOCYTOPENIA_CLIN
DANGEROUS_MECHANISM_OF_INJURY_CLIN
ANTICOAGULANT_MED
LOSS_OF_CONSCIOUSNESS_CLIN
POST_TRAUMATIC_AMNESIA_CLIN
DRUG_ALCOHOL_INTOXICATION_CLIN
HEADACHE_CLIN
SHORT_TERM_MEMORY_LOSS_CLIN
HEAD_OR_NECK_TRAUMA_CLIN
POST_TRAUMATIC_SEIZURE_CLIN
PEDS_HEAD_CT_FOR_TRAUMA_PROC
CT_LESS_THAN_24_HOURS_AFTER_MINOR_HEAD_TRAUMA_PEDS_PROC
MINOR_BLUNT_HEAD_TRAUMA_EXCLUSION_INDICATIONS_PEDS_CLIN
ALTERED_MENTAL_STATUS_CLIN
PHYSICAL_FINDINGS_OF_A_BASILAR_SKULL_FRACTURE_CLIN
LOSS_OF_CONSCIOUSNESS_CLIN
VOMITING_CLIN
DANGEROUS_MECHANISM_OF_INJURY_CLINY
SEVERE_HEADACHE_CLIN
SURGICAL_PROCEDURE_PROC
UNPLANNED_SURGICAL_PROCEDURE_PROC
OPIOID_MED
CANCER_CLIN
BENZODIAZEPINE_MED


clinic.clj
Description: Binary data


Re: clojure code routine

2018-09-27 Thread Pankaj Doharey
This looks like code from some EMR software, can you upload the definition 
of onto/defconcept ?
to know what it does.  Also what is the objective here that you trying to 
achieve?


On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>
> hii  i have attached wrong files.. i have a csv file as input i want to 
> write a code to autogenerate output file as .clj file by using macros..
>
> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey 
> wrote:
>>
>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code. What 
>> are you trying to do here?  Is this homework?
>>
>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>>>
>>> i have attached csv file and my output file here.. could anyone help me 
>>> autogenerate code  by using macros  that should be in the output file
>>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread venkata sai
yes you want  to autogenerate code as in .clj file from csv file

On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey 
wrote:
>
> This looks like code from some EMR software, can you upload the definition 
> of onto/defconcept ?
> to know what it does.  Also what is the objective here that you trying to 
> achieve?
>
>
> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>>
>> hii  i have attached wrong files.. i have a csv file as input i want to 
>> write a code to autogenerate output file as .clj file by using macros..
>>
>> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey 
>> wrote:
>>>
>>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code. 
>>> What are you trying to do here?  Is this homework?
>>>
>>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:

 i have attached csv file and my output file here.. could anyone help me 
 autogenerate code  by using macros  that should be in the output file

>>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as an
example that might help you.  I recently prepared this gist (pulled out of
a codebase that was retired when a company was acquired) to show someone
how to get data from Google Sheets, but the aspect relevant to your
question is where the CSV file's data is used to generate a Clojure file
defining a one big vector of maps.

On Thu, Sep 27, 2018 at 7:21 AM venkata sai  wrote:

> yes you want  to autogenerate code as in .clj file from csv file
>
> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey
> wrote:
>>
>> This looks like code from some EMR software, can you upload the
>> definition of onto/defconcept ?
>> to know what it does.  Also what is the objective here that you trying to
>> achieve?
>>
>>
>> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>>>
>>> hii  i have attached wrong files.. i have a csv file as input i want to
>>> write a code to autogenerate output file as .clj file by using macros..
>>>
>>> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey
>>> wrote:

 Hmm, your out.csv seems incorrect to me. the clinic.clj has no code.
 What are you trying to do here?  Is this homework?

 On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>
> i have attached csv file and my output file here.. could anyone help
> me autogenerate code  by using macros  that should be in the output file
>
 --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
By the way, the premise in your original message that you would do this
using a defmacro is going to steer you wrong if you stick to that.  Macros
are for expanding code (as data) at compile time.  What you want is not
code as data but data as data, which your code will use.  (Also, there's a
limit on how big the code you expand to can be.)  In my example I wrote
data to a file (it perhaps should have been a .edn file actually) but more
often what you'll want to do is simply load in data from csv, generate
clojure data, and use the data.

On Thu, Sep 27, 2018 at 7:34 AM Robert Levy  wrote:

> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as an
> example that might help you.  I recently prepared this gist (pulled out of
> a codebase that was retired when a company was acquired) to show someone
> how to get data from Google Sheets, but the aspect relevant to your
> question is where the CSV file's data is used to generate a Clojure file
> defining a one big vector of maps.
>
> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  wrote:
>
>> yes you want  to autogenerate code as in .clj file from csv file
>>
>> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey
>> wrote:
>>>
>>> This looks like code from some EMR software, can you upload the
>>> definition of onto/defconcept ?
>>> to know what it does.  Also what is the objective here that you trying
>>> to achieve?
>>>
>>>
>>> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:

 hii  i have attached wrong files.. i have a csv file as input i want to
 write a code to autogenerate output file as .clj file by using macros..

 On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey
 wrote:
>
> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code.
> What are you trying to do here?  Is this homework?
>
> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>>
>> i have attached csv file and my output file here.. could anyone help
>> me autogenerate code  by using macros  that should be in the output file
>>
> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread venkata sai
yes exactly but i donot know how to do it in my case


On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy 
wrote:
>
> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as an 
> example that might help you.  I recently prepared this gist (pulled out of 
> a codebase that was retired when a company was acquired) to show someone 
> how to get data from Google Sheets, but the aspect relevant to your 
> question is where the CSV file's data is used to generate a Clojure file 
> defining a one big vector of maps.
>
> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  > wrote:
>
>> yes you want  to autogenerate code as in .clj file from csv file
>>
>> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey 
>> wrote:
>>>
>>> This looks like code from some EMR software, can you upload the 
>>> definition of onto/defconcept ?
>>> to know what it does.  Also what is the objective here that you trying 
>>> to achieve?
>>>
>>>
>>> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:

 hii  i have attached wrong files.. i have a csv file as input i want to 
 write a code to autogenerate output file as .clj file by using macros..

 On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey 
 wrote:
>
> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code. 
> What are you trying to do here?  Is this homework?
>
> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>>
>> i have attached csv file and my output file here.. could anyone help 
>> me autogenerate code  by using macros  that should be in the output file
>>
> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
I'm sure you've seen this, but you should check out
https://github.com/clojure/data.csv

On Thu, Sep 27, 2018 at 7:52 AM venkata sai  wrote:

> yes exactly but i donot know how to do it in my case
>
>
> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy
> wrote:
>>
>> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as
>> an example that might help you.  I recently prepared this gist (pulled out
>> of a codebase that was retired when a company was acquired) to show someone
>> how to get data from Google Sheets, but the aspect relevant to your
>> question is where the CSV file's data is used to generate a Clojure file
>> defining a one big vector of maps.
>>
>> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  wrote:
>>
>>> yes you want  to autogenerate code as in .clj file from csv file
>>>
>>> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey
>>> wrote:

 This looks like code from some EMR software, can you upload the
 definition of onto/defconcept ?
 to know what it does.  Also what is the objective here that you trying
 to achieve?


 On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>
> hii  i have attached wrong files.. i have a csv file as input i want
> to write a code to autogenerate output file as .clj file by using macros..
>
> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj Doharey
> wrote:
>>
>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code.
>> What are you trying to do here?  Is this homework?
>>
>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:
>>>
>>> i have attached csv file and my output file here.. could anyone help
>>> me autogenerate code  by using macros  that should be in the output file
>>>
>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What's the status of DCG in core.logic?

2018-09-27 Thread phil jones

I see core.logic has a version of Prolog's DCG grammars.

https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic/dcg.clj

Is this a usable solution at the moment? Does anyone know of any 
documentatiojn or tutorials anywhere?

cheers

Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread venkata sai
yes  i know but my issue is how to generate a template

On Thursday, September 27, 2018 at 8:24:49 PM UTC+5:30, Robert P. Levy 
wrote:
>
> I'm sure you've seen this, but you should check out 
> https://github.com/clojure/data.csv
>
> On Thu, Sep 27, 2018 at 7:52 AM venkata sai  > wrote:
>
>> yes exactly but i donot know how to do it in my case
>>
>>
>> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy 
>> wrote:
>>>
>>> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as 
>>> an example that might help you.  I recently prepared this gist (pulled out 
>>> of a codebase that was retired when a company was acquired) to show someone 
>>> how to get data from Google Sheets, but the aspect relevant to your 
>>> question is where the CSV file's data is used to generate a Clojure file 
>>> defining a one big vector of maps.
>>>
>>> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  wrote:
>>>
 yes you want  to autogenerate code as in .clj file from csv file

 On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey 
 wrote:
>
> This looks like code from some EMR software, can you upload the 
> definition of onto/defconcept ?
> to know what it does.  Also what is the objective here that you trying 
> to achieve?
>
>
> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>>
>> hii  i have attached wrong files.. i have a csv file as input i want 
>> to write a code to autogenerate output file as .clj file by using 
>> macros..
>>
>> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj 
>> Doharey wrote:
>>>
>>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no code. 
>>> What are you trying to do here?  Is this homework?
>>>
>>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai wrote:

 i have attached csv file and my output file here.. could anyone 
 help me autogenerate code  by using macros  that should be in the 
 output 
 file

>>> -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


self-driving cars: 2 libraries, 2 tutorial projects

2018-09-27 Thread Eric Lavigne
After graduating Udacity’s self-driving car engineer nanodegree (highly 
recommended!) I was eager to apply the same techniques in Clojure. Hopefully 
other Clojure programmers will find this field interesting as well.

Figurer: planning library
https://github.com/ericlavigne/figurer

Figurer handles lookahead in the same sense as a chess or go AI, but for 
continuous problems like self-driving cars.

Frenet: path-centric coordinate system
https://github.com/ericlavigne/frenet

A different perspective often makes a problem much easier. Frenet provides that 
perspective for path following by defining a path-centric coordinate system and 
converting to and from (x,y) coordinates.

PID control: basic tutorial project for controlling a simulated car
https://github.com/ericlavigne/CarND-PID-Clojure

This starter code guides you through implementing a simple controller for 
steering a simulated car.

MPC control: advanced tutorial project for controlling a simulated car
https://github.com/ericlavigne/CarND-MPC-Clojure

This starter code guides you through implementing a more sophisticated 
controller using the figurer and frenet libraries. This project builds on ideas 
from the PID control project, so I recommend completing the PID control project 
first.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
In your other thread you pasted
https://github.cerner.com/Synapse/event-rules/blob/master/src/main/clojure/hi/kern/qip/kern_qip_flow.clj#L454-L551

That is not accessible to the outside world. To optimize your chances of
get useful help with this, it would be best to provide a clear and minimal
example of what you've tried, and what is tripping you up.

On Thu, Sep 27, 2018 at 8:11 AM venkata sai  wrote:

> yes  i know but my issue is how to generate a template
>
> On Thursday, September 27, 2018 at 8:24:49 PM UTC+5:30, Robert P. Levy
> wrote:
>>
>> I'm sure you've seen this, but you should check out
>> https://github.com/clojure/data.csv
>>
>> On Thu, Sep 27, 2018 at 7:52 AM venkata sai  wrote:
>>
>>> yes exactly but i donot know how to do it in my case
>>>
>>>
>>> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy
>>> wrote:

 See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d as
 an example that might help you.  I recently prepared this gist (pulled out
 of a codebase that was retired when a company was acquired) to show someone
 how to get data from Google Sheets, but the aspect relevant to your
 question is where the CSV file's data is used to generate a Clojure file
 defining a one big vector of maps.

 On Thu, Sep 27, 2018 at 7:21 AM venkata sai  wrote:

> yes you want  to autogenerate code as in .clj file from csv file
>
> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj Doharey
> wrote:
>>
>> This looks like code from some EMR software, can you upload the
>> definition of onto/defconcept ?
>> to know what it does.  Also what is the objective here that you
>> trying to achieve?
>>
>>
>> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>>>
>>> hii  i have attached wrong files.. i have a csv file as input i want
>>> to write a code to autogenerate output file as .clj file by using 
>>> macros..
>>>
>>> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj
>>> Doharey wrote:

 Hmm, your out.csv seems incorrect to me. the clinic.clj has no
 code. What are you trying to do here?  Is this homework?

 On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai
 wrote:
>
> i have attached csv file and my output file here.. could anyone
> help me autogenerate code  by using macros  that should be in the 
> output
> file
>
 --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient
> with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderate

Re: clojure code routine

2018-09-27 Thread venkata sai
thanks for your helping nature. my question is as simple as that by using 
macros i need to autogenerate code in the clinic.clj file with csv file as 
input

On Thursday, September 27, 2018 at 11:18:15 PM UTC+5:30, Robert P. Levy 
wrote:
>
> In your other thread you pasted 
> https://github.cerner.com/Synapse/event-rules/blob/master/src/main/clojure/hi/kern/qip/kern_qip_flow.clj#L454-L551
>
> That is not accessible to the outside world. To optimize your chances of 
> get useful help with this, it would be best to provide a clear and minimal 
> example of what you've tried, and what is tripping you up.
>
> On Thu, Sep 27, 2018 at 8:11 AM venkata sai  > wrote:
>
>> yes  i know but my issue is how to generate a template
>>
>> On Thursday, September 27, 2018 at 8:24:49 PM UTC+5:30, Robert P. Levy 
>> wrote:
>>>
>>> I'm sure you've seen this, but you should check out 
>>> https://github.com/clojure/data.csv
>>>
>>> On Thu, Sep 27, 2018 at 7:52 AM venkata sai  wrote:
>>>
 yes exactly but i donot know how to do it in my case


 On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy 
 wrote:
>
> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d 
> as an example that might help you.  I recently prepared this gist (pulled 
> out of a codebase that was retired when a company was acquired) to show 
> someone how to get data from Google Sheets, but the aspect relevant to 
> your 
> question is where the CSV file's data is used to generate a Clojure file 
> defining a one big vector of maps.
>
> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  
> wrote:
>
>> yes you want  to autogenerate code as in .clj file from csv file
>>
>> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj 
>> Doharey wrote:
>>>
>>> This looks like code from some EMR software, can you upload the 
>>> definition of onto/defconcept ?
>>> to know what it does.  Also what is the objective here that you 
>>> trying to achieve?
>>>
>>>
>>> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:

 hii  i have attached wrong files.. i have a csv file as input i 
 want to write a code to autogenerate output file as .clj file by using 
 macros..

 On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj 
 Doharey wrote:
>
> Hmm, your out.csv seems incorrect to me. the clinic.clj has no 
> code. What are you trying to do here?  Is this homework?
>
> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai 
> wrote:
>>
>> i have attached csv file and my output file here.. could anyone 
>> help me autogenerate code  by using macros  that should be in the 
>> output 
>> file
>>
> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient 
>> with your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google 
>> Groups "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to clojure+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Cl

Re: clojure code routine

2018-09-27 Thread Robert Levy
Oh I didn't see you sent the example again.  Where is onto/defconcept
defined?


On Thu, Sep 27, 2018 at 10:53 AM venkata sai  wrote:

> thanks for your helping nature. my question is as simple as that by using
> macros i need to autogenerate code in the clinic.clj file with csv file as
> input
>
> On Thursday, September 27, 2018 at 11:18:15 PM UTC+5:30, Robert P. Levy
> wrote:
>>
>> In your other thread you pasted
>> https://github.cerner.com/Synapse/event-rules/blob/master/src/main/clojure/hi/kern/qip/kern_qip_flow.clj#L454-L551
>>
>> That is not accessible to the outside world. To optimize your chances of
>> get useful help with this, it would be best to provide a clear and minimal
>> example of what you've tried, and what is tripping you up.
>>
>> On Thu, Sep 27, 2018 at 8:11 AM venkata sai  wrote:
>>
>>> yes  i know but my issue is how to generate a template
>>>
>>> On Thursday, September 27, 2018 at 8:24:49 PM UTC+5:30, Robert P. Levy
>>> wrote:

 I'm sure you've seen this, but you should check out
 https://github.com/clojure/data.csv

 On Thu, Sep 27, 2018 at 7:52 AM venkata sai  wrote:

> yes exactly but i donot know how to do it in my case
>
>
> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. Levy
> wrote:
>>
>> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d
>> as an example that might help you.  I recently prepared this gist (pulled
>> out of a codebase that was retired when a company was acquired) to show
>> someone how to get data from Google Sheets, but the aspect relevant to 
>> your
>> question is where the CSV file's data is used to generate a Clojure file
>> defining a one big vector of maps.
>>
>> On Thu, Sep 27, 2018 at 7:21 AM venkata sai 
>> wrote:
>>
>>> yes you want  to autogenerate code as in .clj file from csv file
>>>
>>> On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj
>>> Doharey wrote:

 This looks like code from some EMR software, can you upload the
 definition of onto/defconcept ?
 to know what it does.  Also what is the objective here that you
 trying to achieve?


 On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai wrote:
>
> hii  i have attached wrong files.. i have a csv file as input i
> want to write a code to autogenerate output file as .clj file by using
> macros..
>
> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj
> Doharey wrote:
>>
>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no
>> code. What are you trying to do here?  Is this homework?
>>
>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai
>> wrote:
>>>
>>> i have attached csv file and my output file here.. could anyone
>>> help me autogenerate code  by using macros  that should be in the 
>>> output
>>> file
>>>
>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient
>>> with your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to clojure+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient
> with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> 

Re: clojure code routine

2018-09-27 Thread venkata sai
that onto/defconcept you need to concatenate . i want to write my output to 
clinic.clj file by using clojure macros

On Thursday, September 27, 2018 at 11:34:56 PM UTC+5:30, Robert P. Levy 
wrote:
>
> Oh I didn't see you sent the example again.  Where is onto/defconcept 
> defined?
>
>
> On Thu, Sep 27, 2018 at 10:53 AM venkata sai  > wrote:
>
>> thanks for your helping nature. my question is as simple as that by using 
>> macros i need to autogenerate code in the clinic.clj file with csv file as 
>> input
>>
>> On Thursday, September 27, 2018 at 11:18:15 PM UTC+5:30, Robert P. Levy 
>> wrote:
>>>
>>> In your other thread you pasted 
>>> https://github.cerner.com/Synapse/event-rules/blob/master/src/main/clojure/hi/kern/qip/kern_qip_flow.clj#L454-L551
>>>
>>> That is not accessible to the outside world. To optimize your chances of 
>>> get useful help with this, it would be best to provide a clear and minimal 
>>> example of what you've tried, and what is tripping you up.
>>>
>>> On Thu, Sep 27, 2018 at 8:11 AM venkata sai  wrote:
>>>
 yes  i know but my issue is how to generate a template

 On Thursday, September 27, 2018 at 8:24:49 PM UTC+5:30, Robert P. Levy 
 wrote:
>
> I'm sure you've seen this, but you should check out 
> https://github.com/clojure/data.csv
>
> On Thu, Sep 27, 2018 at 7:52 AM venkata sai  
> wrote:
>
>> yes exactly but i donot know how to do it in my case
>>
>>
>> On Thursday, September 27, 2018 at 8:04:56 PM UTC+5:30, Robert P. 
>> Levy wrote:
>>>
>>> See https://gist.github.com/rplevy/e94555217dac18f0239a68a3c5bdeb5d 
>>> as an example that might help you.  I recently prepared this gist 
>>> (pulled 
>>> out of a codebase that was retired when a company was acquired) to show 
>>> someone how to get data from Google Sheets, but the aspect relevant to 
>>> your 
>>> question is where the CSV file's data is used to generate a Clojure 
>>> file 
>>> defining a one big vector of maps.
>>>
>>> On Thu, Sep 27, 2018 at 7:21 AM venkata sai  
>>> wrote:
>>>
 yes you want  to autogenerate code as in .clj file from csv file

 On Thursday, September 27, 2018 at 6:18:59 PM UTC+5:30, Pankaj 
 Doharey wrote:
>
> This looks like code from some EMR software, can you upload the 
> definition of onto/defconcept ?
> to know what it does.  Also what is the objective here that you 
> trying to achieve?
>
>
> On Thursday, 27 September 2018 13:02:53 UTC+5:30, venkata sai 
> wrote:
>>
>> hii  i have attached wrong files.. i have a csv file as input i 
>> want to write a code to autogenerate output file as .clj file by 
>> using 
>> macros..
>>
>> On Thursday, September 27, 2018 at 3:32:37 AM UTC+5:30, Pankaj 
>> Doharey wrote:
>>>
>>> Hmm, your out.csv seems incorrect to me. the clinic.clj has no 
>>> code. What are you trying to do here?  Is this homework?
>>>
>>> On Wednesday, 26 September 2018 17:27:08 UTC+5:30, venkata sai 
>>> wrote:

 i have attached csv file and my output file here.. could anyone 
 help me autogenerate code  by using macros  that should be in the 
 output 
 file

>>> -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient 
 with your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, 
 send an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient 
>> with your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google 
>> Groups "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to clojure+u...@googlegroups

Re: clojure code routine

2018-09-27 Thread Robert Levy
I think that if you're wanting to do this then you probably are taking the
wrong approach, but taking you at face value I would say try something like
this.  If you provide more information on what you are actually trying to
do, then you might be able to get better advice.

(defmacro def-onto-concept [name-sym desc-str name-str]
  `(onto/defconcept ~name-sym ~desc-str ~name-str))

(doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
  (def-onto-concept name-sym desc-string name-string))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
Actually, if you are trying to write out to a file, then instead do this

(doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
  (spit "clinic.clj"
(pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
:append true))


On Thu, Sep 27, 2018 at 11:30 AM Robert Levy  wrote:

> I think that if you're wanting to do this then you probably are taking the
> wrong approach, but taking you at face value I would say try something like
> this.  If you provide more information on what you are actually trying to
> do, then you might be able to get better advice.
>
> (defmacro def-onto-concept [name-sym desc-str name-str]
>   `(onto/defconcept ~name-sym ~desc-str ~name-str))
>
> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>   (def-onto-concept name-sym desc-string name-string))
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread venkata sai
Yes thank you I will try with this approach..but how do I take parameters
in macros

On 28 Sep 2018 00:06, "Robert Levy"  wrote:

> Actually, if you are trying to write out to a file, then instead do this
>
> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>   (spit "clinic.clj"
> (pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
> :append true))
>
>
> On Thu, Sep 27, 2018 at 11:30 AM Robert Levy  wrote:
>
>> I think that if you're wanting to do this then you probably are taking
>> the wrong approach, but taking you at face value I would say try
>> something like this.  If you provide more information on what you are
>> actually trying to do, then you might be able to get better advice.
>>
>> (defmacro def-onto-concept [name-sym desc-str name-str]
>>   `(onto/defconcept ~name-sym ~desc-str ~name-str))
>>
>> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>>   (def-onto-concept name-sym desc-string name-string))
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread Robert Levy
No need for macro

(let [example-data [['hospice-enc "hospice enc" "HOSPICE_ENC"]
['hospice-env "hospice env" "HOSPICE_ENV"]]]
  (doseq [[name-sym desc-string name-string] example-data]
(spit "/tmp/clinic.clj"
  (format "%s\n"
  (pr-str `(onto/defconcept ~name-sym ~desc-string
~name-string)))
  :append true)))

Generates this in /tmp/clinic.clj

(onto/defconcept hospice-enc "hospice enc" "HOSPICE_ENC")
(onto/defconcept hospice-env "hospice env" "HOSPICE_ENV")



On Thu, Sep 27, 2018 at 11:43 AM venkata sai  wrote:

> Yes thank you I will try with this approach..but how do I take parameters
> in macros
>
> On 28 Sep 2018 00:06, "Robert Levy"  wrote:
>
>> Actually, if you are trying to write out to a file, then instead do this
>>
>> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>>   (spit "clinic.clj"
>> (pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
>> :append true))
>>
>>
>> On Thu, Sep 27, 2018 at 11:30 AM Robert Levy  wrote:
>>
>>> I think that if you're wanting to do this then you probably are taking
>>> the wrong approach, but taking you at face value I would say try
>>> something like this.  If you provide more information on what you are
>>> actually trying to do, then you might be able to get better advice.
>>>
>>> (defmacro def-onto-concept [name-sym desc-str name-str]
>>>   `(onto/defconcept ~name-sym ~desc-str ~name-str))
>>>
>>> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>>>   (def-onto-concept name-sym desc-string name-string))
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure code routine

2018-09-27 Thread venkata sai
thank you very much for helping me.  can you help me how to map these 
values in the output.clj file

On Friday, September 28, 2018 at 12:14:50 AM UTC+5:30, Robert P. Levy wrote:
>
> No need for macro
>
> (let [example-data [['hospice-enc "hospice enc" "HOSPICE_ENC"]
> ['hospice-env "hospice env" "HOSPICE_ENV"]]]
>   (doseq [[name-sym desc-string name-string] example-data]
> (spit "/tmp/clinic.clj"
>   (format "%s\n"
>   (pr-str `(onto/defconcept ~name-sym ~desc-string 
> ~name-string)))
>   :append true)))
>
> Generates this in /tmp/clinic.clj
>
> (onto/defconcept hospice-enc "hospice enc" "HOSPICE_ENC")
> (onto/defconcept hospice-env "hospice env" "HOSPICE_ENV")
>
>
>
> On Thu, Sep 27, 2018 at 11:43 AM venkata sai  > wrote:
>
>> Yes thank you I will try with this approach..but how do I take parameters 
>> in macros
>>
>> On 28 Sep 2018 00:06, "Robert Levy" > 
>> wrote:
>>
>>> Actually, if you are trying to write out to a file, then instead do this
>>>
>>> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>>>   (spit "clinic.clj"
>>> (pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
>>> :append true))
>>>
>>>
>>> On Thu, Sep 27, 2018 at 11:30 AM Robert Levy >> > wrote:
>>>
 I think that if you're wanting to do this then you probably are taking 
 the wrong approach, but taking you at face value I would say try 
 something like this.  If you provide more information on what you are 
 actually trying to do, then you might be able to get better advice.

 (defmacro def-onto-concept [name-sym desc-str name-str]
   `(onto/defconcept ~name-sym ~desc-str ~name-str))

 (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
   (def-onto-concept name-sym desc-string name-string))

>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com 
>>> 
>>> Note that posts from new members are moderated - please be patient with 
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com 
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to clojure+u...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Concept
HOSPICE_ENC
HOSPICE_ENV
HOSPICE_FACILITY_ENV
ACUTE_INPATIENT_ENC
ACUTE_INPATIENT_ENV
HIGH_RISK_CONDITION_CLIN
OUTPATIENT_ENV
OUTPATIENT_ENC
SSI_SURGICAL_PROCEDURE_PROC
SSI_SURGICAL_SITE_INFECTION_CLIN
PROPHYLACTIC_ANTIMICROBIAL_PROC
ORDER_FOR_ANTIMICROBIAL_PROPHYLAXIS_PROC
ORDER_FOR_ANTIMICROBIAL_PROPHYLAXIS_PROC
MEDICAL_REASON_PROPHYLACTIC_ANTIMICROBIAL_NOT_ORDERED_PROC
VTE_PROC
VTE_PROPHYLAXIS_ORDERED_OR_GIVEN_PROC
VTE_PROPHYLAXIS_ORDERED_OR_GIVEN_PROC
CVC_PROC
MAXIMAL_STERILE_BARRIER_TECHNIQUE_PROC
MAXIMAL_STERILE_BARRIER_TECHNIQUE_PROC
MSSA_INPATIENT_ENC
SEPSIS_DUE_TO_MSSA_CLIN
SEPSIS_DUE_TO_MSSA_CLIN
BETA_LACTAM_ANTIBIOTIC_NOT_PRESCRIBED_MEDICAL_REASON_PROC
ISCHEMIC_STROKE_CLIN
INPATIENT_STAY_ENV
COMFORT_CARE_PROC
CLINICAL_TRIAL_PARTICIPANT_CLIN
CAROTID_INTERVENTION_PROC
LEFT_AMA_DCDIS
ACUTE_INPATIENT_ENC
NONACUTE_INPATIENT_ENC
ANTIPLATELET_THERAPY_MED
ANTICOAGULANT_MED
MEDICAL_REASON_CLIN
CARDIAC_STRESS_IMAGING_PROC
CARDIA

Re: clojure code routine

2018-09-27 Thread Robert Levy
At this point I've given you everything you need to solve your problem.
Look it over now and you'll be able to figure it out.  Best of luck!

On Thu, Sep 27, 2018 at 11:51 AM venkata sai  wrote:

> thank you very much for helping me.  can you help me how to map these
> values in the output.clj file
>
> On Friday, September 28, 2018 at 12:14:50 AM UTC+5:30, Robert P. Levy
> wrote:
>>
>> No need for macro
>>
>> (let [example-data [['hospice-enc "hospice enc" "HOSPICE_ENC"]
>> ['hospice-env "hospice env" "HOSPICE_ENV"]]]
>>   (doseq [[name-sym desc-string name-string] example-data]
>> (spit "/tmp/clinic.clj"
>>   (format "%s\n"
>>   (pr-str `(onto/defconcept ~name-sym ~desc-string
>> ~name-string)))
>>   :append true)))
>>
>> Generates this in /tmp/clinic.clj
>>
>> (onto/defconcept hospice-enc "hospice enc" "HOSPICE_ENC")
>> (onto/defconcept hospice-env "hospice env" "HOSPICE_ENV")
>>
>>
>>
>> On Thu, Sep 27, 2018 at 11:43 AM venkata sai  wrote:
>>
>>> Yes thank you I will try with this approach..but how do I take
>>> parameters in macros
>>>
>>> On 28 Sep 2018 00:06, "Robert Levy"  wrote:
>>>
 Actually, if you are trying to write out to a file, then instead do this

 (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
   (spit "clinic.clj"
 (pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
 :append true))


 On Thu, Sep 27, 2018 at 11:30 AM Robert Levy  wrote:

> I think that if you're wanting to do this then you probably are taking
> the wrong approach, but taking you at face value I would say try
> something like this.  If you provide more information on what you are
> actually trying to do, then you might be able to get better advice.
>
> (defmacro def-onto-concept [name-sym desc-str name-str]
>   `(onto/defconcept ~name-sym ~desc-str ~name-str))
>
> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>   (def-onto-concept name-sym desc-string name-string))
>
 --
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.

Re: clojure code routine

2018-09-27 Thread venkata sai
Thank you .

On 28 Sep 2018 00:23, "Robert Levy"  wrote:

> At this point I've given you everything you need to solve your problem.
> Look it over now and you'll be able to figure it out.  Best of luck!
>
> On Thu, Sep 27, 2018 at 11:51 AM venkata sai 
> wrote:
>
>> thank you very much for helping me.  can you help me how to map these
>> values in the output.clj file
>>
>> On Friday, September 28, 2018 at 12:14:50 AM UTC+5:30, Robert P. Levy
>> wrote:
>>>
>>> No need for macro
>>>
>>> (let [example-data [['hospice-enc "hospice enc" "HOSPICE_ENC"]
>>> ['hospice-env "hospice env" "HOSPICE_ENV"]]]
>>>   (doseq [[name-sym desc-string name-string] example-data]
>>> (spit "/tmp/clinic.clj"
>>>   (format "%s\n"
>>>   (pr-str `(onto/defconcept ~name-sym ~desc-string
>>> ~name-string)))
>>>   :append true)))
>>>
>>> Generates this in /tmp/clinic.clj
>>>
>>> (onto/defconcept hospice-enc "hospice enc" "HOSPICE_ENC")
>>> (onto/defconcept hospice-env "hospice env" "HOSPICE_ENV")
>>>
>>>
>>>
>>> On Thu, Sep 27, 2018 at 11:43 AM venkata sai  wrote:
>>>
 Yes thank you I will try with this approach..but how do I take
 parameters in macros

 On 28 Sep 2018 00:06, "Robert Levy"  wrote:

> Actually, if you are trying to write out to a file, then instead do
> this
>
> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>   (spit "clinic.clj"
> (pr-str `(onto/defconcept ~name-sym ~desc-string ~name-string))
> :append true))
>
>
> On Thu, Sep 27, 2018 at 11:30 AM Robert Levy 
> wrote:
>
>> I think that if you're wanting to do this then you probably are
>> taking the wrong approach, but taking you at face value I would say try
>> something like this.  If you provide more information on what you are
>> actually trying to do, then you might be able to get better advice.
>>
>> (defmacro def-onto-concept [name-sym desc-str name-str]
>>   `(onto/defconcept ~name-sym ~desc-str ~name-str))
>>
>> (doseq [[name-sym desc-string name-string] (prepare-data spreadsheet)]
>>   (def-onto-concept name-sym desc-string name-string))
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient
> with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
 --
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to t

Re: What's the status of DCG in core.logic?

2018-09-27 Thread Pankaj Doharey
http://minikanren.org/#writtenTutorials

On Thursday, 27 September 2018 20:33:27 UTC+5:30, phil jones wrote:
>
>
> I see core.logic has a version of Prolog's DCG grammars.
>
>
> https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic/dcg.clj
>
> Is this a usable solution at the moment? Does anyone know of any 
> documentatiojn or tutorials anywhere?
>
> cheers
>
> Phil
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What's the status of DCG in core.logic?

2018-09-27 Thread phil jones
Thanks.

But is there anything specifically about dcg.clj?

On Thursday, 27 September 2018 17:37:34 UTC-3, Pankaj Doharey wrote:
>
> http://minikanren.org/#writtenTutorials
>
> On Thursday, 27 September 2018 20:33:27 UTC+5:30, phil jones wrote:
>>
>>
>> I see core.logic has a version of Prolog's DCG grammars.
>>
>>
>> https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic/dcg.clj
>>
>> Is this a usable solution at the moment? Does anyone know of any 
>> documentatiojn or tutorials anywhere?
>>
>> cheers
>>
>> Phil
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.