package acgtk
Abstract Categorial Grammar development toolkit
Install
Dune Dependency
Authors
Maintainers
Sources
acg-2.1.0-20240219.tar.gz
sha512=5d380a947658fb1201895cb4cb449b1f60f54914c563e85181d628a89f045c1dd7b5b2226bb7865dd090f87caa9187e0ea6c7a4ee3dc3dda340d404c4e76c7c2
doc/acgtk.grammars/Grammars/Term_sequence/index.html
Module Grammars.Term_sequence
Source
This modules implements a cheap term parser to handle infix operators associativity and precedence without changing the menhir grammar files
Log
is the log module for Term_Sequence
Source
type token =
| Term of Logic.Abstract_syntax.Abstract_syntax.term * Logic.Abstract_syntax.Abstract_syntax.location
| Op of Logic.Abstract_syntax.Abstract_syntax.term * Logic.Abstract_syntax.Abstract_syntax.syntactic_behavior * Logic.Abstract_syntax.Abstract_syntax.location
(*The type of the tokens. Only
*)Op
values can have infix syntactic properties
Source
val parse_sequence :
token list ->
AcgData.Signature.Data_Signature.t ->
Logic.Abstract_syntax.Abstract_syntax.term
* Logic.Abstract_syntax.Abstract_syntax.location
parse_sequence lst sg
returns a pairs consisting of a term and its location. The sequence is parsed according to the associativity and precedence properties given in sg
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>