Uses of Class
net.hydromatic.morel.ast.Pos
-
Packages that use Pos Package Description net.hydromatic.morel Standard ML interpreter, implemented in Java.net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated.net.hydromatic.morel.eval Evaluates expressions.net.hydromatic.morel.util Utilities. -
-
Uses of Pos in net.hydromatic.morel
Methods in net.hydromatic.morel with parameters of type Pos Modifier and Type Method Description voidMain.Shell. use(String fileName, Pos pos)voidMain.SubShell. use(String fileName, Pos pos)voidShell.SubShell.Use. use(String fileName, Pos pos) -
Uses of Pos in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as Pos Modifier and Type Field Description PosAstNode. posstatic PosPos. ZEROMethods in net.hydromatic.morel.ast that return Pos Modifier and Type Method Description static PosPos. of(String ml, String file, int startOffset, int endOffset)Creates a Pos from two offsets.PosPos. plus(Pos pos)PosPos. plusAll(Iterable<Pos> poses)PosPos. plusAll(List<? extends AstNode> nodes)static <E> PosPos. sum(Iterable<E> elements, Function<E,Pos> fn)static PosPos. sum(Iterable<Pos> poses)Combines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosPos. sum(Iterable<Pos> poses, int line, int column, int endLine, int endColumn)Computes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).static PosPos. sum(List<? extends AstNode> nodes)private static PosPos. sum_(List<Pos> positions)Combines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Methods in net.hydromatic.morel.ast that return types with arguments of type Pos Modifier and Type Method Description static org.apache.calcite.util.Pair<@NonNull String,@NonNull Pos>Pos. split(String s, char delimiter, String file)Creates a Pos from a filename and a string with a delimiter character.Methods in net.hydromatic.morel.ast with parameters of type Pos Modifier and Type Method Description voidCore.BindingConsumer. accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos)Ast.AggregateAstBuilder. aggregate(Pos pos, Ast.Exp aggregate, Ast.Exp argument, Ast.Id id)Ast.ExpAstBuilder. annotatedExp(Pos pos, Ast.Exp expression, Ast.Type type)Ast.AnnotatedPatAstBuilder. annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Core.ApplyCoreBuilder. apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)Ast.AsPatAstBuilder. asPat(Pos pos, Ast.IdPat id, Ast.Pat pat)Ast.LiteralAstBuilder. boolLiteral(Pos p, boolean b)Creates abooleanliteral.private Core.ApplyCoreBuilder. call(TypeSystem typeSystem, BuiltIn builtIn, Type type, Pos pos, Core.Exp... args)Calls a built-in function with one type parameter.Ast.CaseAstBuilder. caseOf(Pos pos, Ast.Exp exp, Iterable<? extends Ast.Match> matchList)Core.CaseCoreBuilder. caseOf(Type type, Core.Exp exp, Iterable<? extends Core.Match> matchList, Pos pos)Ast.LiteralAstBuilder. charLiteral(Pos p, char c)Creates acharliteral.Ast.TypeAstBuilder. compositeType(Pos pos, Iterable<Ast.Type> types)Ast.ComputeAstBuilder. compute(Pos pos, List<Ast.Aggregate> aggregates)Ast.Con0PatAstBuilder. con0Pat(Pos pos, Ast.Id tyCon)Ast.ConPatAstBuilder. conPat(Pos pos, Ast.Id tyCon, Ast.Pat pat)Ast.DatatypeBindAstBuilder. datatypeBind(Pos pos, Ast.Id name, Iterable<Ast.TyVar> tyVars, Iterable<Ast.TyCon> tyCons)Ast.DatatypeDeclAstBuilder. datatypeDecl(Pos pos, Iterable<Ast.DatatypeBind> binds)Ast.FnAstBuilder. fn(Pos pos, Iterable<? extends Ast.Match> matchList)Ast.FnAstBuilder. fn(Pos pos, Ast.Match... matchList)Ast.FromAstBuilder. from(Pos pos, List<Ast.FromStep> steps)Ast.FromAstBuilder. from(Pos pos, List<Ast.FromStep> steps, Ast.Exp implicitYieldExp)Ast.FunBindAstBuilder. funBind(Pos pos, Iterable<? extends Ast.FunMatch> matchList)Ast.FunctionTypeAstBuilder. functionType(Pos pos, Ast.Type fromType, Ast.Type toType)Ast.FunDeclAstBuilder. funDecl(Pos pos, Iterable<? extends Ast.FunBind> valBinds)Ast.FunMatchAstBuilder. funMatch(Pos pos, String name, Iterable<? extends Ast.Pat> patList, Ast.Type returnType, Ast.Exp exp)Ast.GroupAstBuilder. group(Pos pos, List<Pair<Ast.Id,Ast.Exp>> groupExps, List<Ast.Aggregate> aggregates)Ast.IdAstBuilder. id(Pos pos, String name)Ast.PatAstBuilder. idPat(Pos pos, String name)Ast.ExpAstBuilder. ifThenElse(Pos pos, Ast.Exp condition, Ast.Exp ifTrue, Ast.Exp ifFalse)(package private) static @Nullable Ast.ExpAst.From. implicitYieldExp(Pos pos, List<Ast.FromStep> steps)Ast.ExpAstBuilder. infixCall(Pos pos, Op op, Ast.Exp a0, Ast.Exp a1)Ast.InfixPatAstBuilder. infixPat(Pos pos, Op op, Ast.Pat p0, Ast.Pat p1)Ast.LiteralAstBuilder. intLiteral(Pos pos, BigDecimal value)Creates anintliteral.Ast.LetAstBuilder. let(Pos pos, Iterable<? extends Ast.Decl> decls, Ast.Exp exp)Ast.ListExpAstBuilder. list(Pos pos, Iterable<? extends Ast.Exp> list)Ast.ListPatAstBuilder. listPat(Pos pos, Iterable<? extends Ast.Pat> args)Ast.ListPatAstBuilder. listPat(Pos pos, Ast.Pat... args)Ast.LiteralPatAstBuilder. literalPat(Pos pos, Op op, Comparable value)Ast.ExpAstBuilder. map(Pos pos, Ast.Exp e1, Ast.Exp e2)Ast.MatchAstBuilder. match(Pos pos, Ast.Pat pat, Ast.Exp exp)Core.MatchCoreBuilder. match(Core.Pat pat, Core.Exp exp, Pos pos)Ast.TypeAstBuilder. namedType(Pos pos, Iterable<? extends Ast.Type> types, String name)Ast.ExpAstBuilder. negate(Pos p, Ast.Exp a)Core.NonRecValDeclCoreBuilder. nonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)Core.ExpCoreBuilder. only(TypeSystem typeSystem, Pos pos, Core.Exp a0)Ast.OrderAstBuilder. order(Pos pos, Iterable<Ast.OrderItem> orderItems)Ast.OrderItemAstBuilder. orderItem(Pos pos, Ast.Exp exp, Ast.Direction direction)PosPos. plus(Pos pos)Ast.PrefixCallAstBuilder. prefixCall(Pos p, Op op, Ast.Exp a)Creates a call to a prefix operator.Ast.LiteralAstBuilder. realLiteral(Pos pos, Float value)Creates afloatliteral for a special IEEE floating point value: NaN, negative zero, positive and negative infinity.Ast.LiteralAstBuilder. realLiteral(Pos pos, BigDecimal value)Creates afloatliteral.Ast.RecordAstBuilder. record(Pos pos, Map<String,Ast.Exp> map)Ast.RecordPatAstBuilder. recordPat(Pos pos, boolean ellipsis, Map<String,? extends Ast.Pat> args)Ast.RecordSelectorAstBuilder. recordSelector(Pos pos, String name)Ast.RecordTypeAstBuilder. recordType(Pos pos, Map<String,Ast.Type> fieldTypes)private Ast.ExpAstBuilder. ref(Pos pos, BuiltIn builtIn)Returns a reference to a built-in: either a name (e.g.Ast.ScanAstBuilder. scan(Pos pos, Op op, Ast.Pat pat, Ast.Exp exp, Ast.Exp condition)Ast.LiteralAstBuilder. stringLiteral(Pos pos, String value)Creates a string literal.Ast.TupleAstBuilder. tuple(Pos pos, Iterable<? extends Ast.Exp> list)Ast.TuplePatAstBuilder. tuplePat(Pos pos, Iterable<? extends Ast.Pat> args)Ast.TuplePatAstBuilder. tuplePat(Pos pos, Ast.Pat... args)Ast.TypeAstBuilder. tupleType(Pos pos, Iterable<Ast.Type> types)Ast.TyConAstBuilder. typeConstructor(Pos pos, Ast.Id id, Ast.Type type)Ast.TyVarAstBuilder. tyVar(Pos pos, String name)Ast.LiteralAstBuilder. unitLiteral(Pos p)Creates a unit literal.Ast.ValBindAstBuilder. valBind(Pos pos, Ast.Pat pat, Ast.Exp exp)Ast.ValDeclAstBuilder. valDecl(Pos pos, boolean rec, Iterable<? extends Ast.ValBind> valBinds)Ast.ValDeclAstBuilder. valDecl(Pos pos, boolean rec, Ast.ValBind... valBinds)Ast.FromStepAstBuilder. where(Pos pos, Ast.Exp exp)Ast.WildcardPatAstBuilder. wildcardPat(Pos pos)Ast.FromStepAstBuilder. yield(Pos pos, Ast.Exp exp)Method parameters in net.hydromatic.morel.ast with type arguments of type Pos Modifier and Type Method Description PosPos. plusAll(Iterable<Pos> poses)static <E> PosPos. sum(Iterable<E> elements, Function<E,Pos> fn)static PosPos. sum(Iterable<Pos> poses)Combines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosPos. sum(Iterable<Pos> poses, int line, int column, int endLine, int endColumn)Computes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).private static PosPos. sum_(List<Pos> positions)Combines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Constructors in net.hydromatic.morel.ast with parameters of type Pos Constructor Description Aggregate(Pos pos, Ast.Exp aggregate, @Nullable Ast.Exp argument, Ast.Id id)AnnotatedExp(Pos pos, Ast.Exp exp, Ast.Type type)Creates a type annotation.AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Apply(Pos pos, Ast.Exp fn, Ast.Exp arg)Apply(Pos pos, Type type, Core.Exp fn, Core.Exp arg)AsPat(Pos pos, Ast.IdPat id, Ast.Pat pat)AstNode(Pos pos, Op op)BaseNode(Pos pos, Op op)Case(Pos pos, Ast.Exp exp, com.google.common.collect.ImmutableList<Ast.Match> matchList)Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList)CompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)Compute(Pos pos, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates)Con0Pat(Pos pos, Ast.Id tyCon)ConPat(Pos pos, Ast.Id tyCon, Ast.Pat pat)DatatypeBind(Pos pos, com.google.common.collect.ImmutableList<Ast.TyVar> tyVars, Ast.Id name, com.google.common.collect.ImmutableList<Ast.TyCon> tyCons)DatatypeDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.DatatypeBind> binds)Decl(Pos pos, Op op)Decl(Pos pos, Op op)Exp(Pos pos, Op op)Exp(Pos pos, Op op, Type type)Fn(Pos pos, com.google.common.collect.ImmutableList<Ast.Match> matchList)From(Pos pos, com.google.common.collect.ImmutableList<Ast.FromStep> steps, @Nullable Ast.Exp implicitYieldExp)FromStep(Pos pos, Op op)FunBind(Pos pos, com.google.common.collect.ImmutableList<Ast.FunMatch> matchList)FunctionType(Pos pos, Ast.Type paramType, Ast.Type resultType)FunDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.FunBind> funBinds)FunMatch(Pos pos, String name, com.google.common.collect.ImmutableList<Ast.Pat> patList, @Nullable Ast.Type returnType, Ast.Exp exp)Group(Pos pos, Op op, com.google.common.collect.ImmutableList<Pair<Ast.Id,Ast.Exp>> groupExps, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates)Id(Pos pos, String name)Creates an Id.IdPat(Pos pos, String name)If(Pos pos, Ast.Exp condition, Ast.Exp ifTrue, Ast.Exp ifFalse)InfixCall(Pos pos, Op op, Ast.Exp a0, Ast.Exp a1)InfixPat(Pos pos, Op op, Ast.Pat p0, Ast.Pat p1)Let(Pos pos, com.google.common.collect.ImmutableList<Ast.Decl> decls, Ast.Exp exp)ListExp(Pos pos, Iterable<? extends Ast.Exp> args)ListPat(Pos pos, com.google.common.collect.ImmutableList<Ast.Pat> args)Literal(Pos pos, Op op, Comparable value)Creates a Literal.LiteralPat(Pos pos, Op op, Comparable value)Match(Pos pos, Ast.Pat pat, Ast.Exp exp)Match(Pos pos, Core.Pat pat, Core.Exp exp)NamedType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types, String name)Creates a type.NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)Order(Pos pos, com.google.common.collect.ImmutableList<Ast.OrderItem> orderItems)OrderItem(Pos pos, Ast.Exp exp, Ast.Direction direction)Pat(Pos pos, Op op)PrefixCall(Pos pos, Op op, Ast.Exp a)Record(Pos pos, com.google.common.collect.ImmutableSortedMap<String,Ast.Exp> args)RecordPat(Pos pos, boolean ellipsis, com.google.common.collect.ImmutableSortedMap<String,Ast.Pat> args)RecordSelector(Pos pos, String name)Creates a record selector.RecordType(Pos pos, com.google.common.collect.ImmutableMap<String,Ast.Type> fieldTypes)Creates a TyVar.Scan(Pos pos, Op op, Ast.Pat pat, Ast.Exp exp, @Nullable Ast.Exp condition)Tuple(Pos pos, Iterable<? extends Ast.Exp> args)TuplePat(Pos pos, com.google.common.collect.ImmutableList<Ast.Pat> args)TupleType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)TyCon(Pos pos, Ast.Id id, Ast.Type type)Type(Pos pos, Op op)Creates a type node.TyVar(Pos pos, String name)Creates a TyVar.ValBind(Pos pos, Ast.Pat pat, Ast.Exp exp)ValDecl(Pos pos, boolean rec, com.google.common.collect.ImmutableList<Ast.ValBind> valBinds)ValDecl(Pos pos, Op op)Where(Pos pos, Ast.Exp exp)WildcardPat(Pos pos)Yield(Pos pos, Ast.Exp exp) -
Uses of Pos in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Pos Modifier and Type Field Description private PosCompileException. posprivate PosCompiler.MatchCode. pos(package private) PosResolver.PatExp. posMethods in net.hydromatic.morel.compile that return Pos Modifier and Type Method Description PosCompileException. pos()Methods in net.hydromatic.morel.compile with parameters of type Pos Modifier and Type Method Description private ApplicableCompiler. compileApplicable(Compiler.Context cx, Core.Exp fn, Type argType, Pos pos)Compiles a function value to anApplicable, if possible, or returns null.private CodeCompiler. compileCall(Compiler.Context cx, BuiltIn builtIn, Core.Exp arg, Pos pos)private ApplicableCompiler. toApplicable(Compiler.Context cx, Object o, Type argType, Pos pos)Constructors in net.hydromatic.morel.compile with parameters of type Pos Constructor Description CompileException(String message, boolean warning, Pos pos)MatchCode(com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos)PatExp(Core.Pat pat, Core.Exp exp, Pos pos)TypeException(String message, Pos pos) -
Uses of Pos in net.hydromatic.morel.eval
Fields in net.hydromatic.morel.eval declared as Pos Modifier and Type Field Description (package private) PosApplicableImpl. posprivate PosClosure. posprivate PosCodes.MorelRuntimeException. posMethods in net.hydromatic.morel.eval that return Pos Modifier and Type Method Description PosCodes.MorelRuntimeException. pos()Methods in net.hydromatic.morel.eval with parameters of type Pos Modifier and Type Method Description private static StringCodes. stringConcat(Pos pos, String separator, List<String> list)voidSession.Shell. use(String fileName, Pos pos)voidSession.Shells. use(String fileName, Pos pos)voidSession. use(String fileName, Pos pos)ApplicableCodes.InteractUse. withPos(Pos pos)ApplicableCodes.ListHd. withPos(Pos pos)ApplicableCodes.ListLast. withPos(Pos pos)ApplicableCodes.ListNth. withPos(Pos pos)ApplicableCodes.ListTabulate. withPos(Pos pos)ApplicableCodes.ListTake. withPos(Pos pos)ApplicableCodes.ListTl. withPos(Pos pos)ApplicableCodes.OptionValOf. withPos(Pos pos)ApplicableCodes.Positioned. withPos(Pos pos)ApplicableCodes.RealCheckFloat. withPos(Pos pos)ApplicableCodes.RealCompare. withPos(Pos pos)ApplicableCodes.RealSign. withPos(Pos pos)ApplicableCodes.RelationalOnly. withPos(Pos pos)ApplicableCodes.StringConcat. withPos(Pos pos)ApplicableCodes.StringConcatWith. withPos(Pos pos)ApplicableCodes.StringExtract. withPos(Pos pos)Codes.StringSubCodes.StringSub. withPos(Pos pos)ApplicableCodes.StringSubstring. withPos(Pos pos)ApplicableCodes.VectorUpdate. withPos(Pos pos)Constructors in net.hydromatic.morel.eval with parameters of type Pos Constructor Description Applicable2(BuiltIn builtIn, Pos pos)Applicable3(BuiltIn builtIn, Pos pos)ApplicableImpl(String name, Pos pos)ApplicableImpl(BuiltIn builtIn, Pos pos)Creates an ApplicableImpl that directly implements a BuiltIn.Closure(EvalEnv evalEnv, com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos)Not a public API.InteractUse(Pos pos)ListHd(Pos pos)ListLast(Pos pos)ListNth(BuiltIn builtIn, Pos pos)ListTabulate(BuiltIn builtIn, Pos pos)ListTake(Pos pos)ListTl(Pos pos)MorelRuntimeException(Codes.BuiltInExn e, Pos pos)Creates a MorelRuntimeException.OptionValOf(Pos pos)RealCheckFloat(Pos pos)RealCompare(Pos pos)RealSign(Pos pos)RelationalOnly(Pos pos)StringConcat(Pos pos)StringConcatWith(Pos pos)StringExtract(Pos pos)StringSub(Pos pos)StringSubstring(Pos pos)VectorUpdate(Pos pos) -
Uses of Pos in net.hydromatic.morel.util
Methods in net.hydromatic.morel.util that return Pos Modifier and Type Method Description PosMorelException. pos()Returns the position.
-