pub struct Builder {
pub is_executable: bool,
/* private fields */
}
Expand description
Main entry for the build script
Fields§
§is_executable: bool
if true, an executable called this function
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
Sourcepub fn note_conflicts(&mut self, val: bool) -> &mut Self
pub fn note_conflicts(&mut self, val: bool) -> &mut Self
Print note information about any shift/reduce, reduce/reduce conflicts. If the target is deterministic parser, conflict will be treated as an error, so this option will be ignored. This option is only for non-deterministic GLR parser.
Sourcepub fn note_conflicts_resolving(&mut self, val: bool) -> &mut Self
pub fn note_conflicts_resolving(&mut self, val: bool) -> &mut Self
Print debug information about conflicts resolving process by any %left
, %right
, or %precedence
directive.
Sourcepub fn note_optimization(&mut self, val: bool) -> &mut Self
pub fn note_optimization(&mut self, val: bool) -> &mut Self
Print debug information about optimization process.
Sourcepub fn note_on_stderr(&mut self, val: bool) -> &mut Self
pub fn note_on_stderr(&mut self, val: bool) -> &mut Self
Print every note_*
information to stderr.
Sourcepub fn note_backtrace(&mut self, val: bool) -> &mut Self
pub fn note_backtrace(&mut self, val: bool) -> &mut Self
Print backtrace of production rules when conflicts occurred. ruleset could be messed up
Sourcepub fn build_impl(&self) -> Result<Output, String>
pub fn build_impl(&self) -> Result<Output, String>
for internal use
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more