Class SexprItem

java.lang.Object
org.jfuncmachine.sexprlang.parser.SexprItem
Direct Known Subclasses:
SexprDouble, SexprInt, SexprList, SexprString, SexprSymbol

public abstract sealed class SexprItem extends Object permits SexprString, SexprInt, SexprDouble, SexprSymbol, SexprList
An item from an S-expression
  • Field Details

    • filename

      public final String filename
      The name of the source filename that the item was read from
    • lineNumber

      public final int lineNumber
      The line number in the source file where this item started
  • Constructor Details

    • SexprItem

      public SexprItem(String filename, int lineNumber)
      Create a new SexprItem
      Parameters:
      filename - The name of the source filename that the item was read from
      lineNumber - The line number in the source file where this item started