import { Lexer } from 'chevrotain';
import { JDL_AIGC_TYPE_API, JDL_AIGC_TYPE_FEATURE, JDL_AIGC_TYPE_METHOD } from '../../basic-types/aigc.js';
import createTokenFromConfig from './token-creator.js';
const aigcTypeCategoryToken = createTokenFromConfig({ name: 'AIGC_TYPE', pattern: Lexer.NA });
const aigcTypeTokens = [
    { name: 'METHOD', pattern: JDL_AIGC_TYPE_METHOD },
    { name: 'API', pattern: JDL_AIGC_TYPE_API },
    { name: 'FEATURE', pattern: JDL_AIGC_TYPE_FEATURE },
].map(tokenConfig => {
    tokenConfig.categories = [aigcTypeCategoryToken];
    return createTokenFromConfig(tokenConfig);
});
export default {
    categoryToken: aigcTypeCategoryToken,
    tokens: [aigcTypeCategoryToken, ...aigcTypeTokens],
};
