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

Bibtex parser #2137

Merged
merged 9 commits into from
Jul 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 14 additions & 0 deletions Units/parser-bibtex.r/bib-simple.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
1957-doe_loc_ident input.bib /^@article{1957-doe_loc_ident,$/;" a
1959-rocket_exploration input.bib /^@INPROCEEDINGS{1959-rocket_exploration,$/;" j
1960-doe-location_splits input.bib /^@incollection{1960-doe-location_splits,$/;" I
1960-rocket_deep-exploration input.bib /^@conference{1960-rocket_deep-exploration,$/;" c
1960_conf_splits input.bib /^@proceedings{1960_conf_splits,$/;" P
1961-doe-diverse_splits input.bib /^@inbook{1961-doe-diverse_splits,$/;" i
1961_splits input.bib /^@techreport{1961_splits$/;" t
doe+rocket input.bib /^@Book{doe+rocket,$/;" b
doe_mastersth input.bib /^@mastersthesis{doe_mastersth,$/;" M
doe_mastersth_data input.bib /^@misc{doe_mastersth_data,$/;" n
doe_phd input.bib /^@phdthesis{doe_phd,$/;" p
man_loc_splits input.bib /^@manual{man_loc_splits,$/;" m
tiny_collect input.bib /^@booklet{tiny_collect,$/;" B
xx_thoughts input.bib /^@unpublished{xx_thoughts,$/;" u
97 changes: 97 additions & 0 deletions Units/parser-bibtex.r/bib-simple.d/input.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
% this is a comment that will be ignored
TwlyY29 marked this conversation as resolved.
Show resolved Hide resolved
@article{1957-doe_loc_ident,
author = "John Doe,
title = "Exploration of the
Location-Identity Split",
journal = "Journal of Splits",
year = 1957,
volume = 3
}
@Book{doe+rocket,
author = "John Doe and Rocket Scientist",
title = "Theory of Splits",
publisher = "Dover",
year = 1964,
address = "New York City",
edition = "ninth Dover printing, tenth GPO printing"
}
@booklet{tiny_collect,
title = "A tiny collection of stuff"
}
@conference{1960-rocket_deep-exploration,
author = "Rocket Scientist",
title = "Deep Exploration of the Singleton Split",
booktitle = "34th international conference of important stuff (ICIS)",
year = 1960
}
@inbook{1961-doe-diverse_splits,
author = "John Doe",
title = "A comprehensive list of splits",
pages = {13-39},
publisher = "Penguin Books",
year = 1961
}
@incollection{1960-doe-location_splits,
author = "John Doe",
title = "Survey of location splits",
booktitle = "Current state of the art in computational methods",
publisher = "Penguin Books",
year = 1960
}
@INPROCEEDINGS{1959-rocket_exploration,
author = "Rocket Scientist",
title = "Exploration of the
Location-Singleton Split",
booktitle = "33th international conference of important stuff (ICIS)",
year = 1959
}
@manual{man_loc_splits,
title = "Introduction to Location Splits"
}
@mastersthesis{doe_mastersth,
author = "John Doe"
title = "Evaluating location splits under identity constraints",
school = "School of Computer Science",
year = 1955
}
@misc{doe_mastersth_data,
author = "John Doe"
title = "Dataset of location splits under identity constraints",
howpublished = "http://johndoe.edu/masterthesis/data",
year = 1955
}
@phdthesis{doe_phd,
author = "John Doe"
title = "Evaluating location splits under diverse constraints",
school = "School of Computer Science",
year = 1958
}
@proceedings{1960_conf_splits,
title = "First international conference of splits",
year = 1960
}
@techreport{1961_splits
, author = "Rocket Scientist"
, title = "An introduction to advanced splits"
, institution = "School of Engineering"
, year = 1961
}
@unpublished{xx_thoughts,
author = "John Doe and Rocket Scientist",
title = "Thoughts on the future of splits",
note = "Heavily thought about"
}
1 change: 1 addition & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The following parsers have been added:
* Autoconf
* Automake
* AutoIt
* BibTex
* Clojure
* CMake *optlib*
* CSS
Expand Down
1 change: 1 addition & 0 deletions main/parsers_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
AwkParser, \
BasicParser, \
BetaParser, \
BibtexParser, \
ClojureParser, \
CMakeParser, \
CParser, \
Expand Down
Loading