pub enum Token {
}Expand description
Token types for Prolog.
Variants§
Atom(String)
Atom: lowercase identifier or quoted string
Variable(String)
Variable: uppercase identifier or underscore
Anonymous
Anonymous variable: _
Integer(i32)
Integer literal
Neck
:- (clause neck / query)
Query
?- (query)
Comma
, (conjunction)
Semicolon
; (disjunction)
Dot
. (end of clause)
Pipe
| (list tail separator)
Cut
! (cut)
LParen
(
RParen
)
LBracket
[
RBracket
]
Plus
Minus
Star
Slash
/
Mod
mod
Is
is
Unify
=
NotUnify
=
Identical
==
NotIdentical
==
Lt
<
Gt
Le
=<
Ge
=
ArithEq
=:=
ArithNe
==
Eof
End of file
Implementations§
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)