-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adjusting regex and adding Stata code husks * data step now handles Stata do/run imports... still need to do work to get it to print though * adjusting comments, refreshing output * corrections as suggested via code review * appending to changelog and adding author * adjusting to better handle infinite do-loops * regen output * adjusting code to better handle source line enumeration * regen output * adding test case * adjusting regen for new test * uploading from RAS, an additional regex adjustment * adjusting regex to make it more clear * regen output * Add to changelog
- Loading branch information
Showing
10 changed files
with
161 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,64 @@ | ||
% Title for output document, just an example (v 1.2.3) | ||
% Christiaan Righolt, Barret Monchka, Salah Mahmud; Vaccine and Drug Evaluation Centre (VDEC) | ||
% December 7, 2017 | ||
% Christiaan Righolt, Robert Bisewski, Barret Monchka, Salah Mahmud; Vaccine and Drug Evaluation Centre (VDEC) | ||
% April 11, 2018 | ||
|
||
# Scripts/macros used for project | ||
* 1: C:\Users\righoltc\Documents\GitHub\code-diary-sas\demo\project_main.sas | ||
* 1.1: &DEMO_ROOT.project_script.sas | ||
* 1.2: &DEMO_ROOT.generate_documentation.sas | ||
* 1.2.1: &MACRO_ROOT.code_diary.sas | ||
* 1.2.2: &MACRO_ROOT.convert_markdown_to_html.sas | ||
* 1.s1: &DEMO_ROOT.project_stata.do | ||
|
||
# Task list | ||
* 1.1:64 Insert this code from reference Qwerty (Nature, 2345) | ||
|
||
# Exclusion criteria | ||
|
||
## Time | ||
* 1.1:47 Exclude any record before 1960 | ||
|
||
## Person | ||
* 1.1:40 Exclude Martians from analysis | ||
* 1.1:41 Exclude terrestrial gods. | ||
|
||
# No keyword | ||
* 1.1:5 Test comment with special characters:"`& | ||
* 1.1:14 Example of a comment without keyword | ||
|
||
# Main | ||
* 1:6 This document is generated as an example output | ||
|
||
# Def | ||
* 1:7 The answer to life the universe and everything = 42 | ||
|
||
# Test | ||
* 1.1:11 Code Diary comment inside block comments | ||
* 1.1:18 Same line Code Diary block comment B | ||
* 1.1:74 Longer, multiple line comment test | ||
|
||
# Statistics | ||
* 1.1:52 Use the fanciest order of tests | ||
1.1:53 1. The Atlantic test procedures | ||
1.1:54 2. The Pacific test procedures | ||
1.1:55 3. The Arctic test procedures | ||
* 1.1:60 We use alpha=0.05 in all tests | ||
|
||
# Analysis | ||
* 1.1:67 Use the Milkyway default analysis for grouping of people | ||
1.1:68 The Milkyway has stars, this is a test for a single-line two star that is appended to the above in markdown / HTML | ||
|
||
# Regex | ||
* 1.1:70 Essential definitions for the text-parsing regex. | ||
|
||
# Stata | ||
* 1.s1:1 Just an example of Stata comments | ||
* 1.s1:8 A one-line Stata command | ||
* 1: C:\Users\bisewskr\development\code-diary-sas\demo\project_main.sas | ||
* 1.1: &demo_root.project_script.sas | ||
* 1.2: &demo_root.generate_documentation.sas | ||
* 1.2.1: ¯o_root.code_diary.sas | ||
* 1.2.2: ¯o_root.convert_markdown_to_html.sas | ||
* 1.s1: &demo_root.project_stata.do | ||
* 1.s1.s16: &demo_root\stata_husk_a.do | ||
* 1.s1.s17: &demo_root\stata_husk_b.do | ||
* 1.s1.s18: &demo_root\stata_husk_c.do | ||
|
||
# Task list | ||
* 1.1:64 Insert this code from reference Qwerty (Nature, 2345) | ||
|
||
# Exclusion criteria | ||
|
||
## Time | ||
* 1.1:47 Exclude any record before 1960 | ||
|
||
## Person | ||
* 1.1:40 Exclude Martians from analysis | ||
* 1.1:41 Exclude terrestrial gods. | ||
|
||
# No keyword | ||
* 1.1:5 Test comment with special characters:"`& | ||
* 1.1:14 Example of a comment without keyword | ||
|
||
# Main | ||
* 1:6 This document is generated as an example output | ||
|
||
# Def | ||
* 1:7 The answer to life the universe and everything = 42 | ||
|
||
# Test | ||
* 1.1:11 Code Diary comment inside block comments | ||
* 1.1:18 Same line Code Diary block comment B | ||
* 1.1:74 Longer, multiple line comment test | ||
|
||
# Statistics | ||
* 1.1:52 Use the fanciest order of tests | ||
1.1:53 1. The Atlantic test procedures | ||
1.1:54 2. The Pacific test procedures | ||
1.1:55 3. The Arctic test procedures | ||
* 1.1:60 We use alpha=0.05 in all tests | ||
|
||
# Analysis | ||
* 1.1:67 Use the Milkyway default analysis for grouping of people | ||
1.1:68 The Milkyway has stars, this is a test for a single-line two star that is appended to the above in markdown / HTML | ||
|
||
# Regex | ||
* 1.1:70 Essential definitions for the text-parsing regex. | ||
|
||
# Stata | ||
* 1.s1:6 Just an example of Stata comments | ||
* 1.s1:13 A one-line Stata command | ||
* 1.s1:15 Test the include/run/do parsing | ||
* 1.s1.s16:5 This file husk does nothing except help with testing the `include` call... | ||
* 1.s1.s17:1 This file husk does nothing except help with testing the `run` call... | ||
* 1.s1.s18:1 This file husk does nothing except help with testing the `do` call... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,50 @@ | ||
% Title for output document, just an example (v 1.2.3) | ||
% Christiaan Righolt, Barret Monchka, Salah Mahmud; Vaccine and Drug Evaluation Centre (VDEC) | ||
% December 7, 2017 | ||
% Christiaan Righolt, Robert Bisewski, Barret Monchka, Salah Mahmud; Vaccine and Drug Evaluation Centre (VDEC) | ||
% April 11, 2018 | ||
|
||
# Exclusion criteria | ||
# Exclusion criteria | ||
|
||
## Time | ||
* Exclude any record before 1960 | ||
## Time | ||
* Exclude any record before 1960 | ||
|
||
## Person | ||
* Exclude Martians from analysis | ||
* Exclude terrestrial gods. | ||
## Person | ||
* Exclude Martians from analysis | ||
* Exclude terrestrial gods. | ||
|
||
# No keyword | ||
* Test comment with special characters:"`& | ||
* Example of a comment without keyword | ||
# No keyword | ||
* Test comment with special characters:"`& | ||
* Example of a comment without keyword | ||
|
||
# Main | ||
* This document is generated as an example output | ||
# Main | ||
* This document is generated as an example output | ||
|
||
# Def | ||
* The answer to life the universe and everything = 42 | ||
# Def | ||
* The answer to life the universe and everything = 42 | ||
|
||
# Test | ||
* Code Diary comment inside block comments | ||
* Same line Code Diary block comment B | ||
* Longer, multiple line comment test | ||
# Test | ||
* Code Diary comment inside block comments | ||
* Same line Code Diary block comment B | ||
* Longer, multiple line comment test | ||
|
||
# Statistics | ||
* Use the fanciest order of tests | ||
1. The Atlantic test procedures | ||
2. The Pacific test procedures | ||
3. The Arctic test procedures | ||
* We use alpha=0.05 in all tests | ||
# Statistics | ||
* Use the fanciest order of tests | ||
1. The Atlantic test procedures | ||
2. The Pacific test procedures | ||
3. The Arctic test procedures | ||
* We use alpha=0.05 in all tests | ||
|
||
# Analysis | ||
* Use the Milkyway default analysis for grouping of people | ||
The Milkyway has stars, this is a test for a single-line two star that is appended to the above in markdown / HTML | ||
# Analysis | ||
* Use the Milkyway default analysis for grouping of people | ||
The Milkyway has stars, this is a test for a single-line two star that is appended to the above in markdown / HTML | ||
|
||
# Regex | ||
* Essential definitions for the text-parsing regex. | ||
# Regex | ||
* Essential definitions for the text-parsing regex. | ||
|
||
# Stata | ||
* Just an example of Stata comments | ||
* A one-line Stata command | ||
* Test the include/run/do parsing | ||
* This file husk does nothing except help with testing the `include` call... | ||
* This file husk does nothing except help with testing the `run` call... | ||
* This file husk does nothing except help with testing the `do` call... | ||
|
||
# Stata | ||
* Just an example of Stata comments | ||
* A one-line Stata command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// this comment exists to test whether the regex is avoiding the search of commented code | ||
// | ||
// global F8 "do "P:\commond\source\main.do"" | ||
|
||
**@stata This file husk does nothing except help with testing the `include` call...; | ||
di "attempting to call an include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**@stata This file husk does nothing except help with testing the `run` call...; | ||
di "attempting to call a run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**@stata This file husk does nothing except help with testing the `do` call...; | ||
di "attempting to call a do" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters